bc0dc60654fd9af683eedbf41405f061622e28de
[libguestfs.git] / po-docs / libguestfs-docs.pot
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: libguestfs 1.13.26\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2011-10-26 21:10+0200\n"
12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 "Language-Team: LANGUAGE <LL@li.org>\n"
15 "Language: \n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19
20 #. type: =head1
21 #: ../align/virt-alignment-scan.pod:3 ../cat/virt-cat.pod:3 ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3 ../clone/virt-sysprep.pod:3 ../df/virt-df.pod:3 ../edit/virt-edit.pod:3 ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3 ../examples/guestfs-recipes.pod:14 ../fish/guestfish.pod:3 ../fish/virt-copy-in.pod:3 ../fish/virt-copy-out.pod:3 ../fish/virt-tar-in.pod:3 ../fish/virt-tar-out.pod:3 ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pod:3 ../java/examples/guestfs-java.pod:3 ../ocaml/examples/guestfs-ocaml.pod:3 ../perl/examples/guestfs-perl.pod:3 ../python/examples/guestfs-python.pod:3 ../rescue/virt-rescue.pod:3 ../resize/virt-resize.pod:3 ../ruby/examples/guestfs-ruby.pod:3 ../sparsify/virt-sparsify.pod:3 ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3 ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30 ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31 ../tools/virt-win-reg.pl:35
22 msgid "NAME"
23 msgstr ""
24
25 #. type: textblock
26 #: ../align/virt-alignment-scan.pod:5
27 msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
28 msgstr ""
29
30 #. type: =head1
31 #: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7 ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7 ../clone/virt-sysprep.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7 ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7 ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7 ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7 ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7 ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7 ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7 ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7 ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7 ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7 ../test-tool/libguestfs-test-tool.pod:7 ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34 ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35 ../tools/virt-win-reg.pl:39
32 msgid "SYNOPSIS"
33 msgstr ""
34
35 #. type: verbatim
36 #: ../align/virt-alignment-scan.pod:9
37 #, no-wrap
38 msgid ""
39 " virt-alignment-scan [--options] -d domname\n"
40 "\n"
41 msgstr ""
42
43 #. type: verbatim
44 #: ../align/virt-alignment-scan.pod:11
45 #, no-wrap
46 msgid ""
47 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
48 "\n"
49 msgstr ""
50
51 #. type: =head1
52 #: ../align/virt-alignment-scan.pod:13 ../cat/virt-cat.pod:19 ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19 ../clone/virt-sysprep.pod:13 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27 ../erlang/examples/guestfs-erlang.pod:16 ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18 ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19 ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21 ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20 ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15 ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18 ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29 ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15 ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23 ../test-tool/libguestfs-test-tool.pod:11 ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40 ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77 ../tools/virt-win-reg.pl:63
53 msgid "DESCRIPTION"
54 msgstr ""
55
56 #. type: textblock
57 #: ../align/virt-alignment-scan.pod:15
58 msgid ""
59 "When older operating systems install themselves, the partitioning tools "
60 "place partitions at a sector misaligned with the underlying storage "
61 "(commonly the first partition starts on sector C<63>).  Misaligned "
62 "partitions can result in an operating system issuing more I/O than should be "
63 "necessary."
64 msgstr ""
65
66 #. type: textblock
67 #: ../align/virt-alignment-scan.pod:21
68 msgid ""
69 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
70 "machines and disk images and warns you if there are alignment problems."
71 msgstr ""
72
73 #. type: textblock
74 #: ../align/virt-alignment-scan.pod:25
75 msgid ""
76 "Currently there is no virt tool for fixing alignment problems.  You can only "
77 "reinstall the guest operating system.  The following NetApp document "
78 "summarises the problem and possible solutions: "
79 "L<http://media.netapp.com/documents/tr-3747.pdf>"
80 msgstr ""
81
82 #. type: =head1
83 #: ../align/virt-alignment-scan.pod:30
84 msgid "OUTPUT"
85 msgstr ""
86
87 #. type: textblock
88 #: ../align/virt-alignment-scan.pod:32
89 msgid "To run this tool on a disk image directly, use the I<-a> option:"
90 msgstr ""
91
92 #. type: verbatim
93 #: ../align/virt-alignment-scan.pod:34
94 #, no-wrap
95 msgid ""
96 " $ virt-alignment-scan -a winxp.img\n"
97 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
98 "\n"
99 msgstr ""
100
101 #. type: verbatim
102 #: ../align/virt-alignment-scan.pod:37
103 #, no-wrap
104 msgid ""
105 " $ virt-alignment-scan -a fedora16.img\n"
106 " /dev/sda1      1048576         1024K   ok\n"
107 " /dev/sda2      2097152         2048K   ok\n"
108 " /dev/sda3    526385152         2048K   ok\n"
109 "\n"
110 msgstr ""
111
112 #. type: textblock
113 #: ../align/virt-alignment-scan.pod:42
114 msgid ""
115 "To run the tool on a guest known to libvirt, use the I<-d> option and "
116 "possibly the I<-c> option:"
117 msgstr ""
118
119 #. type: verbatim
120 #: ../align/virt-alignment-scan.pod:45
121 #, no-wrap
122 msgid ""
123 " # virt-alignment-scan -d RHEL5\n"
124 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
125 " /dev/sda2    106928640          512    bad (alignment < 4K)\n"
126 "\n"
127 msgstr ""
128
129 #. type: verbatim
130 #: ../align/virt-alignment-scan.pod:49
131 #, no-wrap
132 msgid ""
133 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
134 " /dev/sda1      1048576         1024K   ok\n"
135 " /dev/sda2    105906176         1024K   ok\n"
136 " /dev/sdb1        65536           64K   ok\n"
137 "\n"
138 msgstr ""
139
140 #. type: textblock
141 #: ../align/virt-alignment-scan.pod:54
142 msgid ""
143 "The output consists of 4 or more whitespace-separated columns.  Only the "
144 "first 4 columns are signficant if you want to parse this from a program.  "
145 "The columns are:"
146 msgstr ""
147
148 #. type: =item
149 #: ../align/virt-alignment-scan.pod:60
150 msgid "col 1"
151 msgstr ""
152
153 #. type: textblock
154 #: ../align/virt-alignment-scan.pod:62
155 msgid ""
156 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
157 "on the first block device)"
158 msgstr ""
159
160 #. type: =item
161 #: ../align/virt-alignment-scan.pod:65
162 msgid "col 2"
163 msgstr ""
164
165 #. type: textblock
166 #: ../align/virt-alignment-scan.pod:67
167 msgid "the start of the partition in bytes"
168 msgstr ""
169
170 #. type: =item
171 #: ../align/virt-alignment-scan.pod:69
172 msgid "col 3"
173 msgstr ""
174
175 #. type: textblock
176 #: ../align/virt-alignment-scan.pod:71
177 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
178 msgstr ""
179
180 #. type: =item
181 #: ../align/virt-alignment-scan.pod:73
182 msgid "col 4"
183 msgstr ""
184
185 #. type: textblock
186 #: ../align/virt-alignment-scan.pod:75
187 msgid ""
188 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
189 "can cause performance problems"
190 msgstr ""
191
192 #. type: =item
193 #: ../align/virt-alignment-scan.pod:78
194 msgid "cols 5+"
195 msgstr ""
196
197 #. type: textblock
198 #: ../align/virt-alignment-scan.pod:80
199 msgid "optional free-text explanation."
200 msgstr ""
201
202 #. type: textblock
203 #: ../align/virt-alignment-scan.pod:84
204 msgid ""
205 "The exit code from the program changes depending on whether poorly aligned "
206 "partitions were found.  See L</EXIT STATUS> below."
207 msgstr ""
208
209 #. type: textblock
210 #: ../align/virt-alignment-scan.pod:87
211 msgid "If you just want the exit code with no output, use the I<-q> option."
212 msgstr ""
213
214 #. type: =head1
215 #: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261 ../clone/virt-sysprep.pod:42 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62 ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45 ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42 ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:92 ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84 ../resize/virt-resize.pod: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:88 ../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:90 ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64 ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113 ../tools/virt-win-reg.pl:106
226 msgid "Display brief help."
227 msgstr ""
228
229 #. type: =item
230 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269 ../clone/virt-sysprep.pod:50 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70 ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
231 msgid "B<-a> file"
232 msgstr ""
233
234 #. type: =item
235 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271 ../clone/virt-sysprep.pod:52 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72 ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
236 msgid "B<--add> file"
237 msgstr ""
238
239 #. type: textblock
240 #: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:54
241 msgid "Add I<file> which should be a disk image from a virtual machine."
242 msgstr ""
243
244 #. type: textblock
245 #: ../align/virt-alignment-scan.pod:103 ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277 ../clone/virt-sysprep.pod:56 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78 ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102 ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
246 msgid ""
247 "The format of the disk image is auto-detected.  To override this and force a "
248 "particular format use the I<--format=..> option."
249 msgstr ""
250
251 #. type: =item
252 #: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291 ../clone/virt-sysprep.pod:59 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107
253 msgid "B<-c> URI"
254 msgstr ""
255
256 #. type: =item
257 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293 ../clone/virt-sysprep.pod:61 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109
258 msgid "B<--connect> URI"
259 msgstr ""
260
261 #. type: textblock
262 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295 ../clone/virt-sysprep.pod:63 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99 ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111 ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82 ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
263 msgid ""
264 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
265 "to the default libvirt hypervisor."
266 msgstr ""
267
268 #. type: textblock
269 #: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298 ../clone/virt-sysprep.pod:66 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114
270 msgid ""
271 "If you specify guest block devices directly (I<-a>), then libvirt is not "
272 "used at all."
273 msgstr ""
274
275 #. type: =item
276 #: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307 ../clone/virt-sysprep.pod:69 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105 ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
277 msgid "B<-d> guest"
278 msgstr ""
279
280 #. type: =item
281 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309 ../clone/virt-sysprep.pod:71 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107 ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
282 msgid "B<--domain> guest"
283 msgstr ""
284
285 #. type: textblock
286 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311 ../clone/virt-sysprep.pod:73 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109 ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
287 msgid ""
288 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
289 "instead of names."
290 msgstr ""
291
292 #. type: =item
293 #: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328 ../clone/virt-sysprep.pod:95 ../df/virt-df.pod:101 ../fish/guestfish.pod:233 ../fuse/guestmount.pod:142 ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:124
294 msgid "B<--format=raw|qcow2|..>"
295 msgstr ""
296
297 #. type: =item
298 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330 ../clone/virt-sysprep.pod:97 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235 ../fuse/guestmount.pod:144 ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:126
299 msgid "B<--format>"
300 msgstr ""
301
302 #. type: textblock
303 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332 ../clone/virt-sysprep.pod:99 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237 ../fuse/guestmount.pod:146 ../rescue/virt-rescue.pod:128
304 msgid ""
305 "The default for the I<-a> option is to auto-detect the format of the disk "
306 "image.  Using this forces the disk format for I<-a> options which follow on "
307 "the command line.  Using I<--format> with no argument switches back to "
308 "auto-detection for subsequent I<-a> options."
309 msgstr ""
310
311 #. type: textblock
312 #: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337 ../clone/virt-sysprep.pod:104 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242 ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:336 ../rescue/virt-rescue.pod:133 ../src/guestfs.pod: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:137
326 msgid "forces raw format (no auto-detection) for C<disk.img>."
327 msgstr ""
328
329 #. type: verbatim
330 #: ../align/virt-alignment-scan.pod:138
331 #, no-wrap
332 msgid ""
333 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
334 "\n"
335 msgstr ""
336
337 #. type: textblock
338 #: ../align/virt-alignment-scan.pod:140 ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345 ../clone/virt-sysprep.pod:112 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:141
339 msgid ""
340 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
341 "auto-detection for C<another.img>."
342 msgstr ""
343
344 #. type: textblock
345 #: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348 ../clone/virt-sysprep.pod:115 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:144
346 msgid ""
347 "If you have untrusted raw-format guest disk images, you should use this "
348 "option to specify the disk format.  This avoids a possible security problem "
349 "with malicious guests (CVE-2010-3851)."
350 msgstr ""
351
352 #. type: =item
353 #: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod: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:182 ../sparsify/virt-sparsify.pod:159
371 msgid "B<-v>"
372 msgstr ""
373
374 #. type: =item
375 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427 ../clone/virt-sysprep.pod:140 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392 ../fuse/guestmount.pod:268 ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:184 ../sparsify/virt-sparsify.pod:161
376 msgid "B<--verbose>"
377 msgstr ""
378
379 #. type: textblock
380 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429 ../clone/virt-sysprep.pod:142 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:186 ../sparsify/virt-sparsify.pod:163
381 msgid "Enable verbose messages for debugging."
382 msgstr ""
383
384 #. type: =item
385 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431 ../clone/virt-sysprep.pod:144 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397 ../fuse/guestmount.pod:272 ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:188 ../resize/virt-resize.pod: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:190 ../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:192 ../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:203 ../sparsify/virt-sparsify.pod:171 ../tools/virt-tar.pl:158
401 msgid "B<-x>"
402 msgstr ""
403
404 #. type: textblock
405 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439 ../clone/virt-sysprep.pod:152 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:205 ../sparsify/virt-sparsify.pod:173
406 msgid "Enable tracing of libguestfs API calls."
407 msgstr ""
408
409 #. type: =head1
410 #: ../align/virt-alignment-scan.pod:172
411 msgid "RECOMMENDED ALIGNMENT"
412 msgstr ""
413
414 #. type: textblock
415 #: ../align/virt-alignment-scan.pod:174
416 msgid ""
417 "Operating systems older than Windows 2008 and Linux before ca.2010 place the "
418 "first sector of the first partition at sector 63, with a 512 byte sector "
419 "size.  This happens because of a historical accident.  Drives have to report "
420 "a cylinder / head / sector (CHS) geometry to the BIOS.  The geometry is "
421 "completely meaningless on modern drives, but it happens that the geometry "
422 "reported always has 63 sectors per track.  The operating system therefore "
423 "places the first partition at the start of the second \"track\", at sector "
424 "63."
425 msgstr ""
426
427 #. type: textblock
428 #: ../align/virt-alignment-scan.pod:183
429 msgid ""
430 "When the guest OS is virtualized, the host operating system and hypervisor "
431 "may prefer accesses aligned to one of:"
432 msgstr ""
433
434 #. type: =item
435 #: ../align/virt-alignment-scan.pod:188
436 msgid "* 512 bytes"
437 msgstr ""
438
439 #. type: textblock
440 #: ../align/virt-alignment-scan.pod:190
441 msgid ""
442 "if the host OS uses local storage directly on hard drive partitions, and the "
443 "hard drive has 512 byte physical sectors."
444 msgstr ""
445
446 #. type: =item
447 #: ../align/virt-alignment-scan.pod:193
448 msgid "* 4 Kbytes"
449 msgstr ""
450
451 #. type: textblock
452 #: ../align/virt-alignment-scan.pod:195
453 msgid ""
454 "for local storage on new hard drives with 4Kbyte physical sectors; for "
455 "file-backed storage on filesystems with 4Kbyte block size; or for some types "
456 "of network-attached storage."
457 msgstr ""
458
459 #. type: =item
460 #: ../align/virt-alignment-scan.pod:199
461 msgid "* 64 Kbytes"
462 msgstr ""
463
464 #. type: textblock
465 #: ../align/virt-alignment-scan.pod:201
466 msgid ""
467 "for high-end network-attached storage.  This is the optimal block size for "
468 "some NetApp hardware."
469 msgstr ""
470
471 #. type: =item
472 #: ../align/virt-alignment-scan.pod:204
473 msgid "* 1 Mbyte"
474 msgstr ""
475
476 #. type: textblock
477 #: ../align/virt-alignment-scan.pod:206
478 msgid "see L</1 MB PARTITION ALIGNMENT> below."
479 msgstr ""
480
481 #. type: textblock
482 #: ../align/virt-alignment-scan.pod:210
483 msgid ""
484 "Partitions which are not aligned correctly to the underlying storage cause "
485 "extra I/O.  For example:"
486 msgstr ""
487
488 #. type: verbatim
489 #: ../align/virt-alignment-scan.pod:213
490 #, no-wrap
491 msgid ""
492 "                       sect#63\n"
493 "                       +--------------------------+------\n"
494 "                       |         guest            |\n"
495 "                       |    filesystem block      |\n"
496 " ---+------------------+------+-------------------+-----+---\n"
497 "    |  host block             |  host block             |\n"
498 "    |                         |                         |\n"
499 " ---+-------------------------+-------------------------+---\n"
500 "\n"
501 msgstr ""
502
503 #. type: textblock
504 #: ../align/virt-alignment-scan.pod:222
505 msgid ""
506 "In this example, each time a 4K guest block is read, two blocks on the host "
507 "must be accessed (so twice as much I/O is done).  When a 4K guest block is "
508 "written, two host blocks must first be read, the old and new data combined, "
509 "and the two blocks written back (4x I/O)."
510 msgstr ""
511
512 #. type: =head2
513 #: ../align/virt-alignment-scan.pod:227
514 msgid "LINUX HOST BLOCK AND I/O SIZE"
515 msgstr ""
516
517 #. type: textblock
518 #: ../align/virt-alignment-scan.pod:229
519 msgid ""
520 "New versions of the Linux kernel expose the physical and logical block size, "
521 "and minimum and recommended I/O size."
522 msgstr ""
523
524 #. type: textblock
525 #: ../align/virt-alignment-scan.pod:232
526 msgid "For a typical hard drive with 512 byte sectors:"
527 msgstr ""
528
529 #. type: verbatim
530 #: ../align/virt-alignment-scan.pod:234
531 #, no-wrap
532 msgid ""
533 " $ cat /sys/block/sda/queue/physical_block_size\n"
534 " 512\n"
535 " $ cat /sys/block/sda/queue/logical_block_size\n"
536 " 512\n"
537 " $ cat /sys/block/sda/queue/minimum_io_size\n"
538 " 512\n"
539 " $ cat /sys/block/sda/queue/optimal_io_size\n"
540 " 0\n"
541 "\n"
542 msgstr ""
543
544 #. type: textblock
545 #: ../align/virt-alignment-scan.pod:243
546 msgid "For a NetApp LUN:"
547 msgstr ""
548
549 #. type: verbatim
550 #: ../align/virt-alignment-scan.pod:245
551 #, no-wrap
552 msgid ""
553 " $ cat /sys/block/sdc/queue/logical_block_size\n"
554 " 512\n"
555 " $ cat /sys/block/sdc/queue/physical_block_size\n"
556 " 512\n"
557 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
558 " 4096\n"
559 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
560 " 65536\n"
561 "\n"
562 msgstr ""
563
564 #. type: textblock
565 #: ../align/virt-alignment-scan.pod:254
566 msgid ""
567 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
568 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
569 msgstr ""
570
571 #. type: textblock
572 #: ../align/virt-alignment-scan.pod:258
573 msgid ""
574 "For detailed information about what these numbers mean, see "
575 "L<http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/newstorage-iolimits.html>"
576 msgstr ""
577
578 #. type: textblock
579 #: ../align/virt-alignment-scan.pod:261
580 msgid ""
581 "[Thanks to Mike Snitzer for providing NetApp data and additional "
582 "information.]"
583 msgstr ""
584
585 #. type: =head2
586 #: ../align/virt-alignment-scan.pod:264
587 msgid "1 MB PARTITION ALIGNMENT"
588 msgstr ""
589
590 #. type: textblock
591 #: ../align/virt-alignment-scan.pod:266
592 msgid ""
593 "Microsoft picked 1 MB as the default alignment for all partitions starting "
594 "with Windows 2008 Server, and Linux has followed this."
595 msgstr ""
596
597 #. type: textblock
598 #: ../align/virt-alignment-scan.pod:269
599 msgid ""
600 "Assuming 512 byte sectors in the guest, you will now see the first partition "
601 "starting at sector 2048, and subsequent partitions (if any)  will start at a "
602 "multiple of 2048 sectors."
603 msgstr ""
604
605 #. type: textblock
606 #: ../align/virt-alignment-scan.pod:273
607 msgid ""
608 "1 MB alignment is compatible with all current alignment requirements (4K, "
609 "64K) and provides room for future growth in physical block sizes."
610 msgstr ""
611
612 #. type: =head2
613 #: ../align/virt-alignment-scan.pod:276
614 msgid "SETTING ALIGNMENT"
615 msgstr ""
616
617 #. type: textblock
618 #: ../align/virt-alignment-scan.pod:278
619 msgid ""
620 "L<virt-resize(1)> can change the alignment of the partitions of some "
621 "guests.  Currently it can fully align all the partitions of all Windows "
622 "guests, and it will fix the bootloader where necessary.  For Linux guests, "
623 "it can align the second and subsequent partitions, so the majority of OS "
624 "accesses except at boot will be aligned."
625 msgstr ""
626
627 #. type: textblock
628 #: ../align/virt-alignment-scan.pod:284
629 msgid ""
630 "Another way to correct partition alignment problems is to reinstall your "
631 "guest operating systems.  If you install operating systems from templates, "
632 "ensure these have correct partition alignment too."
633 msgstr ""
634
635 #. type: textblock
636 #: ../align/virt-alignment-scan.pod:288
637 msgid ""
638 "For older versions of Windows, the following NetApp document contains useful "
639 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
640 msgstr ""
641
642 #. type: textblock
643 #: ../align/virt-alignment-scan.pod:291
644 msgid ""
645 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
646 "an explicit C<%pre> section that creates aligned partitions using "
647 "L<parted(8)>.  Do not use the Kickstart C<part> command.  The NetApp "
648 "document above contains an example."
649 msgstr ""
650
651 #. type: =head1
652 #: ../align/virt-alignment-scan.pod:296 ../cat/virt-cat.pod: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:352 ../rescue/virt-rescue.pod:266 ../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
653 msgid "SHELL QUOTING"
654 msgstr ""
655
656 #. type: textblock
657 #: ../align/virt-alignment-scan.pod:298 ../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:354 ../rescue/virt-rescue.pod:268 ../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
658 msgid ""
659 "Libvirt guest names can contain arbitrary characters, some of which have "
660 "meaning to the shell such as C<#> and space.  You may need to quote or "
661 "escape these characters on the command line.  See the shell manual page "
662 "L<sh(1)> for details."
663 msgstr ""
664
665 #. type: =head1
666 #: ../align/virt-alignment-scan.pod:303 ../cat/virt-cat.pod: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:375 ../resize/virt-resize.pod:683 ../sparsify/virt-sparsify.pod:227 ../test-tool/libguestfs-test-tool.pod:90
667 msgid "EXIT STATUS"
668 msgstr ""
669
670 #. type: textblock
671 #: ../align/virt-alignment-scan.pod:305
672 msgid "This program returns:"
673 msgstr ""
674
675 #. type: =item
676 #: ../align/virt-alignment-scan.pod:309 ../align/virt-alignment-scan.pod:315 ../align/virt-alignment-scan.pod:321 ../align/virt-alignment-scan.pod:328 ../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:393 ../inspector/virt-inspector.pod:397 ../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:2071 ../src/guestfs-actions.pod:2075 ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2091 ../src/guestfs-actions.pod:2095 ../src/guestfs-actions.pod:2099 ../src/guestfs-actions.pod:2109 ../src/guestfs-actions.pod:2113 ../src/guestfs-actions.pod:2117 ../src/guestfs-actions.pod:2255 ../src/guestfs-actions.pod:2259 ../src/guestfs-actions.pod:2264 ../src/guestfs-actions.pod:2269 ../src/guestfs-actions.pod:2330 ../src/guestfs-actions.pod:2334 ../src/guestfs-actions.pod:2339 ../src/guestfs-actions.pod:2754 ../src/guestfs-actions.pod:2761 ../src/guestfs-actions.pod:2768 ../src/guestfs-actions.pod:3313 ../src/guestfs-actions.pod:3319 ../src/guestfs-actions.pod:3327 ../src/guestfs-actions.pod:3334 ../src/guestfs-actions.pod:3341 ../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
677 msgid "*"
678 msgstr ""
679
680 #. type: textblock
681 #: ../align/virt-alignment-scan.pod:311
682 msgid "0"
683 msgstr ""
684
685 #. type: textblock
686 #: ../align/virt-alignment-scan.pod:313
687 msgid "successful exit, all partitions are aligned E<ge> 64K for best performance"
688 msgstr ""
689
690 #. type: textblock
691 #: ../align/virt-alignment-scan.pod:317
692 msgid "1"
693 msgstr ""
694
695 #. type: textblock
696 #: ../align/virt-alignment-scan.pod:319
697 msgid "an error scanning the disk image or guest"
698 msgstr ""
699
700 #. type: textblock
701 #: ../align/virt-alignment-scan.pod:323
702 msgid "2"
703 msgstr ""
704
705 #. type: textblock
706 #: ../align/virt-alignment-scan.pod:325
707 msgid ""
708 "successful exit, some partitions have alignment E<lt> 64K which can result "
709 "in poor performance on high end network storage"
710 msgstr ""
711
712 #. type: textblock
713 #: ../align/virt-alignment-scan.pod:330
714 msgid "3"
715 msgstr ""
716
717 #. type: textblock
718 #: ../align/virt-alignment-scan.pod:332
719 msgid ""
720 "successful exit, some partitions have alignment E<lt> 4K which can result in "
721 "poor performance on most hypervisors"
722 msgstr ""
723
724 #. type: =head1
725 #: ../align/virt-alignment-scan.pod:337 ../cat/virt-cat.pod: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:380 ../java/examples/guestfs-java.pod:45 ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39 ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288 ../resize/virt-resize.pod: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
726 msgid "SEE ALSO"
727 msgstr ""
728
729 #. type: textblock
730 #: ../align/virt-alignment-scan.pod:339
731 msgid ""
732 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
733 "L<virt-resize(1)>, L<http://libguestfs.org/>."
734 msgstr ""
735
736 #. type: =head1
737 #: ../align/virt-alignment-scan.pod:346 ../cat/virt-cat.pod: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:296 ../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
738 msgid "AUTHOR"
739 msgstr ""
740
741 #. type: textblock
742 #: ../align/virt-alignment-scan.pod:348 ../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:395 ../rescue/virt-rescue.pod:298 ../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
743 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
744 msgstr ""
745
746 #. type: =head1
747 #: ../align/virt-alignment-scan.pod:350 ../cat/virt-cat.pod: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:403 ../java/examples/guestfs-java.pod:62 ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56 ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300 ../resize/virt-resize.pod: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
748 msgid "COPYRIGHT"
749 msgstr ""
750
751 #. type: textblock
752 #: ../align/virt-alignment-scan.pod:352 ../clone/virt-sysprep.pod:507 ../sparsify/virt-sparsify.pod:270
753 msgid "Copyright (C) 2011 Red Hat Inc."
754 msgstr ""
755
756 #. type: textblock
757 #: ../align/virt-alignment-scan.pod:354 ../cat/virt-cat.pod: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:407 ../rescue/virt-rescue.pod:304 ../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
758 msgid ""
759 "This program is free software; you can redistribute it and/or modify it "
760 "under the terms of the GNU General Public License as published by the Free "
761 "Software Foundation; either version 2 of the License, or (at your option) "
762 "any later version."
763 msgstr ""
764
765 #. type: textblock
766 #: ../align/virt-alignment-scan.pod:359 ../cat/virt-cat.pod: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:412 ../rescue/virt-rescue.pod:309 ../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
767 msgid ""
768 "This program is distributed in the hope that it will be useful, but WITHOUT "
769 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
770 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
771 "more details."
772 msgstr ""
773
774 #. type: textblock
775 #: ../align/virt-alignment-scan.pod:364 ../cat/virt-cat.pod: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:417 ../rescue/virt-rescue.pod:314 ../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
776 msgid ""
777 "You should have received a copy of the GNU General Public License along with "
778 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
779 "Ave, Cambridge, MA 02139, USA."
780 msgstr ""
781
782 #. type: textblock
783 #: ../cat/virt-cat.pod:5
784 msgid "virt-cat - Display files in a virtual machine"
785 msgstr ""
786
787 #. type: verbatim
788 #: ../cat/virt-cat.pod:9
789 #, no-wrap
790 msgid ""
791 " virt-cat [--options] -d domname file [file ...]\n"
792 "\n"
793 msgstr ""
794
795 #. type: verbatim
796 #: ../cat/virt-cat.pod:11
797 #, no-wrap
798 msgid ""
799 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
800 "\n"
801 msgstr ""
802
803 #. type: textblock
804 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15 ../inspector/virt-inspector.pod:13
805 msgid "Old-style:"
806 msgstr ""
807
808 #. type: verbatim
809 #: ../cat/virt-cat.pod:15
810 #, no-wrap
811 msgid ""
812 " virt-cat domname file\n"
813 "\n"
814 msgstr ""
815
816 #. type: verbatim
817 #: ../cat/virt-cat.pod:17
818 #, no-wrap
819 msgid ""
820 " virt-cat disk.img file\n"
821 "\n"
822 msgstr ""
823
824 #. type: textblock
825 #: ../cat/virt-cat.pod:21
826 msgid ""
827 "C<virt-cat> is a command line tool to display the contents of C<file> where "
828 "C<file> exists in the named virtual machine (or disk image)."
829 msgstr ""
830
831 #. type: textblock
832 #: ../cat/virt-cat.pod:24
833 msgid ""
834 "Multiple filenames can be given, in which case they are concatenated "
835 "together.  Each filename must be a full path, starting at the root directory "
836 "(starting with '/')."
837 msgstr ""
838
839 #. type: textblock
840 #: ../cat/virt-cat.pod:28
841 msgid ""
842 "C<virt-cat> can be used to quickly view a file.  To edit a file, use "
843 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
844 "tool (see L</USING GUESTFISH> below)."
845 msgstr ""
846
847 #. type: =head1
848 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43 ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41 ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29 ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30 ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39 ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75 ../tools/virt-tar.pl:50
849 msgid "EXAMPLES"
850 msgstr ""
851
852 #. type: textblock
853 #: ../cat/virt-cat.pod:34
854 msgid "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
855 msgstr ""
856
857 #. type: verbatim
858 #: ../cat/virt-cat.pod:37
859 #, no-wrap
860 msgid ""
861 " virt-cat -d mydomain /etc/fstab\n"
862 "\n"
863 msgstr ""
864
865 #. type: textblock
866 #: ../cat/virt-cat.pod:39
867 msgid "List syslog messages from a VM disk image file:"
868 msgstr ""
869
870 #. type: verbatim
871 #: ../cat/virt-cat.pod:41
872 #, no-wrap
873 msgid ""
874 " virt-cat -a disk.img /var/log/messages | tail\n"
875 "\n"
876 msgstr ""
877
878 #. type: textblock
879 #: ../cat/virt-cat.pod:43
880 msgid "Find out what DHCP IP address a VM acquired:"
881 msgstr ""
882
883 #. type: verbatim
884 #: ../cat/virt-cat.pod:45
885 #, no-wrap
886 msgid ""
887 " virt-cat -d mydomain /var/log/messages | \\\n"
888 "   grep 'dhclient: bound to' | tail\n"
889 "\n"
890 msgstr ""
891
892 #. type: textblock
893 #: ../cat/virt-cat.pod:48
894 msgid "Find out what packages were recently installed:"
895 msgstr ""
896
897 #. type: verbatim
898 #: ../cat/virt-cat.pod:50
899 #, no-wrap
900 msgid ""
901 " virt-cat -d mydomain /var/log/yum.log | tail\n"
902 "\n"
903 msgstr ""
904
905 #. type: textblock
906 #: ../cat/virt-cat.pod:52
907 msgid "Find out who is logged on inside a virtual machine:"
908 msgstr ""
909
910 #. type: verbatim
911 #: ../cat/virt-cat.pod:54
912 #, no-wrap
913 msgid ""
914 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
915 " who /tmp/utmp\n"
916 "\n"
917 msgstr ""
918
919 #. type: textblock
920 #: ../cat/virt-cat.pod:57
921 msgid "or who was logged on:"
922 msgstr ""
923
924 #. type: verbatim
925 #: ../cat/virt-cat.pod:59
926 #, no-wrap
927 msgid ""
928 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
929 " last -f /tmp/wtmp\n"
930 "\n"
931 msgstr ""
932
933 #. type: textblock
934 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103 ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74 ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
935 msgid ""
936 "Add I<file> which should be a disk image from a virtual machine.  If the "
937 "virtual machine has multiple block devices, you must supply all of them with "
938 "separate I<-a> options."
939 msgstr ""
940
941 #. type: =item
942 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148 ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217 ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
943 msgid "B<--echo-keys>"
944 msgstr ""
945
946 #. type: textblock
947 #: ../cat/virt-cat.pod:100
948 msgid ""
949 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
950 "so you cannot see what you are typing.  If you are not worried about Tempest "
951 "attacks and there is no one else in the room you can specify this flag to "
952 "see what you are typing."
953 msgstr ""
954
955 #. type: verbatim
956 #: ../cat/virt-cat.pod:116
957 #, no-wrap
958 msgid ""
959 " virt-cat --format=raw -a disk.img file\n"
960 "\n"
961 msgstr ""
962
963 #. type: verbatim
964 #: ../cat/virt-cat.pod:120
965 #, no-wrap
966 msgid ""
967 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
968 "\n"
969 msgstr ""
970
971 #. type: =item
972 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200 ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289 ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
973 msgid "B<--keys-from-stdin>"
974 msgstr ""
975
976 #. type: textblock
977 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202 ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291 ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
978 msgid ""
979 "Read key or passphrase parameters from stdin.  The default is to try to read "
980 "passphrases from the user by opening C</dev/tty>."
981 msgstr ""
982
983 #. type: =head1
984 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179 ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
985 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
986 msgstr ""
987
988 #. type: textblock
989 #: ../cat/virt-cat.pod:154
990 msgid "Previous versions of virt-cat allowed you to write either:"
991 msgstr ""
992
993 #. type: verbatim
994 #: ../cat/virt-cat.pod:156
995 #, no-wrap
996 msgid ""
997 " virt-cat disk.img [disk.img ...] file\n"
998 "\n"
999 msgstr ""
1000
1001 #. type: textblock
1002 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185 ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
1003 msgid "or"
1004 msgstr ""
1005
1006 #. type: verbatim
1007 #: ../cat/virt-cat.pod:160
1008 #, no-wrap
1009 msgid ""
1010 " virt-cat guestname file\n"
1011 "\n"
1012 msgstr ""
1013
1014 #. type: textblock
1015 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189 ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
1016 msgid ""
1017 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1018 "the confusing case where a disk image might have the same name as a guest."
1019 msgstr ""
1020
1021 #. type: textblock
1022 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193 ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
1023 msgid "For compatibility the old style is still supported."
1024 msgstr ""
1025
1026 #. type: =head1
1027 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
1028 msgid "WINDOWS PATHS"
1029 msgstr ""
1030
1031 #. type: textblock
1032 #: ../cat/virt-cat.pod:170
1033 msgid ""
1034 "C<virt-cat> has a limited ability to understand Windows drive letters and "
1035 "paths (eg. C<E:\\foo\\bar.txt>)."
1036 msgstr ""
1037
1038 #. type: textblock
1039 #: ../cat/virt-cat.pod:173 ../edit/virt-edit.pod:262
1040 msgid "If and only if the guest is running Windows then:"
1041 msgstr ""
1042
1043 #. type: textblock
1044 #: ../cat/virt-cat.pod:179 ../edit/virt-edit.pod:268
1045 msgid ""
1046 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
1047 "to the correct filesystem."
1048 msgstr ""
1049
1050 #. type: textblock
1051 #: ../cat/virt-cat.pod:184 ../edit/virt-edit.pod:273
1052 msgid ""
1053 "Any backslash (C<\\>) characters in the path are replaced with forward "
1054 "slashes so that libguestfs can process it."
1055 msgstr ""
1056
1057 #. type: textblock
1058 #: ../cat/virt-cat.pod:189
1059 msgid ""
1060 "The path is resolved case insensitively to locate the file that should be "
1061 "displayed."
1062 msgstr ""
1063
1064 #. type: textblock
1065 #: ../cat/virt-cat.pod:194 ../edit/virt-edit.pod:283
1066 msgid "There are some known shortcomings:"
1067 msgstr ""
1068
1069 #. type: textblock
1070 #: ../cat/virt-cat.pod:200 ../edit/virt-edit.pod:289
1071 msgid "Some NTFS symbolic links may not be followed correctly."
1072 msgstr ""
1073
1074 #. type: textblock
1075 #: ../cat/virt-cat.pod:204 ../edit/virt-edit.pod:293
1076 msgid "NTFS junction points that cross filesystems are not followed."
1077 msgstr ""
1078
1079 #. type: =head1
1080 #: ../cat/virt-cat.pod:208 ../edit/virt-edit.pod:297
1081 msgid "USING GUESTFISH"
1082 msgstr ""
1083
1084 #. type: textblock
1085 #: ../cat/virt-cat.pod:210
1086 msgid ""
1087 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1088 "C<virt-cat> doesn't work."
1089 msgstr ""
1090
1091 #. type: textblock
1092 #: ../cat/virt-cat.pod:213
1093 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1094 msgstr ""
1095
1096 #. type: verbatim
1097 #: ../cat/virt-cat.pod:215
1098 #, no-wrap
1099 msgid ""
1100 " guestfish --ro -i -d domname download file -\n"
1101 "\n"
1102 msgstr ""
1103
1104 #. type: textblock
1105 #: ../cat/virt-cat.pod:217
1106 msgid ""
1107 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1108 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1109 msgstr ""
1110
1111 #. type: textblock
1112 #: ../cat/virt-cat.pod:221
1113 msgid ""
1114 "The command above uses libguestfs's guest inspection feature and so does not "
1115 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1116 "disk images that don't contain guests.  To display a file from a disk image "
1117 "directly, use:"
1118 msgstr ""
1119
1120 #. type: verbatim
1121 #: ../cat/virt-cat.pod:226
1122 #, no-wrap
1123 msgid ""
1124 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1125 "\n"
1126 msgstr ""
1127
1128 #. type: textblock
1129 #: ../cat/virt-cat.pod:228
1130 msgid ""
1131 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1132 "the disk image, and C<file> is the full path to the file."
1133 msgstr ""
1134
1135 #. type: textblock
1136 #: ../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:377 ../resize/virt-resize.pod:685 ../sparsify/virt-sparsify.pod:229
1137 msgid "This program returns 0 if successful, or non-zero if there was an error."
1138 msgstr ""
1139
1140 #. type: textblock
1141 #: ../cat/virt-cat.pod:245
1142 msgid ""
1143 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
1144 "L<virt-tar-out(1)>, L<http://libguestfs.org/>."
1145 msgstr ""
1146
1147 #. type: textblock
1148 #: ../cat/virt-cat.pod:258 ../inspector/virt-inspector.pod:405 ../resize/virt-resize.pod:717 ../tools/virt-make-fs.pl:588
1149 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1150 msgstr ""
1151
1152 #. type: textblock
1153 #: ../cat/virt-filesystems.pod:5
1154 msgid ""
1155 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1156 "virtual machine or disk image"
1157 msgstr ""
1158
1159 #. type: verbatim
1160 #: ../cat/virt-filesystems.pod:9
1161 #, no-wrap
1162 msgid ""
1163 " virt-filesystems [--options] -d domname\n"
1164 "\n"
1165 msgstr ""
1166
1167 #. type: verbatim
1168 #: ../cat/virt-filesystems.pod:11
1169 #, no-wrap
1170 msgid ""
1171 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1172 "\n"
1173 msgstr ""
1174
1175 #. type: textblock
1176 #: ../cat/virt-filesystems.pod:15
1177 msgid ""
1178 "This tool allows you to discover filesystems, partitions, logical volumes, "
1179 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1180 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1181 msgstr ""
1182
1183 #. type: textblock
1184 #: ../cat/virt-filesystems.pod:20
1185 msgid ""
1186 "One use for this tool is from shell scripts to iterate over all filesystems "
1187 "from a disk image:"
1188 msgstr ""
1189
1190 #. type: verbatim
1191 #: ../cat/virt-filesystems.pod:23
1192 #, no-wrap
1193 msgid ""
1194 " for fs in $(virt-filesystems -a disk.img); do\n"
1195 "   # ...\n"
1196 " done\n"
1197 "\n"
1198 msgstr ""
1199
1200 #. type: textblock
1201 #: ../cat/virt-filesystems.pod:27
1202 msgid ""
1203 "Another use is to list partitions before using another tool to modify those "
1204 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1205 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1206 msgstr ""
1207
1208 #. type: textblock
1209 #: ../cat/virt-filesystems.pod:32
1210 msgid ""
1211 "Various command line options control what this program displays.  You need "
1212 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1213 "guest respectively.  If you just specify that then the program shows "
1214 "filesystems found, one per line, like this:"
1215 msgstr ""
1216
1217 #. type: verbatim
1218 #: ../cat/virt-filesystems.pod:37
1219 #, no-wrap
1220 msgid ""
1221 " $ virt-filesystems -a disk.img\n"
1222 " /dev/sda1\n"
1223 " /dev/vg_guest/lv_root\n"
1224 "\n"
1225 msgstr ""
1226
1227 #. type: textblock
1228 #: ../cat/virt-filesystems.pod:41
1229 msgid "If you add I<-l> or I<--long> then the output includes extra information:"
1230 msgstr ""
1231
1232 #. type: verbatim
1233 #: ../cat/virt-filesystems.pod:44
1234 #, no-wrap
1235 msgid ""
1236 " $ virt-filesystems -a disk.img -l\n"
1237 " Name                   Type         VFS   Label  Size\n"
1238 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1239 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1240 "\n"
1241 msgstr ""
1242
1243 #. type: textblock
1244 #: ../cat/virt-filesystems.pod:49
1245 msgid ""
1246 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1247 "shown as well:"
1248 msgstr ""
1249
1250 #. type: verbatim
1251 #: ../cat/virt-filesystems.pod:52
1252 #, no-wrap
1253 msgid ""
1254 " $ virt-filesystems -a disk.img --extra\n"
1255 " /dev/sda1\n"
1256 " /dev/vg_guest/lv_root\n"
1257 " /dev/vg_guest/lv_swap\n"
1258 " /dev/vg_guest/lv_data\n"
1259 "\n"
1260 msgstr ""
1261
1262 #. type: textblock
1263 #: ../cat/virt-filesystems.pod:58
1264 msgid "If you add I<--partitions> then partitions are shown instead of filesystems:"
1265 msgstr ""
1266
1267 #. type: verbatim
1268 #: ../cat/virt-filesystems.pod:60
1269 #, no-wrap
1270 msgid ""
1271 " $ virt-filesystems -a disk.img --partitions\n"
1272 " /dev/sda1\n"
1273 " /dev/sda2\n"
1274 "\n"
1275 msgstr ""
1276
1277 #. type: textblock
1278 #: ../cat/virt-filesystems.pod:64
1279 msgid ""
1280 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, "
1281 "I<--physical-volumes>, I<--block-devices> to list those items."
1282 msgstr ""
1283
1284 #. type: textblock
1285 #: ../cat/virt-filesystems.pod:67
1286 msgid ""
1287 "You can use these options in combination as well (if you want a combination "
1288 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1289 "items fall into several categories (eg. C</dev/sda1> might be both a "
1290 "partition and a filesystem).  These items are listed several times.  To get "
1291 "a list which includes absolutely everything that virt-filesystems knows "
1292 "about, use the I<--all> option."
1293 msgstr ""
1294
1295 #. type: textblock
1296 #: ../cat/virt-filesystems.pod:74
1297 msgid ""
1298 "UUIDs (because they are quite long) are not shown by default.  Add the "
1299 "I<--uuid> option to display device and filesystem UUIDs in the long output."
1300 msgstr ""
1301
1302 #. type: textblock
1303 #: ../cat/virt-filesystems.pod:78
1304 msgid ""
1305 "I<--all --long --uuid> is a useful combination to display all possible "
1306 "information about everything."
1307 msgstr ""
1308
1309 #. type: verbatim
1310 #: ../cat/virt-filesystems.pod:81
1311 #, no-wrap
1312 msgid ""
1313 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1314 " Name      Type       VFS  Label           Size Parent   UUID\n"
1315 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1316 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1317 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1318 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1319 " /dev/sda  device     -    -               20G  -        -\n"
1320 "\n"
1321 msgstr ""
1322
1323 #. type: textblock
1324 #: ../cat/virt-filesystems.pod:89
1325 msgid "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1326 msgstr ""
1327
1328 #. type: =item
1329 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1330 msgid "B<--all>"
1331 msgstr ""
1332
1333 #. type: textblock
1334 #: ../cat/virt-filesystems.pod:112
1335 msgid ""
1336 "Display everything.  This is currently the same as specifying these options: "
1337 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, "
1338 "I<--logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may "
1339 "be added to this list in future)."
1340 msgstr ""
1341
1342 #. type: textblock
1343 #: ../cat/virt-filesystems.pod:117
1344 msgid "See also I<--long>."
1345 msgstr ""
1346
1347 #. type: =item
1348 #: ../cat/virt-filesystems.pod:119
1349 msgid "B<--blkdevs>"
1350 msgstr ""
1351
1352 #. type: =item
1353 #: ../cat/virt-filesystems.pod:121
1354 msgid "B<--block-devices>"
1355 msgstr ""
1356
1357 #. type: textblock
1358 #: ../cat/virt-filesystems.pod:123
1359 msgid "Display block devices."
1360 msgstr ""
1361
1362 #. type: =item
1363 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1364 msgid "B<--csv>"
1365 msgstr ""
1366
1367 #. type: textblock
1368 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1369 msgid ""
1370 "Write out the results in CSV format (comma-separated values).  This format "
1371 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1372 "ABOUT CSV FORMAT> below."
1373 msgstr ""
1374
1375 #. type: textblock
1376 #: ../cat/virt-filesystems.pod:150
1377 msgid ""
1378 "When prompting for keys and passphrases, virt-filesystems normally turns "
1379 "echoing off so you cannot see what you are typing.  If you are not worried "
1380 "about Tempest attacks and there is no one else in the room you can specify "
1381 "this flag to see what you are typing."
1382 msgstr ""
1383
1384 #. type: =item
1385 #: ../cat/virt-filesystems.pod:155
1386 msgid "B<--extra>"
1387 msgstr ""
1388
1389 #. type: textblock
1390 #: ../cat/virt-filesystems.pod:157
1391 msgid ""
1392 "This causes filesystems that are not ordinary, mountable filesystems to be "
1393 "displayed.  This category includes swapspace, and filesystems that are empty "
1394 "or contain unknown data."
1395 msgstr ""
1396
1397 #. type: textblock
1398 #: ../cat/virt-filesystems.pod:161
1399 msgid "This option implies I<--filesystems>."
1400 msgstr ""
1401
1402 #. type: =item
1403 #: ../cat/virt-filesystems.pod:163
1404 msgid "B<--filesystems>"
1405 msgstr ""
1406
1407 #. type: textblock
1408 #: ../cat/virt-filesystems.pod:165
1409 msgid ""
1410 "Display mountable filesystems.  If no display option was selected then this "
1411 "option is implied."
1412 msgstr ""
1413
1414 #. type: textblock
1415 #: ../cat/virt-filesystems.pod:168
1416 msgid "With I<--extra>, non-mountable filesystems are shown too."
1417 msgstr ""
1418
1419 #. type: verbatim
1420 #: ../cat/virt-filesystems.pod:181
1421 #, no-wrap
1422 msgid ""
1423 " virt-filesystems --format=raw -a disk.img\n"
1424 "\n"
1425 msgstr ""
1426
1427 #. type: verbatim
1428 #: ../cat/virt-filesystems.pod:185
1429 #, no-wrap
1430 msgid ""
1431 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1432 "\n"
1433 msgstr ""
1434
1435 #. type: =item
1436 #: ../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
1437 msgid "B<-h>"
1438 msgstr ""
1439
1440 #. type: =item
1441 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354 ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1442 msgid "B<--human-readable>"
1443 msgstr ""
1444
1445 #. type: textblock
1446 #: ../cat/virt-filesystems.pod:198
1447 msgid "In I<--long> mode, display sizes in human-readable format."
1448 msgstr ""
1449
1450 #. type: =item
1451 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366 ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1452 msgid "B<-l>"
1453 msgstr ""
1454
1455 #. type: =item
1456 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368 ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1457 msgid "B<--long>"
1458 msgstr ""
1459
1460 #. type: textblock
1461 #: ../cat/virt-filesystems.pod:209
1462 msgid "Display extra columns of data (\"long format\")."
1463 msgstr ""
1464
1465 #. type: textblock
1466 #: ../cat/virt-filesystems.pod:211
1467 msgid "A title row is added unless you also specify I<--no-title>."
1468 msgstr ""
1469
1470 #. type: textblock
1471 #: ../cat/virt-filesystems.pod:213
1472 msgid ""
1473 "The extra columns displayed depend on what output you select, and the "
1474 "ordering of columns may change in future versions.  Use the title row, "
1475 "I<--csv> output and/or L<csvtool(1)> to match columns to data in external "
1476 "programs."
1477 msgstr ""
1478
1479 #. type: textblock
1480 #: ../cat/virt-filesystems.pod:218
1481 msgid ""
1482 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1483 "default is to show raw numbers of I<bytes>."
1484 msgstr ""
1485
1486 #. type: textblock
1487 #: ../cat/virt-filesystems.pod:221
1488 msgid "Use I<--uuid> to display UUIDs too."
1489 msgstr ""
1490
1491 #. type: =item
1492 #: ../cat/virt-filesystems.pod:223
1493 msgid "B<--lvs>"
1494 msgstr ""
1495
1496 #. type: =item
1497 #: ../cat/virt-filesystems.pod:225
1498 msgid "B<--logvols>"
1499 msgstr ""
1500
1501 #. type: =item
1502 #: ../cat/virt-filesystems.pod:227
1503 msgid "B<--logical-volumes>"
1504 msgstr ""
1505
1506 #. type: textblock
1507 #: ../cat/virt-filesystems.pod:229
1508 msgid ""
1509 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1510 "of whether the LVs contain filesystems."
1511 msgstr ""
1512
1513 #. type: =item
1514 #: ../cat/virt-filesystems.pod:232
1515 msgid "B<--no-title>"
1516 msgstr ""
1517
1518 #. type: textblock
1519 #: ../cat/virt-filesystems.pod:234
1520 msgid "In I<--long> mode, don't add a title row."
1521 msgstr ""
1522
1523 #. type: textblock
1524 #: ../cat/virt-filesystems.pod:236
1525 msgid ""
1526 "Note that the order of the columns is not fixed, and may change in future "
1527 "versions of virt-filesystems, so using this option may give you unexpected "
1528 "surprises."
1529 msgstr ""
1530
1531 #. type: =item
1532 #: ../cat/virt-filesystems.pod:240
1533 msgid "B<--parts>"
1534 msgstr ""
1535
1536 #. type: =item
1537 #: ../cat/virt-filesystems.pod:242
1538 msgid "B<--partitions>"
1539 msgstr ""
1540
1541 #. type: textblock
1542 #: ../cat/virt-filesystems.pod:244
1543 msgid ""
1544 "Display partitions.  In this mode, these are displayed irrespective of "
1545 "whether the partitions contain filesystems."
1546 msgstr ""
1547
1548 #. type: =item
1549 #: ../cat/virt-filesystems.pod:247
1550 msgid "B<--pvs>"
1551 msgstr ""
1552
1553 #. type: =item
1554 #: ../cat/virt-filesystems.pod:249
1555 msgid "B<--physvols>"
1556 msgstr ""
1557
1558 #. type: =item
1559 #: ../cat/virt-filesystems.pod:251
1560 msgid "B<--physical-volumes>"
1561 msgstr ""
1562
1563 #. type: textblock
1564 #: ../cat/virt-filesystems.pod:253
1565 msgid "Display LVM physical volumes."
1566 msgstr ""
1567
1568 #. type: =item
1569 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1570 msgid "B<--uuid>"
1571 msgstr ""
1572
1573 #. type: =item
1574 #: ../cat/virt-filesystems.pod:257
1575 msgid "B<--uuids>"
1576 msgstr ""
1577
1578 #. type: textblock
1579 #: ../cat/virt-filesystems.pod:259
1580 msgid "In I<--long> mode, display UUIDs as well."
1581 msgstr ""
1582
1583 #. type: =item
1584 #: ../cat/virt-filesystems.pod:273
1585 msgid "B<--vgs>"
1586 msgstr ""
1587
1588 #. type: =item
1589 #: ../cat/virt-filesystems.pod:275
1590 msgid "B<--volgroups>"
1591 msgstr ""
1592
1593 #. type: =item
1594 #: ../cat/virt-filesystems.pod:277
1595 msgid "B<--volume-groups>"
1596 msgstr ""
1597
1598 #. type: textblock
1599 #: ../cat/virt-filesystems.pod:279
1600 msgid "Display LVM volume groups."
1601 msgstr ""
1602
1603 #. type: =head1
1604 #: ../cat/virt-filesystems.pod:287
1605 msgid "COLUMNS"
1606 msgstr ""
1607
1608 #. type: textblock
1609 #: ../cat/virt-filesystems.pod:289
1610 msgid ""
1611 "Note that columns in the output are subject to reordering and change in "
1612 "future versions of this tool."
1613 msgstr ""
1614
1615 #. type: =item
1616 #: ../cat/virt-filesystems.pod:294
1617 msgid "B<Name>"
1618 msgstr ""
1619
1620 #. type: textblock
1621 #: ../cat/virt-filesystems.pod:296
1622 msgid "The filesystem, partition, block device or LVM name."
1623 msgstr ""
1624
1625 #. type: textblock
1626 #: ../cat/virt-filesystems.pod:298
1627 msgid ""
1628 "For device and partition names these are displayed as canonical libguestfs "
1629 "names, so that for example C</dev/sda2> is the second partition on the first "
1630 "device."
1631 msgstr ""
1632
1633 #. type: textblock
1634 #: ../cat/virt-filesystems.pod:302
1635 msgid ""
1636 "If the I<--long> option is B<not> specified, then only the name column is "
1637 "shown in the output."
1638 msgstr ""
1639
1640 #. type: =item
1641 #: ../cat/virt-filesystems.pod:305
1642 msgid "B<Type>"
1643 msgstr ""
1644
1645 #. type: textblock
1646 #: ../cat/virt-filesystems.pod:307
1647 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1648 msgstr ""
1649
1650 #. type: =item
1651 #: ../cat/virt-filesystems.pod:309
1652 msgid "B<VFS>"
1653 msgstr ""
1654
1655 #. type: textblock
1656 #: ../cat/virt-filesystems.pod:311
1657 msgid ""
1658 "If there is a filesystem, then this column displays the filesystem type if "
1659 "one could be detected, eg. C<ext4>."
1660 msgstr ""
1661
1662 #. type: =item
1663 #: ../cat/virt-filesystems.pod:314
1664 msgid "B<Label>"
1665 msgstr ""
1666
1667 #. type: textblock
1668 #: ../cat/virt-filesystems.pod:316
1669 msgid ""
1670 "If the object has a label (used for identifying and mounting filesystems) "
1671 "then this column contains the label."
1672 msgstr ""
1673
1674 #. type: =item
1675 #: ../cat/virt-filesystems.pod:319
1676 msgid "B<MBR>"
1677 msgstr ""
1678
1679 #. type: textblock
1680 #: ../cat/virt-filesystems.pod:321
1681 msgid ""
1682 "The partition type byte, displayed as a two digit hexadecimal number.  A "
1683 "comprehensive list of partition types can be found here: "
1684 "L<http://www.win.tue.nl/~aeb/partitions/partition_types-1.html>"
1685 msgstr ""
1686
1687 #. type: textblock
1688 #: ../cat/virt-filesystems.pod:325
1689 msgid "This is only applicable for DOS (MBR) partitions."
1690 msgstr ""
1691
1692 #. type: =item
1693 #: ../cat/virt-filesystems.pod:327
1694 msgid "B<Size>"
1695 msgstr ""
1696
1697 #. type: textblock
1698 #: ../cat/virt-filesystems.pod:329
1699 msgid ""
1700 "The size of the object in bytes.  If the I<--human> option is used then the "
1701 "size is displayed in a human-readable form."
1702 msgstr ""
1703
1704 #. type: =item
1705 #: ../cat/virt-filesystems.pod:332
1706 msgid "B<Parent>"
1707 msgstr ""
1708
1709 #. type: textblock
1710 #: ../cat/virt-filesystems.pod:334
1711 msgid ""
1712 "The parent column records the parent relationship between objects.  For "
1713 "example, if the object is a partition, then this column contains the name of "
1714 "the containing device.  If the object is a logical volume, then this column "
1715 "is the name of the volume group."
1716 msgstr ""
1717
1718 #. type: =item
1719 #: ../cat/virt-filesystems.pod:339
1720 msgid "B<UUID>"
1721 msgstr ""
1722
1723 #. type: textblock
1724 #: ../cat/virt-filesystems.pod:341
1725 msgid ""
1726 "If the object has a UUID (used for identifying and mounting filesystems and "
1727 "block devices) then this column contains the UUID as a string."
1728 msgstr ""
1729
1730 #. type: textblock
1731 #: ../cat/virt-filesystems.pod:345
1732 msgid "The UUID is only displayed if the I<--uuid> option is given."
1733 msgstr ""
1734
1735 #. type: =head1
1736 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:459 ../df/virt-df.pod:191
1737 msgid "NOTE ABOUT CSV FORMAT"
1738 msgstr ""
1739
1740 #. type: textblock
1741 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:461 ../df/virt-df.pod:193
1742 msgid ""
1743 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
1744 "should be easy to parse, but it is definitely not easy to parse."
1745 msgstr ""
1746
1747 #. type: textblock
1748 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:464 ../df/virt-df.pod:196
1749 msgid ""
1750 "Myth: Just split fields at commas.  Reality: This does I<not> work "
1751 "reliably.  This example has two columns:"
1752 msgstr ""
1753
1754 #. type: verbatim
1755 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:467 ../df/virt-df.pod:199
1756 #, no-wrap
1757 msgid ""
1758 " \"foo,bar\",baz\n"
1759 "\n"
1760 msgstr ""
1761
1762 #. type: textblock
1763 #: ../cat/virt-filesystems.pod:359 ../cat/virt-ls.pod:469 ../df/virt-df.pod:201
1764 msgid ""
1765 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
1766 "reliably.  This example has one row:"
1767 msgstr ""
1768
1769 #. type: verbatim
1770 #: ../cat/virt-filesystems.pod:362 ../cat/virt-ls.pod:472 ../df/virt-df.pod:204
1771 #, no-wrap
1772 msgid ""
1773 " \"foo\n"
1774 " bar\",baz\n"
1775 "\n"
1776 msgstr ""
1777
1778 #. type: textblock
1779 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:475 ../df/virt-df.pod:207
1780 msgid ""
1781 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1782 "packaged in major Linux distributions)."
1783 msgstr ""
1784
1785 #. type: textblock
1786 #: ../cat/virt-filesystems.pod:368 ../cat/virt-ls.pod:478 ../df/virt-df.pod:210
1787 msgid ""
1788 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1789 "or Python's built-in csv library)."
1790 msgstr ""
1791
1792 #. type: textblock
1793 #: ../cat/virt-filesystems.pod:371 ../cat/virt-ls.pod:481 ../df/virt-df.pod:213
1794 msgid "Most spreadsheets and databases can import CSV directly."
1795 msgstr ""
1796
1797 #. type: textblock
1798 #: ../cat/virt-filesystems.pod:387
1799 msgid ""
1800 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
1801 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, "
1802 "L<http://libguestfs.org/>."
1803 msgstr ""
1804
1805 #. type: textblock
1806 #: ../cat/virt-filesystems.pod:402 ../tools/virt-win-reg.pl:789
1807 msgid "Copyright (C) 2010 Red Hat Inc."
1808 msgstr ""
1809
1810 #. type: textblock
1811 #: ../cat/virt-ls.pod:5
1812 msgid "virt-ls - List files in a virtual machine"
1813 msgstr ""
1814
1815 #. type: verbatim
1816 #: ../cat/virt-ls.pod:9
1817 #, no-wrap
1818 msgid ""
1819 " virt-ls [--options] -d domname directory [directory ...]\n"
1820 "\n"
1821 msgstr ""
1822
1823 #. type: verbatim
1824 #: ../cat/virt-ls.pod:11
1825 #, no-wrap
1826 msgid ""
1827 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory "
1828 "...]\n"
1829 "\n"
1830 msgstr ""
1831
1832 #. type: textblock
1833 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1834 msgid "Old style:"
1835 msgstr ""
1836
1837 #. type: verbatim
1838 #: ../cat/virt-ls.pod:15
1839 #, no-wrap
1840 msgid ""
1841 " virt-ls [--options] domname directory\n"
1842 "\n"
1843 msgstr ""
1844
1845 #. type: verbatim
1846 #: ../cat/virt-ls.pod:17
1847 #, no-wrap
1848 msgid ""
1849 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1850 "\n"
1851 msgstr ""
1852
1853 #. type: textblock
1854 #: ../cat/virt-ls.pod:21
1855 msgid ""
1856 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1857 "more from a virtual machine or disk image."
1858 msgstr ""
1859
1860 #. type: textblock
1861 #: ../cat/virt-ls.pod:24
1862 msgid ""
1863 "Multiple directory names can be given, in which case the output from each is "
1864 "concatenated."
1865 msgstr ""
1866
1867 #. type: textblock
1868 #: ../cat/virt-ls.pod:27
1869 msgid ""
1870 "To list directories from a libvirt guest use the I<-d> option to specify the "
1871 "name of the guest.  For a disk image, use the I<-a> option."
1872 msgstr ""
1873
1874 #. type: textblock
1875 #: ../cat/virt-ls.pod:31
1876 msgid ""
1877 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
1878 "may need to use L<guestfish(1)>, or write a program directly to the "
1879 "L<guestfs(3)> API."
1880 msgstr ""
1881
1882 #. type: textblock
1883 #: ../cat/virt-ls.pod:37
1884 msgid "Get a list of all files and directories in a virtual machine:"
1885 msgstr ""
1886
1887 #. type: verbatim
1888 #: ../cat/virt-ls.pod:39
1889 #, no-wrap
1890 msgid ""
1891 " virt-ls -R -d guest /\n"
1892 "\n"
1893 msgstr ""
1894
1895 #. type: textblock
1896 #: ../cat/virt-ls.pod:41
1897 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1898 msgstr ""
1899
1900 #. type: verbatim
1901 #: ../cat/virt-ls.pod:43
1902 #, no-wrap
1903 msgid ""
1904 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1905 "\n"
1906 msgstr ""
1907
1908 #. type: textblock
1909 #: ../cat/virt-ls.pod:45
1910 msgid "List all public-writable directories in a Linux virtual machine:"
1911 msgstr ""
1912
1913 #. type: verbatim
1914 #: ../cat/virt-ls.pod:47
1915 #, no-wrap
1916 msgid ""
1917 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1918 "\n"
1919 msgstr ""
1920
1921 #. type: textblock
1922 #: ../cat/virt-ls.pod:49
1923 msgid "List all Unix domain sockets in a Linux virtual machine:"
1924 msgstr ""
1925
1926 #. type: verbatim
1927 #: ../cat/virt-ls.pod:51
1928 #, no-wrap
1929 msgid ""
1930 " virt-ls -lR -d guest / | grep '^s'\n"
1931 "\n"
1932 msgstr ""
1933
1934 #. type: textblock
1935 #: ../cat/virt-ls.pod:53
1936 msgid "List all regular files with filenames ending in '.png':"
1937 msgstr ""
1938
1939 #. type: verbatim
1940 #: ../cat/virt-ls.pod:55
1941 #, no-wrap
1942 msgid ""
1943 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1944 "\n"
1945 msgstr ""
1946
1947 #. type: textblock
1948 #: ../cat/virt-ls.pod:57
1949 msgid "To display files larger than 10MB in home directories:"
1950 msgstr ""
1951
1952 #. type: verbatim
1953 #: ../cat/virt-ls.pod:59
1954 #, no-wrap
1955 msgid ""
1956 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1957 "\n"
1958 msgstr ""
1959
1960 #. type: textblock
1961 #: ../cat/virt-ls.pod:61
1962 msgid "Find everything modified in the last 7 days:"
1963 msgstr ""
1964
1965 #. type: verbatim
1966 #: ../cat/virt-ls.pod:63
1967 #, no-wrap
1968 msgid ""
1969 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1970 "\n"
1971 msgstr ""
1972
1973 #. type: textblock
1974 #: ../cat/virt-ls.pod:65
1975 msgid "Find regular files modified in the last 24 hours:"
1976 msgstr ""
1977
1978 #. type: verbatim
1979 #: ../cat/virt-ls.pod:67
1980 #, no-wrap
1981 msgid ""
1982 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1983 "\n"
1984 msgstr ""
1985
1986 #. type: =head2
1987 #: ../cat/virt-ls.pod:69
1988 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1989 msgstr ""
1990
1991 #. type: textblock
1992 #: ../cat/virt-ls.pod:71
1993 msgid ""
1994 "Find the differences between files in a guest and an earlier snapshot of the "
1995 "same guest."
1996 msgstr ""
1997
1998 #. type: verbatim
1999 #: ../cat/virt-ls.pod:74
2000 #, no-wrap
2001 msgid ""
2002 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2003 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2004 " diff -u old new | less\n"
2005 "\n"
2006 msgstr ""
2007
2008 #. type: textblock
2009 #: ../cat/virt-ls.pod:78
2010 msgid ""
2011 "The commands above won't find files where the content has changed but the "
2012 "metadata (eg. file size and modification date) is the same.  To do that, you "
2013 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  "
2014 "I<--checksum> can be quite slow since it has to read and compute a checksum "
2015 "of every regular file in the virtual machine."
2016 msgstr ""
2017
2018 #. type: =head1
2019 #: ../cat/virt-ls.pod:84
2020 msgid "OUTPUT MODES"
2021 msgstr ""
2022
2023 #. type: textblock
2024 #: ../cat/virt-ls.pod:86
2025 msgid ""
2026 "C<virt-ls> has four output modes, controlled by different combinations of "
2027 "the I<-l> and I<-R> options."
2028 msgstr ""
2029
2030 #. type: =head2
2031 #: ../cat/virt-ls.pod:89
2032 msgid "SIMPLE LISTING"
2033 msgstr ""
2034
2035 #. type: textblock
2036 #: ../cat/virt-ls.pod:91
2037 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2038 msgstr ""
2039
2040 #. type: verbatim
2041 #: ../cat/virt-ls.pod:93
2042 #, no-wrap
2043 msgid ""
2044 " $ virt-ls -d guest /\n"
2045 " bin\n"
2046 " boot\n"
2047 " [etc.]\n"
2048 "\n"
2049 msgstr ""
2050
2051 #. type: =head2
2052 #: ../cat/virt-ls.pod:98
2053 msgid "LONG LISTING"
2054 msgstr ""
2055
2056 #. type: textblock
2057 #: ../cat/virt-ls.pod:100
2058 msgid ""
2059 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2060 "(more specifically, like the C<guestfs_ll> function)."
2061 msgstr ""
2062
2063 #. type: verbatim
2064 #: ../cat/virt-ls.pod:103
2065 #, no-wrap
2066 msgid ""
2067 " $ virt-ls -l -d guest /\n"
2068 " total 204\n"
2069 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2070 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2071 " [etc.]\n"
2072 "\n"
2073 msgstr ""
2074
2075 #. type: textblock
2076 #: ../cat/virt-ls.pod:109
2077 msgid ""
2078 "Note that while this is useful for displaying a directory, do not try "
2079 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2080 "instead."
2081 msgstr ""
2082
2083 #. type: =head2
2084 #: ../cat/virt-ls.pod:113
2085 msgid "RECURSIVE LISTING"
2086 msgstr ""
2087
2088 #. type: textblock
2089 #: ../cat/virt-ls.pod:115
2090 msgid ""
2091 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2092 "and directories recursively:"
2093 msgstr ""
2094
2095 #. type: verbatim
2096 #: ../cat/virt-ls.pod:118
2097 #, no-wrap
2098 msgid ""
2099 " $ virt-ls -R -d guest /tmp\n"
2100 " foo\n"
2101 " foo/bar\n"
2102 " [etc.]\n"
2103 "\n"
2104 msgstr ""
2105
2106 #. type: textblock
2107 #: ../cat/virt-ls.pod:123
2108 msgid ""
2109 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2110 "converts C<\\0> characters to C<\\n>."
2111 msgstr ""
2112
2113 #. type: =head2
2114 #: ../cat/virt-ls.pod:126
2115 msgid "RECURSIVE LONG LISTING"
2116 msgstr ""
2117
2118 #. type: textblock
2119 #: ../cat/virt-ls.pod:128
2120 msgid ""
2121 "Using I<-lR> options together changes the output to display directories "
2122 "recursively, with file stats, and optionally other features such as "
2123 "checksums and extended attributes."
2124 msgstr ""
2125
2126 #. type: textblock
2127 #: ../cat/virt-ls.pod:132
2128 msgid ""
2129 "Most of the interesting features of C<virt-ls> are only available when using "
2130 "I<-lR> mode."
2131 msgstr ""
2132
2133 #. type: textblock
2134 #: ../cat/virt-ls.pod:135
2135 msgid ""
2136 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2137 "you cannot use the output in another program (because filenames can contain "
2138 "spaces and other unsafe characters).  If the guest was untrusted and someone "
2139 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2140 "on you by creating filenames with embedded newline characters.  To B<safely> "
2141 "parse the output in another program, use the I<--csv> (Comma-Separated "
2142 "Values) option."
2143 msgstr ""
2144
2145 #. type: textblock
2146 #: ../cat/virt-ls.pod:143
2147 msgid ""
2148 "Note that this output format is completely unrelated to the C<ls -lR> "
2149 "command."
2150 msgstr ""
2151
2152 #. type: verbatim
2153 #: ../cat/virt-ls.pod:146
2154 #, no-wrap
2155 msgid ""
2156 " $ virt-ls -lR -d guest /bin\n"
2157 " d 0555       4096 /bin\n"
2158 " - 0755        123 /bin/alsaunmute\n"
2159 " - 0755      28328 /bin/arch\n"
2160 " l 0777          4 /bin/awk -> gawk\n"
2161 " - 0755      27216 /bin/basename\n"
2162 " - 0755     943360 /bin/bash\n"
2163 " [etc.]\n"
2164 "\n"
2165 msgstr ""
2166
2167 #. type: textblock
2168 #: ../cat/virt-ls.pod:155
2169 msgid "These basic fields are always shown:"
2170 msgstr ""
2171
2172 #. type: =item
2173 #: ../cat/virt-ls.pod:159
2174 msgid "type"
2175 msgstr ""
2176
2177 #. type: textblock
2178 #: ../cat/virt-ls.pod:161
2179 msgid ""
2180 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2181 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2182 "link), C<s> (socket) or C<u> (unknown)."
2183 msgstr ""
2184
2185 #. type: =item
2186 #: ../cat/virt-ls.pod:171
2187 msgid "permissions"
2188 msgstr ""
2189
2190 #. type: textblock
2191 #: ../cat/virt-ls.pod:173
2192 msgid "The Unix permissions, displayed as a 4 digit octal number."
2193 msgstr ""
2194
2195 #. type: =item
2196 #: ../cat/virt-ls.pod:175
2197 msgid "size"
2198 msgstr ""
2199
2200 #. type: textblock
2201 #: ../cat/virt-ls.pod:177
2202 msgid ""
2203 "The size of the file.  This is shown in bytes unless I<-h> or "
2204 "I<--human-readable> option is given, in which case this is shown as a "
2205 "human-readable number."
2206 msgstr ""
2207
2208 #. type: =head2
2209 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4395
2210 msgid "path"
2211 msgstr ""
2212
2213 #. type: textblock
2214 #: ../cat/virt-ls.pod:183
2215 msgid "The full path of the file or directory."
2216 msgstr ""
2217
2218 #. type: =item
2219 #: ../cat/virt-ls.pod:185
2220 msgid "link"
2221 msgstr ""
2222
2223 #. type: textblock
2224 #: ../cat/virt-ls.pod:187
2225 msgid "For symbolic links only, the link target."
2226 msgstr ""
2227
2228 #. type: textblock
2229 #: ../cat/virt-ls.pod:191
2230 msgid ""
2231 "In I<-lR> mode, additional command line options enable the display of more "
2232 "fields."
2233 msgstr ""
2234
2235 #. type: textblock
2236 #: ../cat/virt-ls.pod:194
2237 msgid ""
2238 "With the I<--uids> flag, these additional fields are displayed before the "
2239 "path:"
2240 msgstr ""
2241
2242 #. type: =item
2243 #: ../cat/virt-ls.pod:199
2244 msgid "uid"
2245 msgstr ""
2246
2247 #. type: =item
2248 #: ../cat/virt-ls.pod:201
2249 msgid "gid"
2250 msgstr ""
2251
2252 #. type: textblock
2253 #: ../cat/virt-ls.pod:203
2254 msgid ""
2255 "The UID and GID of the owner of the file (displayed numerically).  Note "
2256 "these only make sense in the context of a Unix-like guest."
2257 msgstr ""
2258
2259 #. type: textblock
2260 #: ../cat/virt-ls.pod:208
2261 msgid "With the I<--times> flag, these additional fields are displayed:"
2262 msgstr ""
2263
2264 #. type: =item
2265 #: ../cat/virt-ls.pod:212
2266 msgid "atime"
2267 msgstr ""
2268
2269 #. type: textblock
2270 #: ../cat/virt-ls.pod:214
2271 msgid "The time of last access."
2272 msgstr ""
2273
2274 #. type: =item
2275 #: ../cat/virt-ls.pod:216
2276 msgid "mtime"
2277 msgstr ""
2278
2279 #. type: textblock
2280 #: ../cat/virt-ls.pod:218
2281 msgid "The time of last modification."
2282 msgstr ""
2283
2284 #. type: =item
2285 #: ../cat/virt-ls.pod:220
2286 msgid "ctime"
2287 msgstr ""
2288
2289 #. type: textblock
2290 #: ../cat/virt-ls.pod:222
2291 msgid "The time of last status change."
2292 msgstr ""
2293
2294 #. type: textblock
2295 #: ../cat/virt-ls.pod:226
2296 msgid ""
2297 "The time fields are displayed as string dates and times, unless one of the "
2298 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2299 msgstr ""
2300
2301 #. type: textblock
2302 #: ../cat/virt-ls.pod:229
2303 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2304 msgstr ""
2305
2306 #. type: =item
2307 #: ../cat/virt-ls.pod:233
2308 msgid "device"
2309 msgstr ""
2310
2311 #. type: textblock
2312 #: ../cat/virt-ls.pod:235
2313 msgid ""
2314 "The device containing the file (displayed as major:minor).  This may not "
2315 "match devices as known to the guest."
2316 msgstr ""
2317
2318 #. type: =item
2319 #: ../cat/virt-ls.pod:238
2320 msgid "inode"
2321 msgstr ""
2322
2323 #. type: textblock
2324 #: ../cat/virt-ls.pod:240
2325 msgid "The inode number."
2326 msgstr ""
2327
2328 #. type: =item
2329 #: ../cat/virt-ls.pod:242
2330 msgid "nlink"
2331 msgstr ""
2332
2333 #. type: textblock
2334 #: ../cat/virt-ls.pod:244
2335 msgid "The number of hard links."
2336 msgstr ""
2337
2338 #. type: =item
2339 #: ../cat/virt-ls.pod:246
2340 msgid "rdev"
2341 msgstr ""
2342
2343 #. type: textblock
2344 #: ../cat/virt-ls.pod:248
2345 msgid "For block and char special files, the device (displayed as major:minor)."
2346 msgstr ""
2347
2348 #. type: =item
2349 #: ../cat/virt-ls.pod:251
2350 msgid "blocks"
2351 msgstr ""
2352
2353 #. type: textblock
2354 #: ../cat/virt-ls.pod:253
2355 msgid "The number of 512 byte blocks allocated to the file."
2356 msgstr ""
2357
2358 #. type: textblock
2359 #: ../cat/virt-ls.pod:257
2360 msgid ""
2361 "With the I<--checksum> flag, the checksum of the file contents is shown "
2362 "(only for regular files).  Computing file checksums can take a considerable "
2363 "amount of time."
2364 msgstr ""
2365
2366 #. type: =item
2367 #: ../cat/virt-ls.pod:280
2368 msgid "B<--checksum>"
2369 msgstr ""
2370
2371 #. type: =item
2372 #: ../cat/virt-ls.pod:282
2373 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2374 msgstr ""
2375
2376 #. type: textblock
2377 #: ../cat/virt-ls.pod:284
2378 msgid ""
2379 "Display checksum over file contents for regular files.  With no argument, "
2380 "this defaults to using I<md5>.  Using an argument, you can select the "
2381 "checksum type to use."
2382 msgstr ""
2383
2384 #. type: textblock
2385 #: ../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
2386 msgid ""
2387 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2388 "LISTING> above."
2389 msgstr ""
2390
2391 #. type: textblock
2392 #: ../cat/virt-ls.pod:316
2393 msgid ""
2394 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2395 "so you cannot see what you are typing.  If you are not worried about Tempest "
2396 "attacks and there is no one else in the room you can specify this flag to "
2397 "see what you are typing."
2398 msgstr ""
2399
2400 #. type: =item
2401 #: ../cat/virt-ls.pod:321
2402 msgid "B<--extra-stats>"
2403 msgstr ""
2404
2405 #. type: textblock
2406 #: ../cat/virt-ls.pod:323
2407 msgid "Display extra stats."
2408 msgstr ""
2409
2410 #. type: verbatim
2411 #: ../cat/virt-ls.pod:339
2412 #, no-wrap
2413 msgid ""
2414 " virt-ls --format=raw -a disk.img /dir\n"
2415 "\n"
2416 msgstr ""
2417
2418 #. type: verbatim
2419 #: ../cat/virt-ls.pod:343
2420 #, no-wrap
2421 msgid ""
2422 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2423 "\n"
2424 msgstr ""
2425
2426 #. type: textblock
2427 #: ../cat/virt-ls.pod:356
2428 msgid "Display file sizes in human-readable format."
2429 msgstr ""
2430
2431 #. type: =item
2432 #: ../cat/virt-ls.pod:370
2433 msgid "B<-R>"
2434 msgstr ""
2435
2436 #. type: =item
2437 #: ../cat/virt-ls.pod:372
2438 msgid "B<--recursive>"
2439 msgstr ""
2440
2441 #. type: textblock
2442 #: ../cat/virt-ls.pod:374
2443 msgid ""
2444 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2445 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2446 "LISTING>."
2447 msgstr ""
2448
2449 #. type: textblock
2450 #: ../cat/virt-ls.pod:378
2451 msgid ""
2452 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See "
2453 "L</LONG LISTING>."
2454 msgstr ""
2455
2456 #. type: textblock
2457 #: ../cat/virt-ls.pod:381
2458 msgid ""
2459 "C<virt-ls -R> produces a recursive list of files starting at the named "
2460 "directory.  See L</RECURSIVE LISTING>."
2461 msgstr ""
2462
2463 #. type: textblock
2464 #: ../cat/virt-ls.pod:384
2465 msgid ""
2466 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2467 "parsed.  See L</RECURSIVE LONG LISTING>."
2468 msgstr ""
2469
2470 #. type: =item
2471 #: ../cat/virt-ls.pod:387
2472 msgid "B<--times>"
2473 msgstr ""
2474
2475 #. type: textblock
2476 #: ../cat/virt-ls.pod:389
2477 msgid "Display time fields."
2478 msgstr ""
2479
2480 #. type: =item
2481 #: ../cat/virt-ls.pod:394
2482 msgid "B<--time-days>"
2483 msgstr ""
2484
2485 #. type: textblock
2486 #: ../cat/virt-ls.pod:396
2487 msgid "Display time fields as days before now (negative if in the future)."
2488 msgstr ""
2489
2490 #. type: textblock
2491 #: ../cat/virt-ls.pod:398
2492 msgid ""
2493 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2494 "of the file is between 0 and 86399 seconds."
2495 msgstr ""
2496
2497 #. type: =item
2498 #: ../cat/virt-ls.pod:404
2499 msgid "B<--time-relative>"
2500 msgstr ""
2501
2502 #. type: textblock
2503 #: ../cat/virt-ls.pod:406
2504 msgid "Display time fields as seconds before now (negative if in the future)."
2505 msgstr ""
2506
2507 #. type: =item
2508 #: ../cat/virt-ls.pod:411
2509 msgid "B<--time-t>"
2510 msgstr ""
2511
2512 #. type: textblock
2513 #: ../cat/virt-ls.pod:413
2514 msgid "Display time fields as seconds since the Unix epoch."
2515 msgstr ""
2516
2517 #. type: =item
2518 #: ../cat/virt-ls.pod:418
2519 msgid "B<--uids>"
2520 msgstr ""
2521
2522 #. type: textblock
2523 #: ../cat/virt-ls.pod:420
2524 msgid "Display UID and GID fields."
2525 msgstr ""
2526
2527 #. type: textblock
2528 #: ../cat/virt-ls.pod:445
2529 msgid "Previous versions of virt-ls allowed you to write either:"
2530 msgstr ""
2531
2532 #. type: verbatim
2533 #: ../cat/virt-ls.pod:447
2534 #, no-wrap
2535 msgid ""
2536 " virt-ls disk.img [disk.img ...] /dir\n"
2537 "\n"
2538 msgstr ""
2539
2540 #. type: verbatim
2541 #: ../cat/virt-ls.pod:451
2542 #, no-wrap
2543 msgid ""
2544 " virt-ls guestname /dir\n"
2545 "\n"
2546 msgstr ""
2547
2548 #. type: textblock
2549 #: ../cat/virt-ls.pod:497
2550 msgid ""
2551 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, "
2552 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
2553 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2554 msgstr ""
2555
2556 #. type: textblock
2557 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374 ../rescue/virt-rescue.pod:302
2558 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2559 msgstr ""
2560
2561 #. type: textblock
2562 #: ../clone/virt-sysprep.pod:5
2563 msgid "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
2564 msgstr ""
2565
2566 #. type: verbatim
2567 #: ../clone/virt-sysprep.pod:9
2568 #, no-wrap
2569 msgid ""
2570 " virt-sysprep [--options] -d domname\n"
2571 "\n"
2572 msgstr ""
2573
2574 #. type: verbatim
2575 #: ../clone/virt-sysprep.pod:11
2576 #, no-wrap
2577 msgid ""
2578 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
2579 "\n"
2580 msgstr ""
2581
2582 #. type: textblock
2583 #: ../clone/virt-sysprep.pod:15
2584 msgid ""
2585 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
2586 "can be made from it.  Steps in this process include removing SSH host keys, "
2587 "removing persistent network MAC configuration, and removing user accounts.  "
2588 "Each step can be enabled or disabled as required."
2589 msgstr ""
2590
2591 #. type: textblock
2592 #: ../clone/virt-sysprep.pod:21
2593 msgid ""
2594 "Virt-sysprep is a simple shell script, allowing easy inspection or "
2595 "customization by the system administrator."
2596 msgstr ""
2597
2598 #. type: textblock
2599 #: ../clone/virt-sysprep.pod:24
2600 msgid ""
2601 "Virt-sysprep modifies the guest or disk image I<in place>.  The guest must "
2602 "be shut down.  If you want to preserve the existing contents of the guest, "
2603 "you I<must copy or clone the disk first>.  See L</COPYING AND CLONING> "
2604 "below."
2605 msgstr ""
2606
2607 #. type: textblock
2608 #: ../clone/virt-sysprep.pod:29
2609 msgid ""
2610 "You do I<not> need to run virt-sysprep as root.  In fact we'd generally "
2611 "recommend that you don't.  The time you might want to run it as root is when "
2612 "you need root in order to access the disk image, but even in this case it "
2613 "would be better to change the permissions on the disk image to be writable "
2614 "as the non-root user running virt-sysprep."
2615 msgstr ""
2616
2617 #. type: textblock
2618 #: ../clone/virt-sysprep.pod:35
2619 msgid ""
2620 "\"Sysprep\" stands for \"system preparation\" tool.  The name comes from the "
2621 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
2622 "machines in preparation for cloning them.  Having said that, virt-sysprep "
2623 "does I<not> currently work on Microsoft Windows guests.  We plan to support "
2624 "Windows sysprepping in a future version, and we already have code to do it."
2625 msgstr ""
2626
2627 #. type: =item
2628 #: ../clone/virt-sysprep.pod:76
2629 msgid "B<--enable=...>"
2630 msgstr ""
2631
2632 #. type: textblock
2633 #: ../clone/virt-sysprep.pod:78
2634 msgid ""
2635 "Choose which sysprep operations to perform.  Give a comma-separated list of "
2636 "operations, for example:"
2637 msgstr ""
2638
2639 #. type: verbatim
2640 #: ../clone/virt-sysprep.pod:81
2641 #, no-wrap
2642 msgid ""
2643 " --enable=ssh-hostkeys,udev-persistent-net\n"
2644 "\n"
2645 msgstr ""
2646
2647 #. type: textblock
2648 #: ../clone/virt-sysprep.pod:83
2649 msgid "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
2650 msgstr ""
2651
2652 #. type: textblock
2653 #: ../clone/virt-sysprep.pod:85
2654 msgid ""
2655 "If the I<--enable> option is not given, then we default to trying all "
2656 "possible sysprep operations.  But some sysprep operations are skipped for "
2657 "some guest types."
2658 msgstr ""
2659
2660 #. type: textblock
2661 #: ../clone/virt-sysprep.pod:89
2662 msgid ""
2663 "Use I<--list-operations> to list operations supported by a particular "
2664 "version of virt-sysprep."
2665 msgstr ""
2666
2667 #. type: textblock
2668 #: ../clone/virt-sysprep.pod:92
2669 msgid "See L</OPERATIONS> below for a list and an explanation of each operation."
2670 msgstr ""
2671
2672 #. type: verbatim
2673 #: ../clone/virt-sysprep.pod:106
2674 #, no-wrap
2675 msgid ""
2676 " virt-sysprep --format=raw -a disk.img\n"
2677 "\n"
2678 msgstr ""
2679
2680 #. type: verbatim
2681 #: ../clone/virt-sysprep.pod:110
2682 #, no-wrap
2683 msgid ""
2684 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
2685 "\n"
2686 msgstr ""
2687
2688 #. type: =item
2689 #: ../clone/virt-sysprep.pod:119
2690 msgid "B<--hostname> newhostname"
2691 msgstr ""
2692
2693 #. type: textblock
2694 #: ../clone/virt-sysprep.pod:121
2695 msgid ""
2696 "Change the hostname.  See the L</hostname> operation below.  If not given, "
2697 "defaults to C<localhost.localdomain>."
2698 msgstr ""
2699
2700 #. type: =item
2701 #: ../clone/virt-sysprep.pod:124
2702 msgid "B<--list-operations>"
2703 msgstr ""
2704
2705 #. type: textblock
2706 #: ../clone/virt-sysprep.pod:126
2707 msgid "List the operations supported by the virt-sysprep program."
2708 msgstr ""
2709
2710 #. type: =item
2711 #: ../clone/virt-sysprep.pod:128
2712 msgid "B<--selinux-relabel>"
2713 msgstr ""
2714
2715 #. type: =item
2716 #: ../clone/virt-sysprep.pod:130
2717 msgid "B<--no-selinux-relabel>"
2718 msgstr ""
2719
2720 #. type: textblock
2721 #: ../clone/virt-sysprep.pod:132
2722 msgid ""
2723 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots.  "
2724 "I<--no-selinux-relabel> disables relabelling."
2725 msgstr ""
2726
2727 #. type: textblock
2728 #: ../clone/virt-sysprep.pod:135
2729 msgid ""
2730 "The default is to try to detect if SELinux relabelling is required.  See "
2731 "L</SELINUX RELABELLING> below for more details."
2732 msgstr ""
2733
2734 #. type: =head1
2735 #: ../clone/virt-sysprep.pod:156
2736 msgid "OPERATIONS"
2737 msgstr ""
2738
2739 #. type: textblock
2740 #: ../clone/virt-sysprep.pod:158
2741 msgid ""
2742 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
2743 "enabled>, although some are skipped depending on the type of guest."
2744 msgstr ""
2745
2746 #. type: textblock
2747 #: ../clone/virt-sysprep.pod:162
2748 msgid ""
2749 "Operations can be individually enabled using the I<--enable> option.  Use a "
2750 "comma-separated list, for example:"
2751 msgstr ""
2752
2753 #. type: verbatim
2754 #: ../clone/virt-sysprep.pod:165
2755 #, no-wrap
2756 msgid ""
2757 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
2758 "\n"
2759 msgstr ""
2760
2761 #. type: textblock
2762 #: ../clone/virt-sysprep.pod:167
2763 msgid ""
2764 "To list the operations supported by the current version of virt-sysprep, use "
2765 "I<--list-operations>."
2766 msgstr ""
2767
2768 #. type: textblock
2769 #: ../clone/virt-sysprep.pod:170
2770 msgid ""
2771 "Future versions of virt-sysprep may add more operations.  If you are using "
2772 "virt-sysprep and want predictable behaviour, specify only the operations "
2773 "that you want to have enabled."
2774 msgstr ""
2775
2776 #. type: =head2
2777 #: ../clone/virt-sysprep.pod:174
2778 msgid "cron-spool"
2779 msgstr ""
2780
2781 #. type: textblock
2782 #: ../clone/virt-sysprep.pod:176
2783 msgid "Remove user at-jobs and cron-jobs."
2784 msgstr ""
2785
2786 #. type: =head2
2787 #: ../clone/virt-sysprep.pod:178
2788 msgid "dhcp-client-state"
2789 msgstr ""
2790
2791 #. type: textblock
2792 #: ../clone/virt-sysprep.pod:180
2793 msgid "Remove DHCP client leases."
2794 msgstr ""
2795
2796 #. type: =head2
2797 #: ../clone/virt-sysprep.pod:182
2798 msgid "dhcp-server-state"
2799 msgstr ""
2800
2801 #. type: textblock
2802 #: ../clone/virt-sysprep.pod:184
2803 msgid "Remove DHCP server leases."
2804 msgstr ""
2805
2806 #. type: =head2
2807 #: ../clone/virt-sysprep.pod:186
2808 msgid "hostname"
2809 msgstr ""
2810
2811 #. type: textblock
2812 #: ../clone/virt-sysprep.pod:188
2813 msgid ""
2814 "Changes the hostname of the guest to the value given in the I<--hostname> "
2815 "parameter."
2816 msgstr ""
2817
2818 #. type: textblock
2819 #: ../clone/virt-sysprep.pod:191
2820 msgid ""
2821 "If the I<--hostname> parameter is not given, then the hostname is changed to "
2822 "C<localhost.localdomain>."
2823 msgstr ""
2824
2825 #. type: =head2
2826 #: ../clone/virt-sysprep.pod:194
2827 msgid "logfiles"
2828 msgstr ""
2829
2830 #. type: textblock
2831 #: ../clone/virt-sysprep.pod:196
2832 msgid "Remove many log files."
2833 msgstr ""
2834
2835 #. type: =head2
2836 #: ../clone/virt-sysprep.pod:198
2837 msgid "mail-spool"
2838 msgstr ""
2839
2840 #. type: textblock
2841 #: ../clone/virt-sysprep.pod:200
2842 msgid "Remove email from the local mail spool directory."
2843 msgstr ""
2844
2845 #. type: =head2
2846 #: ../clone/virt-sysprep.pod:202
2847 msgid "net-hwaddr"
2848 msgstr ""
2849
2850 #. type: textblock
2851 #: ../clone/virt-sysprep.pod:204
2852 msgid ""
2853 "Remove HWADDR (hard-coded MAC address) configuration.  For Fedora and Red "
2854 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
2855 msgstr ""
2856
2857 #. type: =head2
2858 #: ../clone/virt-sysprep.pod:207
2859 msgid "random-seed"
2860 msgstr ""
2861
2862 #. type: textblock
2863 #: ../clone/virt-sysprep.pod:209
2864 msgid ""
2865 "Write some random bytes from the host into the random seed file of the "
2866 "guest."
2867 msgstr ""
2868
2869 #. type: textblock
2870 #: ../clone/virt-sysprep.pod:212
2871 msgid "See L</RANDOM SEED> below."
2872 msgstr ""
2873
2874 #. type: =head2
2875 #: ../clone/virt-sysprep.pod:214
2876 msgid "rhn-systemid"
2877 msgstr ""
2878
2879 #. type: textblock
2880 #: ../clone/virt-sysprep.pod:216
2881 msgid "Remove the RHN system ID."
2882 msgstr ""
2883
2884 #. type: =head2
2885 #: ../clone/virt-sysprep.pod:218
2886 msgid "smolt-uuid"
2887 msgstr ""
2888
2889 #. type: textblock
2890 #: ../clone/virt-sysprep.pod:220
2891 msgid "Remove the Smolt hardware UUID."
2892 msgstr ""
2893
2894 #. type: =head2
2895 #: ../clone/virt-sysprep.pod:222
2896 msgid "ssh-hostkeys"
2897 msgstr ""
2898
2899 #. type: textblock
2900 #: ../clone/virt-sysprep.pod:224
2901 msgid "Remove the SSH host keys in the guest."
2902 msgstr ""
2903
2904 #. type: textblock
2905 #: ../clone/virt-sysprep.pod:226
2906 msgid ""
2907 "The SSH host keys are regenerated (differently) next time the guest is "
2908 "booted."
2909 msgstr ""
2910
2911 #. type: textblock
2912 #: ../clone/virt-sysprep.pod:229
2913 msgid ""
2914 "If, after cloning, the guest gets the same IP address, ssh will give you a "
2915 "stark warning about the host key changing:"
2916 msgstr ""
2917
2918 #. type: verbatim
2919 #: ../clone/virt-sysprep.pod:232
2920 #, no-wrap
2921 msgid ""
2922 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
2923 " @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n"
2924 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
2925 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
2926 "\n"
2927 msgstr ""
2928
2929 #. type: =head2
2930 #: ../clone/virt-sysprep.pod:237
2931 msgid "udev-persistent-net"
2932 msgstr ""
2933
2934 #. type: textblock
2935 #: ../clone/virt-sysprep.pod:239
2936 msgid ""
2937 "Remove udev persistent net rules which map the guest's existing MAC address "
2938 "to a fixed ethernet device (eg. eth0)."
2939 msgstr ""
2940
2941 #. type: textblock
2942 #: ../clone/virt-sysprep.pod:242
2943 msgid ""
2944 "After a guest is cloned, the MAC address usually changes.  Since the old MAC "
2945 "address occupies the old name (eg. eth0), this means the fresh MAC address "
2946 "is assigned to a new name (eg. eth1) and this is usually undesirable.  "
2947 "Erasing the udev persistent net rules avoids this."
2948 msgstr ""
2949
2950 #. type: =head2
2951 #: ../clone/virt-sysprep.pod:247
2952 msgid "utmp"
2953 msgstr ""
2954
2955 #. type: textblock
2956 #: ../clone/virt-sysprep.pod:249
2957 msgid "Remove the utmp file."
2958 msgstr ""
2959
2960 #. type: textblock
2961 #: ../clone/virt-sysprep.pod:251
2962 msgid ""
2963 "This records who is currently logged in on a machine.  In modern Linux "
2964 "distros it is stored in a ramdisk and hence not part of the virtual "
2965 "machine's disk, but it was stored on disk in older distros."
2966 msgstr ""
2967
2968 #. type: =head2
2969 #: ../clone/virt-sysprep.pod:255
2970 msgid "yum-uuid"
2971 msgstr ""
2972
2973 #. type: textblock
2974 #: ../clone/virt-sysprep.pod:257
2975 msgid "Remove the yum UUID."
2976 msgstr ""
2977
2978 #. type: textblock
2979 #: ../clone/virt-sysprep.pod:259
2980 msgid ""
2981 "Yum creates a fresh UUID the next time it runs when it notices that the "
2982 "original UUID has been erased."
2983 msgstr ""
2984
2985 #. type: =head1
2986 #: ../clone/virt-sysprep.pod:262
2987 msgid "COPYING AND CLONING"
2988 msgstr ""
2989
2990 #. type: textblock
2991 #: ../clone/virt-sysprep.pod:264
2992 msgid ""
2993 "Virt-sysprep can be used as part of a process of cloning guests, or to "
2994 "prepare a template from which guests can be cloned.  There are many "
2995 "different ways to achieve this using the virt tools, and this section is "
2996 "just an introduction."
2997 msgstr ""
2998
2999 #. type: textblock
3000 #: ../clone/virt-sysprep.pod:269
3001 msgid "A virtual machine (when switched off) consists of two parts:"
3002 msgstr ""
3003
3004 #. type: =item
3005 #: ../clone/virt-sysprep.pod:273
3006 msgid "I<configuration>"
3007 msgstr ""
3008
3009 #. type: textblock
3010 #: ../clone/virt-sysprep.pod:275
3011 msgid ""
3012 "The configuration or description of the guest.  eg. The libvirt XML (see "
3013 "C<virsh dumpxml>), the running configuration of the guest, or another "
3014 "external format like OVF."
3015 msgstr ""
3016
3017 #. type: textblock
3018 #: ../clone/virt-sysprep.pod:279
3019 msgid "Some configuration items that might need to be changed:"
3020 msgstr ""
3021
3022 #. type: textblock
3023 #: ../clone/virt-sysprep.pod:285
3024 msgid "name"
3025 msgstr ""
3026
3027 #. type: textblock
3028 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3029 msgid "UUID"
3030 msgstr ""
3031
3032 #. type: textblock
3033 #: ../clone/virt-sysprep.pod:293
3034 msgid "path to block device(s)"
3035 msgstr ""
3036
3037 #. type: textblock
3038 #: ../clone/virt-sysprep.pod:297
3039 msgid "network card MAC address"
3040 msgstr ""
3041
3042 #. type: =item
3043 #: ../clone/virt-sysprep.pod:301
3044 msgid "I<block device(s)>"
3045 msgstr ""
3046
3047 #. type: textblock
3048 #: ../clone/virt-sysprep.pod:303
3049 msgid ""
3050 "One or more hard disk images, themselves containing files, directories, "
3051 "applications, kernels, configuration, etc."
3052 msgstr ""
3053
3054 #. type: textblock
3055 #: ../clone/virt-sysprep.pod:306
3056 msgid "Some things inside the block devices that might need to be changed:"
3057 msgstr ""
3058
3059 #. type: textblock
3060 #: ../clone/virt-sysprep.pod:312
3061 msgid "hostname and other net configuration"
3062 msgstr ""
3063
3064 #. type: textblock
3065 #: ../clone/virt-sysprep.pod:320
3066 msgid "SSH host keys"
3067 msgstr ""
3068
3069 #. type: textblock
3070 #: ../clone/virt-sysprep.pod:324
3071 msgid "Windows unique security ID (SID)"
3072 msgstr ""
3073
3074 #. type: textblock
3075 #: ../clone/virt-sysprep.pod:328
3076 msgid "Puppet registration"
3077 msgstr ""
3078
3079 #. type: =head2
3080 #: ../clone/virt-sysprep.pod:334
3081 msgid "COPYING THE BLOCK DEVICE"
3082 msgstr ""
3083
3084 #. type: textblock
3085 #: ../clone/virt-sysprep.pod:336
3086 msgid ""
3087 "Starting with an original guest, you probably wish to copy the guest block "
3088 "device and its configuration to make a template.  Then once you are happy "
3089 "with the template, you will want to make many clones from it."
3090 msgstr ""
3091
3092 #. type: verbatim
3093 #: ../clone/virt-sysprep.pod:341
3094 #, no-wrap
3095 msgid ""
3096 "                        virt-sysprep\n"
3097 "                             |\n"
3098 "                             v\n"
3099 " original guest --------> template ---------->\n"
3100 "                                      \\------> cloned\n"
3101 "                                       \\-----> guests\n"
3102 "                                        \\---->\n"
3103 "\n"
3104 msgstr ""
3105
3106 #. type: textblock
3107 #: ../clone/virt-sysprep.pod:349
3108 msgid ""
3109 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3110 "L<dd(1)>."
3111 msgstr ""
3112
3113 #. type: verbatim
3114 #: ../clone/virt-sysprep.pod:352
3115 #, no-wrap
3116 msgid ""
3117 "                   dd                 dd\n"
3118 " original guest --------> template ---------->\n"
3119 "                                      \\------> cloned\n"
3120 "                                       \\-----> guests\n"
3121 "                                        \\---->\n"
3122 "\n"
3123 msgstr ""
3124
3125 #. type: textblock
3126 #: ../clone/virt-sysprep.pod:358
3127 msgid "There are some smarter (and faster) ways too:"
3128 msgstr ""
3129
3130 #. type: verbatim
3131 #: ../clone/virt-sysprep.pod:364
3132 #, no-wrap
3133 msgid ""
3134 "                          snapshot\n"
3135 "                template ---------->\n"
3136 "                            \\------> cloned\n"
3137 "                             \\-----> guests\n"
3138 "                              \\---->\n"
3139 "\n"
3140 msgstr ""
3141
3142 #. type: textblock
3143 #: ../clone/virt-sysprep.pod:370
3144 msgid ""
3145 "Use the block device as a backing file and create a snapshot on top for each "
3146 "guest.  The advantage is that you don't need to copy the block device (very "
3147 "fast) and only changes are stored (less storage required)."
3148 msgstr ""
3149
3150 #. type: textblock
3151 #: ../clone/virt-sysprep.pod:375
3152 msgid ""
3153 "Note that writing to the backing file once you have created guests on top of "
3154 "it is not possible: you will corrupt the guests."
3155 msgstr ""
3156
3157 #. type: textblock
3158 #: ../clone/virt-sysprep.pod:378
3159 msgid ""
3160 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 "
3161 "-o backing_file> option), L<lvcreate(8)> (I<--snapshot> option).  Some "
3162 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3163 "also create cheap snapshots from files or LUNs."
3164 msgstr ""
3165
3166 #. type: textblock
3167 #: ../clone/virt-sysprep.pod:386
3168 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3169 msgstr ""
3170
3171 #. type: textblock
3172 #: ../clone/virt-sysprep.pod:390
3173 msgid "Prepare your template using L<virt-sparsify(1)>.  See below."
3174 msgstr ""
3175
3176 #. type: =head2
3177 #: ../clone/virt-sysprep.pod:394
3178 msgid "VIRT-CLONE"
3179 msgstr ""
3180
3181 #. type: textblock
3182 #: ../clone/virt-sysprep.pod:396
3183 msgid ""
3184 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3185 "and/or modify the external libvirt configuration of a guest.  It will reset "
3186 "the name, UUID and MAC address of the guest in the libvirt XML."
3187 msgstr ""
3188
3189 #. type: textblock
3190 #: ../clone/virt-sysprep.pod:401
3191 msgid ""
3192 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3193 "image.  This was the original motivation to write virt-sysprep."
3194 msgstr ""
3195
3196 #. type: =head2
3197 #: ../clone/virt-sysprep.pod:404
3198 msgid "SPARSIFY"
3199 msgstr ""
3200
3201 #. type: verbatim
3202 #: ../clone/virt-sysprep.pod:406
3203 #, no-wrap
3204 msgid ""
3205 "              virt-sparsify\n"
3206 " original guest --------> template\n"
3207 "\n"
3208 msgstr ""
3209
3210 #. type: textblock
3211 #: ../clone/virt-sysprep.pod:409
3212 msgid ""
3213 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3214 "it easier to compress and/or faster to copy."
3215 msgstr ""
3216
3217 #. type: textblock
3218 #: ../clone/virt-sysprep.pod:412
3219 msgid ""
3220 "Notice that since virt-sparsify also copies the image, you can use it to "
3221 "make the initial copy (instead of C<dd>)."
3222 msgstr ""
3223
3224 #. type: =head2
3225 #: ../clone/virt-sysprep.pod:415
3226 msgid "RESIZE"
3227 msgstr ""
3228
3229 #. type: verbatim
3230 #: ../clone/virt-sysprep.pod:417
3231 #, no-wrap
3232 msgid ""
3233 "                         virt-resize\n"
3234 "                template ---------->\n"
3235 "                            \\------> cloned\n"
3236 "                             \\-----> guests\n"
3237 "                              \\---->\n"
3238 "\n"
3239 msgstr ""
3240
3241 #. type: textblock
3242 #: ../clone/virt-sysprep.pod:423
3243 msgid ""
3244 "If you want to give people cloned guests, but let them pick the size of the "
3245 "guest themselves (eg. depending on how much they are prepared to pay for "
3246 "disk space), then instead of copying the template, you can run "
3247 "L<virt-resize(1)>.  Virt-resize performs a copy and resize, and thus is "
3248 "ideal for cloning guests from a template."
3249 msgstr ""
3250
3251 #. type: =head1
3252 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1164
3253 msgid "SECURITY"
3254 msgstr ""
3255
3256 #. type: textblock
3257 #: ../clone/virt-sysprep.pod:431
3258 msgid ""
3259 "Although virt-sysprep removes some sensitive information from the guest, it "
3260 "does not pretend to remove all of it.  You should examine the L</OPERATIONS> "
3261 "above, and the implementation of the operations in the shell script.  You "
3262 "should also examine the guest afterwards."
3263 msgstr ""
3264
3265 #. type: textblock
3266 #: ../clone/virt-sysprep.pod:436
3267 msgid ""
3268 "Sensitive files are simply removed.  The data they contained may still exist "
3269 "on the disk, easily recovered with a hex editor or undelete tool.  Use "
3270 "L<virt-sparsify(1)> as one way to remove this content.  See also the "
3271 "L<scrub(1)> command to get rid of deleted content in directory entries and "
3272 "inodes."
3273 msgstr ""
3274
3275 #. type: =head2
3276 #: ../clone/virt-sysprep.pod:442
3277 msgid "RANDOM SEED"
3278 msgstr ""
3279
3280 #. type: textblock
3281 #: ../clone/virt-sysprep.pod:444
3282 msgid "I<(This section applies to Linux guests only)>"
3283 msgstr ""
3284
3285 #. type: textblock
3286 #: ../clone/virt-sysprep.pod:446
3287 msgid ""
3288 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3289 "from the host into the guest's random seed file."
3290 msgstr ""
3291
3292 #. type: textblock
3293 #: ../clone/virt-sysprep.pod:449
3294 msgid ""
3295 "If this is just done once and the guest is cloned from the same template, "
3296 "then each guest will start with the same entropy, and things like SSH host "
3297 "keys and TCP sequence numbers may be predictable."
3298 msgstr ""
3299
3300 #. type: textblock
3301 #: ../clone/virt-sysprep.pod:453
3302 msgid ""
3303 "Therefore you should arrange to add more randomness I<after> cloning from a "
3304 "template too, which can be done by just enabling the C<random-seed> "
3305 "operation:"
3306 msgstr ""
3307
3308 #. type: verbatim
3309 #: ../clone/virt-sysprep.pod:457
3310 #, no-wrap
3311 msgid ""
3312 " cp template.img newguest.img\n"
3313 " virt-sysprep --enable=random-seed -a newguest.img\n"
3314 "\n"
3315 msgstr ""
3316
3317 #. type: =head2
3318 #: ../clone/virt-sysprep.pod:460
3319 msgid "SELINUX RELABELLING"
3320 msgstr ""
3321
3322 #. type: textblock
3323 #: ../clone/virt-sysprep.pod:462
3324 msgid "I<(This section applies to Linux guests using SELinux only)>"
3325 msgstr ""
3326
3327 #. type: textblock
3328 #: ../clone/virt-sysprep.pod:464
3329 msgid ""
3330 "If any new files are created by virt-sysprep, then virt-sysprep touches "
3331 "C</.autorelabel> so that these will be correctly labelled by SELinux the "
3332 "next time the guest is booted.  This process interrupts boot and can take "
3333 "some time."
3334 msgstr ""
3335
3336 #. type: textblock
3337 #: ../clone/virt-sysprep.pod:469
3338 msgid ""
3339 "You can force relabelling for all guests by supplying the "
3340 "I<--selinux-relabel> option."
3341 msgstr ""
3342
3343 #. type: textblock
3344 #: ../clone/virt-sysprep.pod:472
3345 msgid ""
3346 "You can disable relabelling entirely by supplying the "
3347 "I<--no-selinux-relabel> option."
3348 msgstr ""
3349
3350 #. type: textblock
3351 #: ../clone/virt-sysprep.pod:484
3352 msgid "This program returns 0 on success, or 1 if there was an error."
3353 msgstr ""
3354
3355 #. type: textblock
3356 #: ../clone/virt-sysprep.pod:488
3357 msgid ""
3358 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, "
3359 "L<virt-resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, "
3360 "L<qemu-img(1)>, L<scrub(1)>, L<http://libguestfs.org/>, "
3361 "L<http://libvirt.org/>."
3362 msgstr ""
3363
3364 #. type: textblock
3365 #: ../df/virt-df.pod:5
3366 msgid "virt-df - Display free space on virtual filesystems"
3367 msgstr ""
3368
3369 #. type: verbatim
3370 #: ../df/virt-df.pod:9
3371 #, no-wrap
3372 msgid ""
3373 " virt-df [--options]\n"
3374 "\n"
3375 msgstr ""
3376
3377 #. type: verbatim
3378 #: ../df/virt-df.pod:11
3379 #, no-wrap
3380 msgid ""
3381 " virt-df [--options] -d domname\n"
3382 "\n"
3383 msgstr ""
3384
3385 #. type: verbatim
3386 #: ../df/virt-df.pod:13
3387 #, no-wrap
3388 msgid ""
3389 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3390 "\n"
3391 msgstr ""
3392
3393 #. type: verbatim
3394 #: ../df/virt-df.pod:17
3395 #, no-wrap
3396 msgid ""
3397 " virt-df [--options] domname\n"
3398 "\n"
3399 msgstr ""
3400
3401 #. type: verbatim
3402 #: ../df/virt-df.pod:19
3403 #, no-wrap
3404 msgid ""
3405 " virt-df [--options] disk.img [disk.img ...]\n"
3406 "\n"
3407 msgstr ""
3408
3409 #. type: textblock
3410 #: ../df/virt-df.pod:23
3411 msgid ""
3412 "C<virt-df> is a command line tool to display free space on virtual machine "
3413 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
3414 "allocated to a virtual machine, but can look inside disk images to see how "
3415 "much space is really being used."
3416 msgstr ""
3417
3418 #. type: textblock
3419 #: ../df/virt-df.pod:28
3420 msgid ""
3421 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3422 "to get a list of all active and inactive guests, and performs a C<df>-type "
3423 "operation on each one in turn, printing out the results."
3424 msgstr ""
3425
3426 #. type: textblock
3427 #: ../df/virt-df.pod:32
3428 msgid ""
3429 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a "
3430 "C<df>-type operation on either the single named libvirt domain, or on the "
3431 "disk image(s) listed on the command line (which must all belong to a single "
3432 "VM).  In this mode (with arguments), C<virt-df> will I<only work for a "
3433 "single guest>.  If you want to run on multiple guests, then you have to "
3434 "invoke C<virt-df> multiple times."
3435 msgstr ""
3436
3437 #. type: textblock
3438 #: ../df/virt-df.pod:39
3439 msgid ""
3440 "Use the I<--csv> option to get a format which can be easily parsed by other "
3441 "programs.  Other options are similar to the standard L<df(1)> command."
3442 msgstr ""
3443
3444 #. type: textblock
3445 #: ../df/virt-df.pod:45
3446 msgid ""
3447 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
3448 "output human-readable:"
3449 msgstr ""
3450
3451 #. type: verbatim
3452 #: ../df/virt-df.pod:48
3453 #, no-wrap
3454 msgid ""
3455 " # virt-df -d F14x64 -h\n"
3456 " Filesystem                       Size     Used  Available  Use%\n"
3457 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
3458 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
3459 "\n"
3460 msgstr ""
3461
3462 #. type: textblock
3463 #: ../df/virt-df.pod:53
3464 msgid "Show disk usage for a disk image file called C<test.img>:"
3465 msgstr ""
3466
3467 #. type: verbatim
3468 #: ../df/virt-df.pod:55
3469 #, no-wrap
3470 msgid ""
3471 " $ virt-df -a test1.img\n"
3472 " Filesystem                  1K-blocks     Used  Available  Use%\n"
3473 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
3474 "\n"
3475 msgstr ""
3476
3477 #. type: verbatim
3478 #: ../df/virt-df.pod:112
3479 #, no-wrap
3480 msgid ""
3481 " virt-df --format=raw -a disk.img\n"
3482 "\n"
3483 msgstr ""
3484
3485 #. type: verbatim
3486 #: ../df/virt-df.pod:116
3487 #, no-wrap
3488 msgid ""
3489 " virt-df --format=raw -a disk.img --format -a another.img\n"
3490 "\n"
3491 msgstr ""
3492
3493 #. type: textblock
3494 #: ../df/virt-df.pod:129
3495 msgid "Print sizes in human-readable format."
3496 msgstr ""
3497
3498 #. type: textblock
3499 #: ../df/virt-df.pod:131
3500 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
3501 msgstr ""
3502
3503 #. type: =item
3504 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
3505 msgid "B<-i>"
3506 msgstr ""
3507
3508 #. type: =item
3509 #: ../df/virt-df.pod:135
3510 msgid "B<--inodes>"
3511 msgstr ""
3512
3513 #. type: textblock
3514 #: ../df/virt-df.pod:137
3515 msgid "Print inodes instead of blocks."
3516 msgstr ""
3517
3518 #. type: =item
3519 #: ../df/virt-df.pod:139
3520 msgid "B<--one-per-guest>"
3521 msgstr ""
3522
3523 #. type: textblock
3524 #: ../df/virt-df.pod:141
3525 msgid ""
3526 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
3527 "disks from several guests to a single libguestfs appliance."
3528 msgstr ""
3529
3530 #. type: textblock
3531 #: ../df/virt-df.pod:144
3532 msgid "You might use this option in the following circumstances:"
3533 msgstr ""
3534
3535 #. type: textblock
3536 #: ../df/virt-df.pod:150
3537 msgid ""
3538 "If you think an untrusted guest might actively try to exploit the libguestfs "
3539 "appliance kernel, then this prevents one guest from interfering with the "
3540 "stats printed for another guest."
3541 msgstr ""
3542
3543 #. type: textblock
3544 #: ../df/virt-df.pod:156
3545 msgid ""
3546 "If the kernel has a bug which stops it from accessing a filesystem in one "
3547 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
3548 "and report stats for further guests."
3549 msgstr ""
3550
3551 #. type: textblock
3552 #: ../df/virt-df.pod:165
3553 msgid ""
3554 "Print UUIDs instead of names.  This is useful for following a guest even "
3555 "when the guest is migrated or renamed, or when two guests happen to have the "
3556 "same name."
3557 msgstr ""
3558
3559 #. type: textblock
3560 #: ../df/virt-df.pod:169
3561 msgid ""
3562 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
3563 "images, we still print the disk image name even when this option is "
3564 "specified."
3565 msgstr ""
3566
3567 #. type: textblock
3568 #: ../df/virt-df.pod:229
3569 msgid ""
3570 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
3571 "L<http://libguestfs.org/>."
3572 msgstr ""
3573
3574 #. type: textblock
3575 #: ../edit/virt-edit.pod:5
3576 msgid "virt-edit - Edit a file in a virtual machine"
3577 msgstr ""
3578
3579 #. type: verbatim
3580 #: ../edit/virt-edit.pod:9
3581 #, no-wrap
3582 msgid ""
3583 " virt-edit [--options] -d domname file [file ...]\n"
3584 "\n"
3585 msgstr ""
3586
3587 #. type: verbatim
3588 #: ../edit/virt-edit.pod:11
3589 #, no-wrap
3590 msgid ""
3591 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
3592 "\n"
3593 msgstr ""
3594
3595 #. type: verbatim
3596 #: ../edit/virt-edit.pod:13
3597 #, no-wrap
3598 msgid ""
3599 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
3600 "\n"
3601 msgstr ""
3602
3603 #. type: verbatim
3604 #: ../edit/virt-edit.pod:17
3605 #, no-wrap
3606 msgid ""
3607 " virt-edit domname file\n"
3608 "\n"
3609 msgstr ""
3610
3611 #. type: verbatim
3612 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
3613 #, no-wrap
3614 msgid ""
3615 " virt-edit disk.img [disk.img ...] file\n"
3616 "\n"
3617 msgstr ""
3618
3619 #. type: =head1
3620 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23 ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15 ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19 ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
3621 msgid "WARNING"
3622 msgstr ""
3623
3624 #. type: textblock
3625 #: ../edit/virt-edit.pod:23
3626 msgid ""
3627 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
3628 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
3629 "doing this, but doesn't catch all cases."
3630 msgstr ""
3631
3632 #. type: textblock
3633 #: ../edit/virt-edit.pod:29
3634 msgid ""
3635 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
3636 "exists in the named virtual machine (or disk image)."
3637 msgstr ""
3638
3639 #. type: textblock
3640 #: ../edit/virt-edit.pod:32
3641 msgid ""
3642 "Multiple filenames can be given, in which case they are each edited in "
3643 "turn.  Each filename must be a full path, starting at the root directory "
3644 "(starting with '/')."
3645 msgstr ""
3646
3647 #. type: textblock
3648 #: ../edit/virt-edit.pod:36
3649 msgid "If you want to just view a file, use L<virt-cat(1)>."
3650 msgstr ""
3651
3652 #. type: textblock
3653 #: ../edit/virt-edit.pod:38
3654 msgid ""
3655 "For more complex cases you should look at the L<guestfish(1)> tool (see "
3656 "L</USING GUESTFISH> below)."
3657 msgstr ""
3658
3659 #. type: textblock
3660 #: ../edit/virt-edit.pod:41
3661 msgid ""
3662 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
3663 "that and much more."
3664 msgstr ""
3665
3666 #. type: textblock
3667 #: ../edit/virt-edit.pod:46
3668 msgid "Edit the named files interactively:"
3669 msgstr ""
3670
3671 #. type: verbatim
3672 #: ../edit/virt-edit.pod:48
3673 #, no-wrap
3674 msgid ""
3675 " virt-edit -d mydomain /boot/grub/grub.conf\n"
3676 "\n"
3677 msgstr ""
3678
3679 #. type: verbatim
3680 #: ../edit/virt-edit.pod:50
3681 #, no-wrap
3682 msgid ""
3683 " virt-edit -d mydomain /etc/passwd\n"
3684 "\n"
3685 msgstr ""
3686
3687 #. type: textblock
3688 #: ../edit/virt-edit.pod:52
3689 msgid "For Windows guests, some Windows paths are understood:"
3690 msgstr ""
3691
3692 #. type: verbatim
3693 #: ../edit/virt-edit.pod:54
3694 #, no-wrap
3695 msgid ""
3696 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
3697 "\n"
3698 msgstr ""
3699
3700 #. type: textblock
3701 #: ../edit/virt-edit.pod:56
3702 msgid ""
3703 "If Perl is installed, you can also edit files non-interactively (see "
3704 "L</NON-INTERACTIVE EDITING> below).  To change the init default level to 5:"
3705 msgstr ""
3706
3707 #. type: verbatim
3708 #: ../edit/virt-edit.pod:60
3709 #, no-wrap
3710 msgid ""
3711 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
3712 "\n"
3713 msgstr ""
3714
3715 #. type: =item
3716 #: ../edit/virt-edit.pod:81
3717 msgid "B<-b> extension"
3718 msgstr ""
3719
3720 #. type: =item
3721 #: ../edit/virt-edit.pod:83
3722 msgid "B<--backup> extension"
3723 msgstr ""
3724
3725 #. type: textblock
3726 #: ../edit/virt-edit.pod:85
3727 msgid ""
3728 "Create a backup of the original file I<in the guest disk image>.  The backup "
3729 "has the original filename with C<extension> added."
3730 msgstr ""
3731
3732 #. type: textblock
3733 #: ../edit/virt-edit.pod:88
3734 msgid ""
3735 "Usually the first character of C<extension> would be a dot C<.> so you would "
3736 "write:"
3737 msgstr ""
3738
3739 #. type: verbatim
3740 #: ../edit/virt-edit.pod:91
3741 #, no-wrap
3742 msgid ""
3743 " virt-edit -b .orig [etc]\n"
3744 "\n"
3745 msgstr ""
3746
3747 #. type: textblock
3748 #: ../edit/virt-edit.pod:93
3749 msgid "By default, no backup file is made."
3750 msgstr ""
3751
3752 #. type: =item
3753 #: ../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
3754 msgid "B<-c URI>"
3755 msgstr ""
3756
3757 #. type: =item
3758 #: ../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
3759 msgid "B<--connect URI>"
3760 msgstr ""
3761
3762 #. type: textblock
3763 #: ../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
3764 msgid ""
3765 "If you specify guest block devices directly, then libvirt is not used at "
3766 "all."
3767 msgstr ""
3768
3769 #. type: textblock
3770 #: ../edit/virt-edit.pod:114
3771 msgid ""
3772 "When prompting for keys and passphrases, virt-edit normally turns echoing "
3773 "off so you cannot see what you are typing.  If you are not worried about "
3774 "Tempest attacks and there is no one else in the room you can specify this "
3775 "flag to see what you are typing."
3776 msgstr ""
3777
3778 #. type: =item
3779 #: ../edit/virt-edit.pod:119
3780 msgid "B<-e> EXPR"
3781 msgstr ""
3782
3783 #. type: =item
3784 #: ../edit/virt-edit.pod:121
3785 msgid "B<--expr> EXPR"
3786 msgstr ""
3787
3788 #. type: textblock
3789 #: ../edit/virt-edit.pod:123
3790 msgid ""
3791 "Instead of launching the external editor, non-interactively apply the Perl "
3792 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
3793 "EDITING> below."
3794 msgstr ""
3795
3796 #. type: textblock
3797 #: ../edit/virt-edit.pod:127
3798 msgid ""
3799 "Be careful to properly quote the expression to prevent it from being altered "
3800 "by the shell."
3801 msgstr ""
3802
3803 #. type: textblock
3804 #: ../edit/virt-edit.pod:130
3805 msgid "Note that this option is only available when Perl 5 is installed."
3806 msgstr ""
3807
3808 #. type: =item
3809 #: ../edit/virt-edit.pod:132
3810 msgid "B<--format> raw|qcow2|..."
3811 msgstr ""
3812
3813 #. type: verbatim
3814 #: ../edit/virt-edit.pod:143
3815 #, no-wrap
3816 msgid ""
3817 " virt-edit --format=raw -a disk.img file\n"
3818 "\n"
3819 msgstr ""
3820
3821 #. type: verbatim
3822 #: ../edit/virt-edit.pod:147
3823 #, no-wrap
3824 msgid ""
3825 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
3826 "\n"
3827 msgstr ""
3828
3829 #. type: textblock
3830 #: ../edit/virt-edit.pod:181
3831 msgid "Previous versions of virt-edit allowed you to write either:"
3832 msgstr ""
3833
3834 #. type: verbatim
3835 #: ../edit/virt-edit.pod:187
3836 #, no-wrap
3837 msgid ""
3838 " virt-edit guestname file\n"
3839 "\n"
3840 msgstr ""
3841
3842 #. type: =head1
3843 #: ../edit/virt-edit.pod:195
3844 msgid "NON-INTERACTIVE EDITING"
3845 msgstr ""
3846
3847 #. type: textblock
3848 #: ../edit/virt-edit.pod:197
3849 msgid ""
3850 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
3851 "administrator can interactively edit the file."
3852 msgstr ""
3853
3854 #. type: textblock
3855 #: ../edit/virt-edit.pod:200
3856 msgid ""
3857 "There are two ways also to use C<virt-edit> from scripts in order to make "
3858 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
3859 "like this, it's less error-prone to write scripts directly using the "
3860 "libguestfs API and Augeas for configuration file editing.)"
3861 msgstr ""
3862
3863 #. type: textblock
3864 #: ../edit/virt-edit.pod:206
3865 msgid ""
3866 "The first method is to temporarily set C<$EDITOR> to any script or program "
3867 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
3868 "update C<tmpfile> in place however it likes."
3869 msgstr ""
3870
3871 #. type: textblock
3872 #: ../edit/virt-edit.pod:210
3873 msgid ""
3874 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
3875 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
3876 "instances of C<foo> with C<bar> in a file:"
3877 msgstr ""
3878
3879 #. type: verbatim
3880 #: ../edit/virt-edit.pod:214
3881 #, no-wrap
3882 msgid ""
3883 " virt-edit -d domname filename -e 's/foo/bar/'\n"
3884 "\n"
3885 msgstr ""
3886
3887 #. type: textblock
3888 #: ../edit/virt-edit.pod:216
3889 msgid ""
3890 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
3891 "For example to delete root's password you could do:"
3892 msgstr ""
3893
3894 #. type: verbatim
3895 #: ../edit/virt-edit.pod:219
3896 #, no-wrap
3897 msgid ""
3898 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3899 "\n"
3900 msgstr ""
3901
3902 #. type: textblock
3903 #: ../edit/virt-edit.pod:221
3904 msgid ""
3905 "What really happens is that the snippet is evaluated as a Perl expression "
3906 "for each line of the file.  The line, including the final C<\\n>, is passed "
3907 "in C<$_> and the expression should update C<$_> or leave it unchanged."
3908 msgstr ""
3909
3910 #. type: textblock
3911 #: ../edit/virt-edit.pod:226
3912 msgid ""
3913 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
3914 "C<apache> user account from the password file you can do:"
3915 msgstr ""
3916
3917 #. type: verbatim
3918 #: ../edit/virt-edit.pod:229
3919 #, no-wrap
3920 msgid ""
3921 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
3922 "\n"
3923 msgstr ""
3924
3925 #. type: textblock
3926 #: ../edit/virt-edit.pod:231
3927 msgid ""
3928 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
3929 "the end of the file is rather difficult this way since there is no concept "
3930 "of \"last line of the file\" - your expression just doesn't get called "
3931 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
3932 "want to do this."
3933 msgstr ""
3934
3935 #. type: textblock
3936 #: ../edit/virt-edit.pod:237
3937 msgid ""
3938 "The variable C<$lineno> contains the current line number.  As is "
3939 "traditional, the first line in the file is number C<1>."
3940 msgstr ""
3941
3942 #. type: textblock
3943 #: ../edit/virt-edit.pod:240
3944 msgid ""
3945 "The return value from the expression is ignored, but the expression may call "
3946 "C<die> in order to abort the whole program, leaving the original file "
3947 "untouched."
3948 msgstr ""
3949
3950 #. type: textblock
3951 #: ../edit/virt-edit.pod:244
3952 msgid ""
3953 "Remember when matching the end of a line that C<$_> may contain the final "
3954 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
3955 "newline then neither of these.  Thus to match or substitute some text at the "
3956 "end of a line, use this regular expression:"
3957 msgstr ""
3958
3959 #. type: verbatim
3960 #: ../edit/virt-edit.pod:249
3961 #, no-wrap
3962 msgid ""
3963 " /some text(\\r?\\n)?$/\n"
3964 "\n"
3965 msgstr ""
3966
3967 #. type: textblock
3968 #: ../edit/virt-edit.pod:251
3969 msgid ""
3970 "Alternately, use the perl C<chomp> function, being careful not to chomp "
3971 "C<$_> itself (since that would remove all newlines from the file):"
3972 msgstr ""
3973
3974 #. type: verbatim
3975 #: ../edit/virt-edit.pod:255
3976 #, no-wrap
3977 msgid ""
3978 " my $m = $_; chomp $m; $m =~ /some text$/\n"
3979 "\n"
3980 msgstr ""
3981
3982 #. type: textblock
3983 #: ../edit/virt-edit.pod:259
3984 msgid ""
3985 "C<virt-edit> has a limited ability to understand Windows drive letters and "
3986 "paths (eg. C<E:\\foo\\bar.txt>)."
3987 msgstr ""
3988
3989 #. type: textblock
3990 #: ../edit/virt-edit.pod:278
3991 msgid ""
3992 "The path is resolved case insensitively to locate the file that should be "
3993 "edited."
3994 msgstr ""
3995
3996 #. type: textblock
3997 #: ../edit/virt-edit.pod:299
3998 msgid ""
3999 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4000 "C<virt-edit> doesn't work."
4001 msgstr ""
4002
4003 #. type: textblock
4004 #: ../edit/virt-edit.pod:302
4005 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4006 msgstr ""
4007
4008 #. type: verbatim
4009 #: ../edit/virt-edit.pod:304
4010 #, no-wrap
4011 msgid ""
4012 " guestfish --rw -i -d domname edit /file\n"
4013 "\n"
4014 msgstr ""
4015
4016 #. type: textblock
4017 #: ../edit/virt-edit.pod:306
4018 msgid ""
4019 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4020 "path to the file."
4021 msgstr ""
4022
4023 #. type: textblock
4024 #: ../edit/virt-edit.pod:309
4025 msgid ""
4026 "The command above uses libguestfs's guest inspection feature and so does not "
4027 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4028 "disk images that don't contain guests.  To edit a file on a disk image "
4029 "directly, use:"
4030 msgstr ""
4031
4032 #. type: verbatim
4033 #: ../edit/virt-edit.pod:314
4034 #, no-wrap
4035 msgid ""
4036 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4037 "\n"
4038 msgstr ""
4039
4040 #. type: textblock
4041 #: ../edit/virt-edit.pod:316
4042 msgid ""
4043 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4044 "the disk image to edit, and C</file> is the full path to the file."
4045 msgstr ""
4046
4047 #. type: textblock
4048 #: ../edit/virt-edit.pod:320
4049 msgid ""
4050 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
4051 "C<write> or C<upload> instead:"
4052 msgstr ""
4053
4054 #. type: verbatim
4055 #: ../edit/virt-edit.pod:323
4056 #, no-wrap
4057 msgid ""
4058 " guestfish --rw -i -d domname touch /newfile\n"
4059 "\n"
4060 msgstr ""
4061
4062 #. type: verbatim
4063 #: ../edit/virt-edit.pod:325
4064 #, no-wrap
4065 msgid ""
4066 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4067 "\n"
4068 msgstr ""
4069
4070 #. type: verbatim
4071 #: ../edit/virt-edit.pod:327
4072 #, no-wrap
4073 msgid ""
4074 " guestfish --rw -i -d domname upload localfile /newfile\n"
4075 "\n"
4076 msgstr ""
4077
4078 #. type: =head1
4079 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119 ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232 ../src/guestfs.pod:3209 ../test-tool/libguestfs-test-tool.pod:95
4080 msgid "ENVIRONMENT VARIABLES"
4081 msgstr ""
4082
4083 #. type: =item
4084 #: ../edit/virt-edit.pod:333
4085 msgid "C<EDITOR>"
4086 msgstr ""
4087
4088 #. type: textblock
4089 #: ../edit/virt-edit.pod:335
4090 msgid ""
4091 "If set, this string is used as the editor.  It may contain arguments, "
4092 "eg. C<\"emacs -nw\">"
4093 msgstr ""
4094
4095 #. type: textblock
4096 #: ../edit/virt-edit.pod:338
4097 msgid "If not set, C<vi> is used."
4098 msgstr ""
4099
4100 #. type: textblock
4101 #: ../edit/virt-edit.pod:356
4102 msgid ""
4103 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
4104 "L<virt-tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
4105 "L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4106 msgstr ""
4107
4108 #. type: textblock
4109 #: ../erlang/examples/guestfs-erlang.pod:5
4110 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4111 msgstr ""
4112
4113 #. type: verbatim
4114 #: ../erlang/examples/guestfs-erlang.pod:9
4115 #, no-wrap
4116 msgid ""
4117 " {ok, G} = guestfs:create(),\n"
4118 " ok = guestfs:add_drive_opts(G, Disk,\n"
4119 "                             [{format, \"raw\"}, {readonly, true}]),\n"
4120 " ok = guestfs:launch(G),\n"
4121 " [Device] = guestfs:list_devices(G),\n"
4122 " ok = guestfs:close(G).\n"
4123 "\n"
4124 msgstr ""
4125
4126 #. type: textblock
4127 #: ../erlang/examples/guestfs-erlang.pod:18
4128 msgid ""
4129 "This manual page documents how to call libguestfs from the Erlang "
4130 "programming language.  This page just documents the differences from the C "
4131 "API and gives some examples.  If you are not familiar with using libguestfs, "
4132 "you also need to read L<guestfs(3)>."
4133 msgstr ""
4134
4135 #. type: =head2
4136 #: ../erlang/examples/guestfs-erlang.pod:23
4137 msgid "OPENING AND CLOSING THE HANDLE"
4138 msgstr ""
4139
4140 #. type: textblock
4141 #: ../erlang/examples/guestfs-erlang.pod:25
4142 msgid ""
4143 "The Erlang bindings are implemented using an external program called "
4144 "C<erl-guestfs>.  This program must be on the current PATH, or else you "
4145 "should specify the full path to the program:"
4146 msgstr ""
4147
4148 #. type: verbatim
4149 #: ../erlang/examples/guestfs-erlang.pod:29
4150 #, no-wrap
4151 msgid ""
4152 " {ok, G} = guestfs:create().\n"
4153 "\n"
4154 msgstr ""
4155
4156 #. type: verbatim
4157 #: ../erlang/examples/guestfs-erlang.pod:31
4158 #, no-wrap
4159 msgid ""
4160 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4161 "\n"
4162 msgstr ""
4163
4164 #. type: textblock
4165 #: ../erlang/examples/guestfs-erlang.pod:33
4166 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4167 msgstr ""
4168
4169 #. type: textblock
4170 #: ../erlang/examples/guestfs-erlang.pod:36
4171 msgid "To close the handle:"
4172 msgstr ""
4173
4174 #. type: verbatim
4175 #: ../erlang/examples/guestfs-erlang.pod:38
4176 #, no-wrap
4177 msgid ""
4178 " ok = guestfs:close(G).\n"
4179 "\n"
4180 msgstr ""
4181
4182 #. type: =head2
4183 #: ../erlang/examples/guestfs-erlang.pod:40
4184 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4185 msgstr ""
4186
4187 #. type: textblock
4188 #: ../erlang/examples/guestfs-erlang.pod:42
4189 msgid ""
4190 "For functions that take optional arguments, the first arguments are the "
4191 "non-optional ones.  The last argument is a list of tuples supplying the "
4192 "remaining optional arguments."
4193 msgstr ""
4194
4195 #. type: verbatim
4196 #: ../erlang/examples/guestfs-erlang.pod:46
4197 #, no-wrap
4198 msgid ""
4199 " ok = guestfs:add_drive_opts(G, Disk,\n"
4200 "                             [{format, \"raw\"}, {readonly, true}]).\n"
4201 "\n"
4202 msgstr ""
4203
4204 #. type: textblock
4205 #: ../erlang/examples/guestfs-erlang.pod:49
4206 msgid "If the last argument would be an empty list, you can also omit it:"
4207 msgstr ""
4208
4209 #. type: verbatim
4210 #: ../erlang/examples/guestfs-erlang.pod:51
4211 #, no-wrap
4212 msgid ""
4213 " ok = guestfs:add_drive_opts(G, Disk).\n"
4214 "\n"
4215 msgstr ""
4216
4217 #. type: =head2
4218 #: ../erlang/examples/guestfs-erlang.pod:53
4219 msgid "RETURN VALUES AND ERRORS"
4220 msgstr ""
4221
4222 #. type: textblock
4223 #: ../erlang/examples/guestfs-erlang.pod:55
4224 msgid ""
4225 "On success, most functions return a C<Result> term (which could be a list, "
4226 "string, tuple etc.).  If there is nothing for the function to return, then "
4227 "the atom C<ok> is returned."
4228 msgstr ""
4229
4230 #. type: textblock
4231 #: ../erlang/examples/guestfs-erlang.pod:59
4232 msgid "On error, you would see one of the following tuples:"
4233 msgstr ""
4234
4235 #. type: =item
4236 #: ../erlang/examples/guestfs-erlang.pod:63
4237 msgid "C<{error, Msg, Errno}>"
4238 msgstr ""
4239
4240 #. type: textblock
4241 #: ../erlang/examples/guestfs-erlang.pod:65
4242 msgid "This indicates an ordinary error from the function."
4243 msgstr ""
4244
4245 #. type: textblock
4246 #: ../erlang/examples/guestfs-erlang.pod:67
4247 msgid ""
4248 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4249 "(integer)."
4250 msgstr ""
4251
4252 #. type: textblock
4253 #: ../erlang/examples/guestfs-erlang.pod:70
4254 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
4255 msgstr ""
4256
4257 #. type: =item
4258 #: ../erlang/examples/guestfs-erlang.pod:72
4259 msgid "C<{unknown, Function}>"
4260 msgstr ""
4261
4262 #. type: textblock
4263 #: ../erlang/examples/guestfs-erlang.pod:74
4264 msgid ""
4265 "This indicates that the function you called is not known.  Generally this "
4266 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4267 "which you should not do."
4268 msgstr ""
4269
4270 #. type: textblock
4271 #: ../erlang/examples/guestfs-erlang.pod:78
4272 msgid "C<Function> is the name of the unknown function."
4273 msgstr ""
4274
4275 #. type: =item
4276 #: ../erlang/examples/guestfs-erlang.pod:80
4277 msgid "C<{unknownarg, Arg}>"
4278 msgstr ""
4279
4280 #. type: textblock
4281 #: ../erlang/examples/guestfs-erlang.pod:82
4282 msgid ""
4283 "This indicates that you called a function with optional arguments, with an "
4284 "unknown argument name."
4285 msgstr ""
4286
4287 #. type: textblock
4288 #: ../erlang/examples/guestfs-erlang.pod:85
4289 msgid "C<Arg> is the name of the unknown argument."
4290 msgstr ""
4291
4292 #. type: =head1
4293 #: ../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
4294 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4295 msgstr ""
4296
4297 #. type: textblock
4298 #: ../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
4299 msgid "@EXAMPLE1@"
4300 msgstr ""
4301
4302 #. type: =head1
4303 #: ../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
4304 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4305 msgstr ""
4306
4307 #. type: textblock
4308 #: ../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
4309 msgid "@EXAMPLE2@"
4310 msgstr ""
4311
4312 #. type: textblock
4313 #: ../erlang/examples/guestfs-erlang.pod:99
4314 msgid ""
4315 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
4316 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
4317 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  "
4318 "L<http://libguestfs.org/>."
4319 msgstr ""
4320
4321 #. type: =head1
4322 #: ../erlang/examples/guestfs-erlang.pod:110 ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397 ../fish/guestfish.pod:1296 ../fish/virt-copy-in.pod:60 ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58 ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:328 ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58 ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52 ../python/examples/guestfs-python.pod:54 ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3348 ../test-tool/libguestfs-test-tool.pod:106
4323 msgid "AUTHORS"
4324 msgstr ""
4325
4326 #. type: textblock
4327 #: ../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
4328 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4329 msgstr ""
4330
4331 #. type: textblock
4332 #: ../erlang/examples/guestfs-erlang.pod:116 ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4333 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4334 msgstr ""
4335
4336 #. type: textblock
4337 #: ../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
4338 msgid ""
4339 "The examples in this manual page may be freely copied, modified and "
4340 "distributed without any restrictions."
4341 msgstr ""
4342
4343 #. type: textblock
4344 #: ../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
4345 msgid ""
4346 "This library is free software; you can redistribute it and/or modify it "
4347 "under the terms of the GNU Lesser General Public License as published by the "
4348 "Free Software Foundation; either version 2 of the License, or (at your "
4349 "option) any later version."
4350 msgstr ""
4351
4352 #. type: textblock
4353 #: ../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
4354 msgid ""
4355 "This library is distributed in the hope that it will be useful, but WITHOUT "
4356 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4357 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4358 "for more details."
4359 msgstr ""
4360
4361 #. type: textblock
4362 #: ../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
4363 msgid ""
4364 "You should have received a copy of the GNU Lesser General Public License "
4365 "along with this library; if not, write to the Free Software Foundation, "
4366 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4367 msgstr ""
4368
4369 #. type: textblock
4370 #: ../examples/guestfs-examples.pod:5
4371 msgid "guestfs-examples - Examples of using libguestfs from C"
4372 msgstr ""
4373
4374 #. type: verbatim
4375 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4376 #, no-wrap
4377 msgid ""
4378 " #include <guestfs.h>\n"
4379 " \n"
4380 msgstr ""
4381
4382 #. type: verbatim
4383 #: ../examples/guestfs-examples.pod:11
4384 #, no-wrap
4385 msgid ""
4386 " guestfs_h *g = guestfs_create ();\n"
4387 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4388 " guestfs_launch (g);\n"
4389 "\n"
4390 msgstr ""
4391
4392 #. type: verbatim
4393 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4394 #, no-wrap
4395 msgid ""
4396 " cc prog.c -o prog -lguestfs\n"
4397 "or:\n"
4398 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4399 "\n"
4400 msgstr ""
4401
4402 #. type: textblock
4403 #: ../examples/guestfs-examples.pod:21
4404 msgid ""
4405 "This manual page contains examples of calling libguestfs from the C "
4406 "programming language.  If you are not familiar with using libguestfs, you "
4407 "also need to read L<guestfs(3)>."
4408 msgstr ""
4409
4410 #. type: textblock
4411 #: ../examples/guestfs-examples.pod:35
4412 msgid ""
4413 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, "
4414 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
4415 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4416 msgstr ""
4417
4418 #. type: textblock
4419 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97 ../python/examples/guestfs-python.pod:60 ../ruby/examples/guestfs-ruby.pod:54
4420 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
4421 msgstr ""
4422
4423 #. type: =end
4424 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
4425 msgid "comment"
4426 msgstr ""
4427
4428 #. type: textblock
4429 #: ../examples/guestfs-recipes.pod:5
4430 msgid ""
4431 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
4432 "here.  The only way which works for both sorts of output is to just write "
4433 "the URL directly.  Do NOT use L<...> for URLs."
4434 msgstr ""
4435
4436 #. type: textblock
4437 #: ../examples/guestfs-recipes.pod:9
4438 msgid ""
4439 "We break with tradition here and don't use ALL CAPS for the section "
4440 "headings, as this makes them much easier to read."
4441 msgstr ""
4442
4443 #. type: textblock
4444 #: ../examples/guestfs-recipes.pod:16
4445 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
4446 msgstr ""
4447
4448 #. type: textblock
4449 #: ../examples/guestfs-recipes.pod:20
4450 msgid ""
4451 "This page contains recipes for and links to things you can do using "
4452 "libguestfs, L<guestfish(1)> and the virt tools."
4453 msgstr ""
4454
4455 #. type: =head1
4456 #: ../examples/guestfs-recipes.pod:23
4457 msgid "Audit a virtual machine for setuid files"
4458 msgstr ""
4459
4460 #. type: textblock
4461 #: ../examples/guestfs-recipes.pod:25
4462 msgid ""
4463 "The link below contains a small program which can be used to audit a Linux "
4464 "virtual machine to see what setuid and setgid files it contains."
4465 msgstr ""
4466
4467 #. type: textblock
4468 #: ../examples/guestfs-recipes.pod:28
4469 msgid "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-files/#content"
4470 msgstr ""
4471
4472 #. type: =head1
4473 #: ../examples/guestfs-recipes.pod:30
4474 msgid "Change the background image in a Windows XP VM"
4475 msgstr ""
4476
4477 #. type: textblock
4478 #: ../examples/guestfs-recipes.pod:32
4479 msgid ""
4480 "The links below explain how to use L<guestfish(1)> to change the background "
4481 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
4482 "be substantially different for each version of Windows."
4483 msgstr ""
4484
4485 #. type: textblock
4486 #: ../examples/guestfs-recipes.pod:37
4487 msgid ""
4488 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html "
4489 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
4490 msgstr ""
4491
4492 #. type: =head1
4493 #: ../examples/guestfs-recipes.pod:40
4494 msgid "Cloning a virtual machine (Linux)"
4495 msgstr ""
4496
4497 #. type: textblock
4498 #: ../examples/guestfs-recipes.pod:42
4499 msgid ""
4500 "The guestfish technique described in the link below works well for most "
4501 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
4502 "slightly."
4503 msgstr ""
4504
4505 #. type: textblock
4506 #: ../examples/guestfs-recipes.pod:46
4507 msgid "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-vm/#content"
4508 msgstr ""
4509
4510 #. type: textblock
4511 #: ../examples/guestfs-recipes.pod:48
4512 msgid ""
4513 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
4514 "discussion."
4515 msgstr ""
4516
4517 #. type: textblock
4518 #: ../examples/guestfs-recipes.pod:51
4519 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
4520 msgstr ""
4521
4522 #. type: =head1
4523 #: ../examples/guestfs-recipes.pod:53
4524 msgid "Cloning a virtual machine (Windows)"
4525 msgstr ""
4526
4527 #. type: textblock
4528 #: ../examples/guestfs-recipes.pod:55
4529 msgid ""
4530 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
4531 "straightforward.  Currently there is code in the Aeolus Oz project which "
4532 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
4533 "we may add sysprepping ability."
4534 msgstr ""
4535
4536 #. type: textblock
4537 #: ../examples/guestfs-recipes.pod:60
4538 msgid ""
4539 "https://github.com/clalancette/oz "
4540 "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
4541 msgstr ""
4542
4543 #. type: =head1
4544 #: ../examples/guestfs-recipes.pod:63
4545 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
4546 msgstr ""
4547
4548 #. type: textblock
4549 #: ../examples/guestfs-recipes.pod:65
4550 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
4551 msgstr ""
4552
4553 #. type: verbatim
4554 #: ../examples/guestfs-recipes.pod:67
4555 #, no-wrap
4556 msgid ""
4557 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
4558 "\n"
4559 msgstr ""
4560
4561 #. type: textblock
4562 #: ../examples/guestfs-recipes.pod:69
4563 msgid "To export just a subdirectory, eg. C</files>, do:"
4564 msgstr ""
4565
4566 #. type: verbatim
4567 #: ../examples/guestfs-recipes.pod:71
4568 #, no-wrap
4569 msgid ""
4570 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
4571 "\n"
4572 msgstr ""
4573
4574 #. type: =head1
4575 #: ../examples/guestfs-recipes.pod:73
4576 msgid "Create empty disk images"
4577 msgstr ""
4578
4579 #. type: textblock
4580 #: ../examples/guestfs-recipes.pod:75
4581 msgid ""
4582 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
4583 "The useful guide below explains the options available."
4584 msgstr ""
4585
4586 #. type: textblock
4587 #: ../examples/guestfs-recipes.pod:78
4588 msgid "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/#content"
4589 msgstr ""
4590
4591 #. type: =head1
4592 #: ../examples/guestfs-recipes.pod:80
4593 msgid "Dump raw filesystem content from inside a disk image or VM"
4594 msgstr ""
4595
4596 #. type: textblock
4597 #: ../examples/guestfs-recipes.pod:82
4598 msgid ""
4599 "You can use the L<guestfish(1)> C<download> command to extract the raw "
4600 "filesystem content from any filesystem in a disk image or a VM (even one "
4601 "which is encrypted or buried inside an LV):"
4602 msgstr ""
4603
4604 #. type: verbatim
4605 #: ../examples/guestfs-recipes.pod:86
4606 #, no-wrap
4607 msgid ""
4608 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
4609 "\n"
4610 msgstr ""
4611
4612 #. type: verbatim
4613 #: ../examples/guestfs-recipes.pod:88
4614 #, no-wrap
4615 msgid ""
4616 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
4617 "\n"
4618 msgstr ""
4619
4620 #. type: textblock
4621 #: ../examples/guestfs-recipes.pod:90
4622 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
4623 msgstr ""
4624
4625 #. type: =head1
4626 #: ../examples/guestfs-recipes.pod:92
4627 msgid "Edit grub configuration in a VM"
4628 msgstr ""
4629
4630 #. type: textblock
4631 #: ../examples/guestfs-recipes.pod:94
4632 msgid "You can use this to:"
4633 msgstr ""
4634
4635 #. type: textblock
4636 #: ../examples/guestfs-recipes.pod:100
4637 msgid "Fix a virtual machine that does not boot."
4638 msgstr ""
4639
4640 #. type: textblock
4641 #: ../examples/guestfs-recipes.pod:104
4642 msgid "Change which kernel is used to boot the VM."
4643 msgstr ""
4644
4645 #. type: textblock
4646 #: ../examples/guestfs-recipes.pod:108
4647 msgid "Change kernel command line options."
4648 msgstr ""
4649
4650 #. type: textblock
4651 #: ../examples/guestfs-recipes.pod:112
4652 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
4653 msgstr ""
4654
4655 #. type: verbatim
4656 #: ../examples/guestfs-recipes.pod:114
4657 #, no-wrap
4658 msgid ""
4659 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
4660 "\n"
4661 msgstr ""
4662
4663 #. type: textblock
4664 #: ../examples/guestfs-recipes.pod:116
4665 msgid ""
4666 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
4667 "this:"
4668 msgstr ""
4669
4670 #. type: verbatim
4671 #: ../examples/guestfs-recipes.pod:119
4672 #, no-wrap
4673 msgid ""
4674 " virt-rescue -d BrokenGuest\n"
4675 "\n"
4676 msgstr ""
4677
4678 #. type: =head1
4679 #: ../examples/guestfs-recipes.pod:121
4680 msgid "Export any directory from a VM"
4681 msgstr ""
4682
4683 #. type: textblock
4684 #: ../examples/guestfs-recipes.pod:123
4685 msgid "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
4686 msgstr ""
4687
4688 #. type: verbatim
4689 #: ../examples/guestfs-recipes.pod:126
4690 #, no-wrap
4691 msgid ""
4692 " virt-copy-out -d Guest /home .\n"
4693 "\n"
4694 msgstr ""
4695
4696 #. type: textblock
4697 #: ../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:2326 ../src/guestfs-actions.pod:2750 ../src/guestfs-actions.pod:3309 ../src/guestfs.pod:1685 ../tools/virt-win-reg.pl:717
4698 msgid "Notes:"
4699 msgstr ""
4700
4701 #. type: textblock
4702 #: ../examples/guestfs-recipes.pod:134
4703 msgid ""
4704 "The final dot of the command is not a printing error.  It means we want to "
4705 "copy out to the current directory."
4706 msgstr ""
4707
4708 #. type: textblock
4709 #: ../examples/guestfs-recipes.pod:139
4710 msgid "This creates a directory called C<home> under the current directory."
4711 msgstr ""
4712
4713 #. type: textblock
4714 #: ../examples/guestfs-recipes.pod:143
4715 msgid ""
4716 "If the guest is a Windows guest then you can use drive letters and "
4717 "backslashes, but you must prefix the path with C<win:> and quote it to "
4718 "protect it from the shell, like this:"
4719 msgstr ""
4720
4721 #. type: verbatim
4722 #: ../examples/guestfs-recipes.pod:147
4723 #, no-wrap
4724 msgid ""
4725 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
4726 "\n"
4727 msgstr ""
4728
4729 #. type: textblock
4730 #: ../examples/guestfs-recipes.pod:149
4731 msgid "To get the output as a compressed tarball, do:"
4732 msgstr ""
4733
4734 #. type: verbatim
4735 #: ../examples/guestfs-recipes.pod:151
4736 #, no-wrap
4737 msgid ""
4738 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
4739 "\n"
4740 msgstr ""
4741
4742 #. type: textblock
4743 #: ../examples/guestfs-recipes.pod:153
4744 msgid ""
4745 "Although it sounds tempting, this is usually not a reliable way to get a "
4746 "backup from a running guest.  See the entry in the FAQ: "
4747 "http://libguestfs.org/FAQ.html#backup"
4748 msgstr ""
4749
4750 #. type: =head1
4751 #: ../examples/guestfs-recipes.pod:157
4752 msgid "Find out which user is using the most space"
4753 msgstr ""
4754
4755 #. type: textblock
4756 #: ../examples/guestfs-recipes.pod:159
4757 msgid ""
4758 "This simple script examines a Linux guest to find out which user is using "
4759 "the most space in their home directory:"
4760 msgstr ""
4761
4762 #. type: verbatim
4763 #: ../examples/guestfs-recipes.pod:162
4764 #, no-wrap
4765 msgid ""
4766 " #!/bin/sh -\n"
4767 " \n"
4768 msgstr ""
4769
4770 #. type: verbatim
4771 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
4772 #, no-wrap
4773 msgid ""
4774 " set -e\n"
4775 " \n"
4776 msgstr ""
4777
4778 #. type: verbatim
4779 #: ../examples/guestfs-recipes.pod:166
4780 #, no-wrap
4781 msgid ""
4782 " vm=\"$1\"\n"
4783 " dir=/home\n"
4784 " \n"
4785 msgstr ""
4786
4787 #. type: verbatim
4788 #: ../examples/guestfs-recipes.pod:169
4789 #, no-wrap
4790 msgid ""
4791 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
4792 " \n"
4793 msgstr ""
4794
4795 #. type: verbatim
4796 #: ../examples/guestfs-recipes.pod:171
4797 #, no-wrap
4798 msgid ""
4799 " for d in $(guestfish --remote ls \"$dir\"); do\n"
4800 "     echo -n \"$dir/$d\"\n"
4801 "     echo -ne '\\t'\n"
4802 "     guestfish --remote du \"$dir/$d\";\n"
4803 " done | sort -nr -k 2\n"
4804 " \n"
4805 msgstr ""
4806
4807 #. type: verbatim
4808 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
4809 #, no-wrap
4810 msgid ""
4811 " guestfish --remote exit\n"
4812 "\n"
4813 msgstr ""
4814
4815 #. type: =head1
4816 #: ../examples/guestfs-recipes.pod:179
4817 msgid "Get DHCP address from a VM"
4818 msgstr ""
4819
4820 #. type: textblock
4821 #: ../examples/guestfs-recipes.pod:181
4822 msgid ""
4823 "The link below explains the many different possible techniques for getting "
4824 "the last assigned DHCP address of a virtual machine."
4825 msgstr ""
4826
4827 #. type: textblock
4828 #: ../examples/guestfs-recipes.pod:184
4829 msgid "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-a-virtual-machine-disk-image/#content"
4830 msgstr ""
4831
4832 #. type: textblock
4833 #: ../examples/guestfs-recipes.pod:186
4834 msgid ""
4835 "In the libguestfs source examples directory you will find the latest version "
4836 "of the C<virt-dhcp-address.c> program."
4837 msgstr ""
4838
4839 #. type: =head1
4840 #: ../examples/guestfs-recipes.pod:189
4841 msgid "Get the operating system product name string"
4842 msgstr ""
4843
4844 #. type: textblock
4845 #: ../examples/guestfs-recipes.pod:191
4846 msgid "Save the following script into a file called C<product-name.sh>:"
4847 msgstr ""
4848
4849 #. type: verbatim
4850 #: ../examples/guestfs-recipes.pod:193
4851 #, no-wrap
4852 msgid ""
4853 " #!/bin/sh -\n"
4854 " set -e\n"
4855 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4856 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4857 " guestfish --remote inspect-get-product-name \"$root\"\n"
4858 " guestfish --remote exit\n"
4859 "\n"
4860 msgstr ""
4861
4862 #. type: textblock
4863 #: ../examples/guestfs-recipes.pod:200
4864 msgid "Make the script executable and run it on a named guest:"
4865 msgstr ""
4866
4867 #. type: verbatim
4868 #: ../examples/guestfs-recipes.pod:202
4869 #, no-wrap
4870 msgid ""
4871 " # product-name.sh RHEL60x64\n"
4872 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
4873 "\n"
4874 msgstr ""
4875
4876 #. type: textblock
4877 #: ../examples/guestfs-recipes.pod:205
4878 msgid ""
4879 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
4880 "C<xpath> command line tool or from your favourite programming language:"
4881 msgstr ""
4882
4883 #. type: verbatim
4884 #: ../examples/guestfs-recipes.pod:209
4885 #, no-wrap
4886 msgid ""
4887 " # virt-inspector RHEL60x64 > xml\n"
4888 " # xpath '//product_name' < xml\n"
4889 " Found 1 nodes:\n"
4890 " -- NODE --\n"
4891 " <product_name>Red Hat Enterprise Linux Server release 6.0 "
4892 "(Santiago)</product_name>\n"
4893 "\n"
4894 msgstr ""
4895
4896 #. type: =head1
4897 #: ../examples/guestfs-recipes.pod:215
4898 msgid "Get the default boot kernel for a Linux VM"
4899 msgstr ""
4900
4901 #. type: textblock
4902 #: ../examples/guestfs-recipes.pod:217
4903 msgid ""
4904 "The link below contains a program to print the default boot kernel for a "
4905 "Linux VM."
4906 msgstr ""
4907
4908 #. type: textblock
4909 #: ../examples/guestfs-recipes.pod:220
4910 msgid "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-kernel-for-a-vm/#content"
4911 msgstr ""
4912
4913 #. type: textblock
4914 #: ../examples/guestfs-recipes.pod:222
4915 msgid ""
4916 "It uses Augeas, and the technique is generally applicable for many different "
4917 "tasks, such as:"
4918 msgstr ""
4919
4920 #. type: textblock
4921 #: ../examples/guestfs-recipes.pod:229
4922 msgid "listing the user accounts in the guest"
4923 msgstr ""
4924
4925 #. type: textblock
4926 #: ../examples/guestfs-recipes.pod:233
4927 msgid "what repositories is it configured to use"
4928 msgstr ""
4929
4930 #. type: textblock
4931 #: ../examples/guestfs-recipes.pod:237
4932 msgid "what NTP servers does it connect to"
4933 msgstr ""
4934
4935 #. type: textblock
4936 #: ../examples/guestfs-recipes.pod:241
4937 msgid "what were the boot messages last time it booted"
4938 msgstr ""
4939
4940 #. type: textblock
4941 #: ../examples/guestfs-recipes.pod:245
4942 msgid "listing who was logged in recently"
4943 msgstr ""
4944
4945 #. type: textblock
4946 #: ../examples/guestfs-recipes.pod:249
4947 msgid "http://augeas.net/"
4948 msgstr ""
4949
4950 #. type: =head1
4951 #: ../examples/guestfs-recipes.pod:251
4952 msgid "Install RPMs in a guest"
4953 msgstr ""
4954
4955 #. type: textblock
4956 #: ../examples/guestfs-recipes.pod:253
4957 msgid ""
4958 "The link below contains a method to install RPMs in a guest.  In fact the "
4959 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
4960 "installs them next time the guest is booted.  You could use this technique "
4961 "to install vital security updates in an offline guest."
4962 msgstr ""
4963
4964 #. type: textblock
4965 #: ../examples/guestfs-recipes.pod:259
4966 msgid "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
4967 msgstr ""
4968
4969 #. type: =head1
4970 #: ../examples/guestfs-recipes.pod:261
4971 msgid "List applications installed in a VM"
4972 msgstr ""
4973
4974 #. type: textblock
4975 #: ../examples/guestfs-recipes.pod:263
4976 msgid "Save the following to a file C<list-apps.sh>:"
4977 msgstr ""
4978
4979 #. type: verbatim
4980 #: ../examples/guestfs-recipes.pod:265
4981 #, no-wrap
4982 msgid ""
4983 " #!/bin/sh -\n"
4984 " set -e\n"
4985 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4986 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4987 " guestfish --remote inspect-list-applications \"$root\"\n"
4988 " guestfish --remote exit\n"
4989 "\n"
4990 msgstr ""
4991
4992 #. type: textblock
4993 #: ../examples/guestfs-recipes.pod:272
4994 msgid ""
4995 "Make the file executable and then you can run it on any named virtual "
4996 "machine:"
4997 msgstr ""
4998
4999 #. type: verbatim
5000 #: ../examples/guestfs-recipes.pod:275
5001 #, no-wrap
5002 msgid ""
5003 " # list-apps.sh WinGuest\n"
5004 " [0] = {\n"
5005 "   app_name: Mozilla Firefox (3.6.12)\n"
5006 "   app_display_name: Mozilla Firefox (3.6.12)\n"
5007 "   app_epoch: 0\n"
5008 "   app_version: 3.6.12 (en-GB)\n"
5009 "   app_release:\n"
5010 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5011 "   app_trans_path:\n"
5012 "   app_publisher: Mozilla\n"
5013 "   app_url: http://www.mozilla.com/en-GB/\n"
5014 "   app_source_package:\n"
5015 "   app_summary:\n"
5016 "   app_description: Mozilla Firefox\n"
5017 " }\n"
5018 " [1] = {\n"
5019 "   app_name: VLC media player\n"
5020 "   app_display_name: VLC media player 1.1.5\n"
5021 "   app_epoch: 0\n"
5022 "   app_version: 1.1.5\n"
5023 "   app_release:\n"
5024 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5025 "   app_trans_path:\n"
5026 "   app_publisher: VideoLAN\n"
5027 "   app_url: http://www.videolan.org/\n"
5028 "   app_source_package:\n"
5029 "   app_summary:\n"
5030 "   app_description:\n"
5031 " }\n"
5032 "\n"
5033 msgstr ""
5034
5035 #. type: textblock
5036 #: ../examples/guestfs-recipes.pod:305
5037 msgid ""
5038 "If you want to run the script on disk images (instead of libvirt virtual "
5039 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also "
5040 "L<virt-inspector(1)>."
5041 msgstr ""
5042
5043 #. type: =head1
5044 #: ../examples/guestfs-recipes.pod:309
5045 msgid "List files and directories in a VM"
5046 msgstr ""
5047
5048 #. type: textblock
5049 #: ../examples/guestfs-recipes.pod:311
5050 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5051 msgstr ""
5052
5053 #. type: verbatim
5054 #: ../examples/guestfs-recipes.pod:313
5055 #, no-wrap
5056 msgid ""
5057 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5058 "\n"
5059 msgstr ""
5060
5061 #. type: =head1
5062 #: ../examples/guestfs-recipes.pod:315
5063 msgid "List services in a Windows VM"
5064 msgstr ""
5065
5066 #. type: textblock
5067 #: ../examples/guestfs-recipes.pod:317
5068 msgid ""
5069 "The link below contains a script that can be used to list out the services "
5070 "from a Windows VM, and whether those services run at boot time or are loaded "
5071 "on demand."
5072 msgstr ""
5073
5074 #. type: textblock
5075 #: ../examples/guestfs-recipes.pod:321
5076 msgid "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/#content"
5077 msgstr ""
5078
5079 #. type: =head1
5080 #: ../examples/guestfs-recipes.pod:323
5081 msgid "Make a disk image sparse"
5082 msgstr ""
5083
5084 #. type: textblock
5085 #: ../examples/guestfs-recipes.pod:325
5086 msgid ""
5087 "The link below contains some guides for making a disk image sparse (or "
5088 "reintroducing sparseness)."
5089 msgstr ""
5090
5091 #. type: textblock
5092 #: ../examples/guestfs-recipes.pod:328
5093 msgid "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5094 msgstr ""
5095
5096 #. type: =head1
5097 #: ../examples/guestfs-recipes.pod:330
5098 msgid "Monitor disk usage over time"
5099 msgstr ""
5100
5101 #. type: textblock
5102 #: ../examples/guestfs-recipes.pod:332
5103 msgid ""
5104 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
5105 "The link below contains a guide."
5106 msgstr ""
5107
5108 #. type: textblock
5109 #: ../examples/guestfs-recipes.pod:335
5110 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5111 msgstr ""
5112
5113 #. type: =head1
5114 #: ../examples/guestfs-recipes.pod:337
5115 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5116 msgstr ""
5117
5118 #. type: textblock
5119 #: ../examples/guestfs-recipes.pod:339
5120 msgid ""
5121 "L<guestfish(1)> plus the tools described in the link below can be used to "
5122 "read out the Windows Event Log from any virtual machine running Windows "
5123 "Vista or a later version."
5124 msgstr ""
5125
5126 #. type: textblock
5127 #: ../examples/guestfs-recipes.pod:343
5128 msgid "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-guestfish/#content"
5129 msgstr ""
5130
5131 #. type: =head1
5132 #: ../examples/guestfs-recipes.pod:345
5133 msgid "Remove root password (Linux)"
5134 msgstr ""
5135
5136 #. type: textblock
5137 #: ../examples/guestfs-recipes.pod:347
5138 msgid ""
5139 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5140 "files.  One use is to remove the root password from a Linux guest:"
5141 msgstr ""
5142
5143 #. type: verbatim
5144 #: ../examples/guestfs-recipes.pod:350
5145 #, no-wrap
5146 msgid ""
5147 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5148 "\n"
5149 msgstr ""
5150
5151 #. type: =head1
5152 #: ../examples/guestfs-recipes.pod:352
5153 msgid "Remove Administrator password (Windows)"
5154 msgstr ""
5155
5156 #. type: textblock
5157 #: ../examples/guestfs-recipes.pod:354
5158 msgid ""
5159 "The link below contains one technique for removing the Administrator "
5160 "password from a Windows VM, or to be more precise, it gives you a command "
5161 "prompt the next time you log in which you can use to bypass any security:"
5162 msgstr ""
5163
5164 #. type: textblock
5165 #: ../examples/guestfs-recipes.pod:359
5166 msgid "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-administrator-password-with-guestfish/"
5167 msgstr ""
5168
5169 #. type: =head1
5170 #: ../examples/guestfs-recipes.pod:361
5171 msgid "Unpack a live CD"
5172 msgstr ""
5173
5174 #. type: textblock
5175 #: ../examples/guestfs-recipes.pod:363
5176 msgid ""
5177 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5178 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
5179 "layers, as outlined in the guide below."
5180 msgstr ""
5181
5182 #. type: textblock
5183 #: ../examples/guestfs-recipes.pod:367
5184 msgid "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-cd/#content"
5185 msgstr ""
5186
5187 #. type: =head1
5188 #: ../examples/guestfs-recipes.pod:369
5189 msgid "Uploading and downloading files"
5190 msgstr ""
5191
5192 #. type: textblock
5193 #: ../examples/guestfs-recipes.pod:371
5194 msgid ""
5195 "The link below contains general tips on uploading (copying in)  and "
5196 "downloading (copying out) files from VMs."
5197 msgstr ""
5198
5199 #. type: textblock
5200 #: ../examples/guestfs-recipes.pod:374
5201 msgid "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5202 msgstr ""
5203
5204 #. type: =head1
5205 #: ../examples/guestfs-recipes.pod:376
5206 msgid "Use libguestfs tools on VMware ESX guests"
5207 msgstr ""
5208
5209 #. type: textblock
5210 #: ../examples/guestfs-recipes.pod:378
5211 msgid ""
5212 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5213 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5214 msgstr ""
5215
5216 #. type: textblock
5217 #: ../examples/guestfs-recipes.pod:382
5218 msgid "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-guests/#content"
5219 msgstr ""
5220
5221 #. type: textblock
5222 #: ../examples/guestfs-recipes.pod:386
5223 msgid ""
5224 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, "
5225 "L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
5226 "L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
5227 "L<http://libguestfs.org/>."
5228 msgstr ""
5229
5230 #. type: textblock
5231 #: ../examples/guestfs-recipes.pod:403
5232 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5233 msgstr ""
5234
5235 #. type: =head2
5236 #: ../fish/guestfish-actions.pod:1
5237 msgid "add-cdrom"
5238 msgstr ""
5239
5240 #. type: verbatim
5241 #: ../fish/guestfish-actions.pod:3
5242 #, no-wrap
5243 msgid ""
5244 " add-cdrom filename\n"
5245 "\n"
5246 msgstr ""
5247
5248 #. type: textblock
5249 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
5250 msgid "This function adds a virtual CD-ROM disk image to the guest."
5251 msgstr ""
5252
5253 #. type: textblock
5254 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
5255 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5256 msgstr ""
5257
5258 #. type: textblock
5259 #: ../fish/guestfish-actions.pod:15
5260 msgid ""
5261 "This call checks for the existence of C<filename>.  This stops you from "
5262 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5263 "and C<http:> URLs.  To specify those, use the general L</config> call "
5264 "instead."
5265 msgstr ""
5266
5267 #. type: textblock
5268 #: ../fish/guestfish-actions.pod:22
5269 msgid ""
5270 "If you just want to add an ISO file (often you use this as an efficient way "
5271 "to transfer large files into the guest), then you should probably use "
5272 "L</add-drive-ro> instead."
5273 msgstr ""
5274
5275 #. type: textblock
5276 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:214 ../fish/guestfish-actions.pod:228
5277 msgid ""
5278 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
5279 "instead."
5280 msgstr ""
5281
5282 #. type: textblock
5283 #: ../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:3293 ../fish/guestfish-actions.pod:3604 ../fish/guestfish-actions.pod:3652 ../fish/guestfish-actions.pod:4579 ../fish/guestfish-actions.pod:4602 ../fish/guestfish-actions.pod:4624 ../fish/guestfish-actions.pod:4662 ../fish/guestfish-actions.pod:5311 ../fish/guestfish-actions.pod:5417 ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:305 ../src/guestfs-actions.pod:326 ../src/guestfs-actions.pod:1572 ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1912 ../src/guestfs-actions.pod:2411 ../src/guestfs-actions.pod:2432 ../src/guestfs-actions.pod:5077 ../src/guestfs-actions.pod:5599 ../src/guestfs-actions.pod:5699 ../src/guestfs-actions.pod:6999 ../src/guestfs-actions.pod:7043 ../src/guestfs-actions.pod:7077 ../src/guestfs-actions.pod:7140 ../src/guestfs-actions.pod:8072 ../src/guestfs-actions.pod:8181 ../src/guestfs-actions.pod:8364
5284 msgid ""
5285 "Deprecated functions will not be removed from the API, but the fact that "
5286 "they are deprecated indicates that there are problems with correct use of "
5287 "these functions."
5288 msgstr ""
5289
5290 #. type: =head2
5291 #: ../fish/guestfish-actions.pod:35
5292 msgid "add-domain"
5293 msgstr ""
5294
5295 #. type: =head2
5296 #: ../fish/guestfish-actions.pod:37
5297 msgid "domain"
5298 msgstr ""
5299
5300 #. type: verbatim
5301 #: ../fish/guestfish-actions.pod:39
5302 #, no-wrap
5303 msgid ""
5304 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] "
5305 "[allowuuid:..] [readonlydisk:..]\n"
5306 "\n"
5307 msgstr ""
5308
5309 #. type: textblock
5310 #: ../fish/guestfish-actions.pod:41
5311 msgid ""
5312 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
5313 "It works by connecting to libvirt, requesting the domain and domain XML from "
5314 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
5315 msgstr ""
5316
5317 #. type: textblock
5318 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:65
5319 msgid ""
5320 "The number of disks added is returned.  This operation is atomic: if an "
5321 "error is returned, then no disks are added."
5322 msgstr ""
5323
5324 #. type: textblock
5325 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:68
5326 msgid ""
5327 "This function does some minimal checks to make sure the libvirt domain is "
5328 "not running (unless C<readonly> is true).  In a future version we will try "
5329 "to acquire the libvirt lock on each disk."
5330 msgstr ""
5331
5332 #. type: textblock
5333 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:72
5334 msgid ""
5335 "Disks must be accessible locally.  This often means that adding disks from a "
5336 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
5337 "unless those disks are accessible via the same device path locally too."
5338 msgstr ""
5339
5340 #. type: textblock
5341 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:77
5342 msgid ""
5343 "The optional C<libvirturi> parameter sets the libvirt URI (see "
5344 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
5345 "default libvirt URI (or one set through an environment variable, see the "
5346 "libvirt documentation for full details)."
5347 msgstr ""
5348
5349 #. type: textblock
5350 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:83
5351 msgid ""
5352 "The optional C<live> flag controls whether this call will try to connect to "
5353 "a running virtual machine C<guestfsd> process if it sees a suitable "
5354 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
5355 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
5356 "DAEMONS> for more information."
5357 msgstr ""
5358
5359 #. type: textblock
5360 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:90
5361 msgid ""
5362 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
5363 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
5364 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
5365 "as usual."
5366 msgstr ""
5367
5368 #. type: textblock
5369 #: ../fish/guestfish-actions.pod:76 ../src/guestfs-actions.pod:95
5370 msgid ""
5371 "The optional C<readonlydisk> parameter controls what we do for disks which "
5372 "are marked E<lt>readonly/E<gt> in the libvirt XML.  Possible values are:"
5373 msgstr ""
5374
5375 #. type: =item
5376 #: ../fish/guestfish-actions.pod:82 ../src/guestfs-actions.pod:101
5377 msgid "readonlydisk = \"error\""
5378 msgstr ""
5379
5380 #. type: textblock
5381 #: ../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
5382 msgid "If C<readonly> is false:"
5383 msgstr ""
5384
5385 #. type: textblock
5386 #: ../fish/guestfish-actions.pod:86 ../src/guestfs-actions.pod:105
5387 msgid ""
5388 "The whole call is aborted with an error if any disk with the "
5389 "E<lt>readonly/E<gt> flag is found."
5390 msgstr ""
5391
5392 #. type: textblock
5393 #: ../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
5394 msgid "If C<readonly> is true:"
5395 msgstr ""
5396
5397 #. type: textblock
5398 #: ../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
5399 msgid "Disks with the E<lt>readonly/E<gt> flag are added read-only."
5400 msgstr ""
5401
5402 #. type: =item
5403 #: ../fish/guestfish-actions.pod:93 ../src/guestfs-actions.pod:112
5404 msgid "readonlydisk = \"read\""
5405 msgstr ""
5406
5407 #. type: textblock
5408 #: ../fish/guestfish-actions.pod:97 ../src/guestfs-actions.pod:116
5409 msgid ""
5410 "Disks with the E<lt>readonly/E<gt> flag are added read-only.  Other disks "
5411 "are added read/write."
5412 msgstr ""
5413
5414 #. type: =item
5415 #: ../fish/guestfish-actions.pod:104 ../src/guestfs-actions.pod:123
5416 msgid "readonlydisk = \"write\" (default)"
5417 msgstr ""
5418
5419 #. type: textblock
5420 #: ../fish/guestfish-actions.pod:108 ../src/guestfs-actions.pod:127
5421 msgid "Disks with the E<lt>readonly/E<gt> flag are added read/write."
5422 msgstr ""
5423
5424 #. type: =item
5425 #: ../fish/guestfish-actions.pod:114 ../src/guestfs-actions.pod:133
5426 msgid "readonlydisk = \"ignore\""
5427 msgstr ""
5428
5429 #. type: textblock
5430 #: ../fish/guestfish-actions.pod:116 ../src/guestfs-actions.pod:135
5431 msgid "If C<readonly> is true or false:"
5432 msgstr ""
5433
5434 #. type: textblock
5435 #: ../fish/guestfish-actions.pod:118 ../src/guestfs-actions.pod:137
5436 msgid "Disks with the E<lt>readonly/E<gt> flag are skipped."
5437 msgstr ""
5438
5439 #. type: textblock
5440 #: ../fish/guestfish-actions.pod:122
5441 msgid ""
5442 "The other optional parameters are passed directly through to "
5443 "L</add-drive-opts>."
5444 msgstr ""
5445
5446 #. type: textblock
5447 #: ../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:3342 ../fish/guestfish-actions.pod:3505 ../fish/guestfish-actions.pod:3640
5448 msgid ""
5449 "This command has one or more optional arguments.  See L</OPTIONAL "
5450 "ARGUMENTS>."
5451 msgstr ""
5452
5453 #. type: =head2
5454 #: ../fish/guestfish-actions.pod:127
5455 msgid "add-drive"
5456 msgstr ""
5457
5458 #. type: verbatim
5459 #: ../fish/guestfish-actions.pod:129
5460 #, no-wrap
5461 msgid ""
5462 " add-drive filename\n"
5463 "\n"
5464 msgstr ""
5465
5466 #. type: textblock
5467 #: ../fish/guestfish-actions.pod:131
5468 msgid ""
5469 "This function is the equivalent of calling L</add-drive-opts> with no "
5470 "optional parameters, so the disk is added writable, with the format being "
5471 "detected automatically."
5472 msgstr ""
5473
5474 #. type: textblock
5475 #: ../fish/guestfish-actions.pod:135
5476 msgid ""
5477 "Automatic detection of the format opens you up to a potential security hole "
5478 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
5479 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
5480 "you should think about replacing calls to this function with calls to "
5481 "L</add-drive-opts>, and specifying the format."
5482 msgstr ""
5483
5484 #. type: =head2
5485 #: ../fish/guestfish-actions.pod:142
5486 msgid "add-drive-opts"
5487 msgstr ""
5488
5489 #. type: =head2
5490 #: ../fish/guestfish-actions.pod:144
5491 msgid "add"
5492 msgstr ""
5493
5494 #. type: verbatim
5495 #: ../fish/guestfish-actions.pod:146
5496 #, no-wrap
5497 msgid ""
5498 " add-drive-opts filename [readonly:..] [format:..] [iface:..] [name:..]\n"
5499 "\n"
5500 msgstr ""
5501
5502 #. type: textblock
5503 #: ../fish/guestfish-actions.pod:148 ../src/guestfs-actions.pod:208
5504 msgid ""
5505 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
5506 "The first time you call this function, the disk appears as C</dev/sda>, the "
5507 "second time as C</dev/sdb>, and so on."
5508 msgstr ""
5509
5510 #. type: textblock
5511 #: ../fish/guestfish-actions.pod:153 ../src/guestfs-actions.pod:213
5512 msgid ""
5513 "You don't necessarily need to be root when using libguestfs.  However you "
5514 "obviously do need sufficient permissions to access the filename for whatever "
5515 "operations you want to perform (ie. read access if you just want to read the "
5516 "image or write access if you want to modify the image)."
5517 msgstr ""
5518
5519 #. type: textblock
5520 #: ../fish/guestfish-actions.pod:159 ../src/guestfs-actions.pod:219
5521 msgid "This call checks that C<filename> exists."
5522 msgstr ""
5523
5524 #. type: textblock
5525 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:3304 ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5114
5526 msgid "The optional arguments are:"
5527 msgstr ""
5528
5529 #. type: =item
5530 #: ../fish/guestfish-actions.pod:165 ../src/guestfs-actions.pod:225
5531 msgid "C<readonly>"
5532 msgstr ""
5533
5534 #. type: textblock
5535 #: ../fish/guestfish-actions.pod:167 ../src/guestfs-actions.pod:227
5536 msgid ""
5537 "If true then the image is treated as read-only.  Writes are still allowed, "
5538 "but they are stored in a temporary snapshot overlay which is discarded at "
5539 "the end.  The disk that you add is not modified."
5540 msgstr ""
5541
5542 #. type: =item
5543 #: ../fish/guestfish-actions.pod:171 ../src/guestfs-actions.pod:231
5544 msgid "C<format>"
5545 msgstr ""
5546
5547 #. type: textblock
5548 #: ../fish/guestfish-actions.pod:173
5549 msgid ""
5550 "This forces the image format.  If you omit this (or use L</add-drive> or "
5551 "L</add-drive-ro>) then the format is automatically detected.  Possible "
5552 "formats include C<raw> and C<qcow2>."
5553 msgstr ""
5554
5555 #. type: textblock
5556 #: ../fish/guestfish-actions.pod:177 ../src/guestfs-actions.pod:237
5557 msgid ""
5558 "Automatic detection of the format opens you up to a potential security hole "
5559 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
5560 "RHBZ#642934.  Specifying the format closes this security hole."
5561 msgstr ""
5562
5563 #. type: =item
5564 #: ../fish/guestfish-actions.pod:182 ../src/guestfs-actions.pod:242
5565 msgid "C<iface>"
5566 msgstr ""
5567
5568 #. type: textblock
5569 #: ../fish/guestfish-actions.pod:184
5570 msgid ""
5571 "This rarely-used option lets you emulate the behaviour of the deprecated "
5572 "L</add-drive-with-if> call (q.v.)"
5573 msgstr ""
5574
5575 #. type: =item
5576 #: ../fish/guestfish-actions.pod:187 ../src/guestfs-actions.pod:247
5577 msgid "C<name>"
5578 msgstr ""
5579
5580 #. type: textblock
5581 #: ../fish/guestfish-actions.pod:189 ../src/guestfs-actions.pod:249
5582 msgid ""
5583 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
5584 "a hint to the guest inspection process if it is available."
5585 msgstr ""
5586
5587 #. type: =head2
5588 #: ../fish/guestfish-actions.pod:196
5589 msgid "add-drive-ro"
5590 msgstr ""
5591
5592 #. type: =head2
5593 #: ../fish/guestfish-actions.pod:198
5594 msgid "add-ro"
5595 msgstr ""
5596
5597 #. type: verbatim
5598 #: ../fish/guestfish-actions.pod:200
5599 #, no-wrap
5600 msgid ""
5601 " add-drive-ro filename\n"
5602 "\n"
5603 msgstr ""
5604
5605 #. type: textblock
5606 #: ../fish/guestfish-actions.pod:202
5607 msgid ""
5608 "This function is the equivalent of calling L</add-drive-opts> with the "
5609 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
5610 "is added read-only, with the format being detected automatically."
5611 msgstr ""
5612
5613 #. type: =head2
5614 #: ../fish/guestfish-actions.pod:207
5615 msgid "add-drive-ro-with-if"
5616 msgstr ""
5617
5618 #. type: verbatim
5619 #: ../fish/guestfish-actions.pod:209
5620 #, no-wrap
5621 msgid ""
5622 " add-drive-ro-with-if filename iface\n"
5623 "\n"
5624 msgstr ""
5625
5626 #. type: textblock
5627 #: ../fish/guestfish-actions.pod:211
5628 msgid ""
5629 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
5630 "interface emulation to use at run time."
5631 msgstr ""
5632
5633 #. type: =head2
5634 #: ../fish/guestfish-actions.pod:221
5635 msgid "add-drive-with-if"
5636 msgstr ""
5637
5638 #. type: verbatim
5639 #: ../fish/guestfish-actions.pod:223
5640 #, no-wrap
5641 msgid ""
5642 " add-drive-with-if filename iface\n"
5643 "\n"
5644 msgstr ""
5645
5646 #. type: textblock
5647 #: ../fish/guestfish-actions.pod:225
5648 msgid ""
5649 "This is the same as L</add-drive> but it allows you to specify the QEMU "
5650 "interface emulation to use at run time."
5651 msgstr ""
5652
5653 #. type: =head2
5654 #: ../fish/guestfish-actions.pod:235
5655 msgid "aug-clear"
5656 msgstr ""
5657
5658 #. type: verbatim
5659 #: ../fish/guestfish-actions.pod:237
5660 #, no-wrap
5661 msgid ""
5662 " aug-clear augpath\n"
5663 "\n"
5664 msgstr ""
5665
5666 #. type: textblock
5667 #: ../fish/guestfish-actions.pod:239 ../src/guestfs-actions.pod:343
5668 msgid ""
5669 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
5670 "L<augtool(1)> C<clear> command."
5671 msgstr ""
5672
5673 #. type: =head2
5674 #: ../fish/guestfish-actions.pod:242
5675 msgid "aug-close"
5676 msgstr ""
5677
5678 #. type: verbatim
5679 #: ../fish/guestfish-actions.pod:244
5680 #, no-wrap
5681 msgid ""
5682 " aug-close\n"
5683 "\n"
5684 msgstr ""
5685
5686 #. type: textblock
5687 #: ../fish/guestfish-actions.pod:246
5688 msgid ""
5689 "Close the current Augeas handle and free up any resources used by it.  After "
5690 "calling this, you have to call L</aug-init> again before you can use any "
5691 "other Augeas functions."
5692 msgstr ""
5693
5694 #. type: =head2
5695 #: ../fish/guestfish-actions.pod:251
5696 msgid "aug-defnode"
5697 msgstr ""
5698
5699 #. type: verbatim
5700 #: ../fish/guestfish-actions.pod:253
5701 #, no-wrap
5702 msgid ""
5703 " aug-defnode name expr val\n"
5704 "\n"
5705 msgstr ""
5706
5707 #. type: textblock
5708 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:372
5709 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
5710 msgstr ""
5711
5712 #. type: textblock
5713 #: ../fish/guestfish-actions.pod:258
5714 msgid ""
5715 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
5716 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
5717 "containing that single node."
5718 msgstr ""
5719
5720 #. type: textblock
5721 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:379
5722 msgid ""
5723 "On success this returns a pair containing the number of nodes in the "
5724 "nodeset, and a boolean flag if a node was created."
5725 msgstr ""
5726
5727 #. type: =head2
5728 #: ../fish/guestfish-actions.pod:266
5729 msgid "aug-defvar"
5730 msgstr ""
5731
5732 #. type: verbatim
5733 #: ../fish/guestfish-actions.pod:268
5734 #, no-wrap
5735 msgid ""
5736 " aug-defvar name expr\n"
5737 "\n"
5738 msgstr ""
5739
5740 #. type: textblock
5741 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:396
5742 msgid ""
5743 "Defines an Augeas variable C<name> whose value is the result of evaluating "
5744 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
5745 msgstr ""
5746
5747 #. type: textblock
5748 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:400
5749 msgid ""
5750 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
5751 "evaluates to something which is not a nodeset."
5752 msgstr ""
5753
5754 #. type: =head2
5755 #: ../fish/guestfish-actions.pod:277
5756 msgid "aug-get"
5757 msgstr ""
5758
5759 #. type: verbatim
5760 #: ../fish/guestfish-actions.pod:279
5761 #, no-wrap
5762 msgid ""
5763 " aug-get augpath\n"
5764 "\n"
5765 msgstr ""
5766
5767 #. type: textblock
5768 #: ../fish/guestfish-actions.pod:281 ../src/guestfs-actions.pod:413
5769 msgid ""
5770 "Look up the value associated with C<path>.  If C<path> matches exactly one "
5771 "node, the C<value> is returned."
5772 msgstr ""
5773
5774 #. type: =head2
5775 #: ../fish/guestfish-actions.pod:284
5776 msgid "aug-init"
5777 msgstr ""
5778
5779 #. type: verbatim
5780 #: ../fish/guestfish-actions.pod:286
5781 #, no-wrap
5782 msgid ""
5783 " aug-init root flags\n"
5784 "\n"
5785 msgstr ""
5786
5787 #. type: textblock
5788 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:428
5789 msgid ""
5790 "Create a new Augeas handle for editing configuration files.  If there was "
5791 "any previous Augeas handle associated with this guestfs session, then it is "
5792 "closed."
5793 msgstr ""
5794
5795 #. type: textblock
5796 #: ../fish/guestfish-actions.pod:292
5797 msgid "You must call this before using any other L</aug-*> commands."
5798 msgstr ""
5799
5800 #. type: textblock
5801 #: ../fish/guestfish-actions.pod:295 ../src/guestfs-actions.pod:435
5802 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
5803 msgstr ""
5804
5805 #. type: textblock
5806 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:438
5807 msgid ""
5808 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5809 "logical I<or> of the following integers:"
5810 msgstr ""
5811
5812 #. type: =item
5813 #: ../fish/guestfish-actions.pod:304 ../src/guestfs-actions.pod:444
5814 msgid "C<AUG_SAVE_BACKUP> = 1"
5815 msgstr ""
5816
5817 #. type: textblock
5818 #: ../fish/guestfish-actions.pod:306 ../src/guestfs-actions.pod:446
5819 msgid "Keep the original file with a C<.augsave> extension."
5820 msgstr ""
5821
5822 #. type: =item
5823 #: ../fish/guestfish-actions.pod:308 ../src/guestfs-actions.pod:448
5824 msgid "C<AUG_SAVE_NEWFILE> = 2"
5825 msgstr ""
5826
5827 #. type: textblock
5828 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:450
5829 msgid ""
5830 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5831 "original.  Overrides C<AUG_SAVE_BACKUP>."
5832 msgstr ""
5833
5834 #. type: =item
5835 #: ../fish/guestfish-actions.pod:313 ../src/guestfs-actions.pod:453
5836 msgid "C<AUG_TYPE_CHECK> = 4"
5837 msgstr ""
5838
5839 #. type: textblock
5840 #: ../fish/guestfish-actions.pod:315 ../src/guestfs-actions.pod:455
5841 msgid "Typecheck lenses."
5842 msgstr ""
5843
5844 #. type: textblock
5845 #: ../fish/guestfish-actions.pod:317
5846 msgid ""
5847 "This option is only useful when debugging Augeas lenses.  Use of this option "
5848 "may require additional memory for the libguestfs appliance.  You may need to "
5849 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
5850 msgstr ""
5851
5852 #. type: =item
5853 #: ../fish/guestfish-actions.pod:322 ../src/guestfs-actions.pod:462
5854 msgid "C<AUG_NO_STDINC> = 8"
5855 msgstr ""
5856
5857 #. type: textblock
5858 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:464
5859 msgid "Do not use standard load path for modules."
5860 msgstr ""
5861
5862 #. type: =item
5863 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:466
5864 msgid "C<AUG_SAVE_NOOP> = 16"
5865 msgstr ""
5866
5867 #. type: textblock
5868 #: ../fish/guestfish-actions.pod:328 ../src/guestfs-actions.pod:468
5869 msgid "Make save a no-op, just record what would have been changed."
5870 msgstr ""
5871
5872 #. type: =item
5873 #: ../fish/guestfish-actions.pod:330 ../src/guestfs-actions.pod:470
5874 msgid "C<AUG_NO_LOAD> = 32"
5875 msgstr ""
5876
5877 #. type: textblock
5878 #: ../fish/guestfish-actions.pod:332
5879 msgid "Do not load the tree in L</aug-init>."
5880 msgstr ""
5881
5882 #. type: textblock
5883 #: ../fish/guestfish-actions.pod:336
5884 msgid "To close the handle, you can call L</aug-close>."
5885 msgstr ""
5886
5887 #. type: textblock
5888 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:478
5889 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5890 msgstr ""
5891
5892 #. type: =head2
5893 #: ../fish/guestfish-actions.pod:340
5894 msgid "aug-insert"
5895 msgstr ""
5896
5897 #. type: verbatim
5898 #: ../fish/guestfish-actions.pod:342
5899 #, no-wrap
5900 msgid ""
5901 " aug-insert augpath label true|false\n"
5902 "\n"
5903 msgstr ""
5904
5905 #. type: textblock
5906 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:492
5907 msgid ""
5908 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5909 "or after C<path> (depending on the boolean flag C<before>)."
5910 msgstr ""
5911
5912 #. type: textblock
5913 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:496
5914 msgid ""
5915 "C<path> must match exactly one existing node in the tree, and C<label> must "
5916 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5917 msgstr ""
5918
5919 #. type: =head2
5920 #: ../fish/guestfish-actions.pod:352
5921 msgid "aug-load"
5922 msgstr ""
5923
5924 #. type: verbatim
5925 #: ../fish/guestfish-actions.pod:354
5926 #, no-wrap
5927 msgid ""
5928 " aug-load\n"
5929 "\n"
5930 msgstr ""
5931
5932 #. type: textblock
5933 #: ../fish/guestfish-actions.pod:356 ../src/guestfs-actions.pod:509
5934 msgid "Load files into the tree."
5935 msgstr ""
5936
5937 #. type: textblock
5938 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:511
5939 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5940 msgstr ""
5941
5942 #. type: =head2
5943 #: ../fish/guestfish-actions.pod:361
5944 msgid "aug-ls"
5945 msgstr ""
5946
5947 #. type: verbatim
5948 #: ../fish/guestfish-actions.pod:363
5949 #, no-wrap
5950 msgid ""
5951 " aug-ls augpath\n"
5952 "\n"
5953 msgstr ""
5954
5955 #. type: textblock
5956 #: ../fish/guestfish-actions.pod:365
5957 msgid ""
5958 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
5959 "resulting nodes into alphabetical order."
5960 msgstr ""
5961
5962 #. type: =head2
5963 #: ../fish/guestfish-actions.pod:368
5964 msgid "aug-match"
5965 msgstr ""
5966
5967 #. type: verbatim
5968 #: ../fish/guestfish-actions.pod:370
5969 #, no-wrap
5970 msgid ""
5971 " aug-match augpath\n"
5972 "\n"
5973 msgstr ""
5974
5975 #. type: textblock
5976 #: ../fish/guestfish-actions.pod:372 ../src/guestfs-actions.pod:539
5977 msgid ""
5978 "Returns a list of paths which match the path expression C<path>.  The "
5979 "returned paths are sufficiently qualified so that they match exactly one "
5980 "node in the current tree."
5981 msgstr ""
5982
5983 #. type: =head2
5984 #: ../fish/guestfish-actions.pod:376
5985 msgid "aug-mv"
5986 msgstr ""
5987
5988 #. type: verbatim
5989 #: ../fish/guestfish-actions.pod:378
5990 #, no-wrap
5991 msgid ""
5992 " aug-mv src dest\n"
5993 "\n"
5994 msgstr ""
5995
5996 #. type: textblock
5997 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:556
5998 msgid ""
5999 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6000 "C<dest> is overwritten if it exists."
6001 msgstr ""
6002
6003 #. type: =head2
6004 #: ../fish/guestfish-actions.pod:383
6005 msgid "aug-rm"
6006 msgstr ""
6007
6008 #. type: verbatim
6009 #: ../fish/guestfish-actions.pod:385
6010 #, no-wrap
6011 msgid ""
6012 " aug-rm augpath\n"
6013 "\n"
6014 msgstr ""
6015
6016 #. type: textblock
6017 #: ../fish/guestfish-actions.pod:387 ../src/guestfs-actions.pod:569
6018 msgid "Remove C<path> and all of its children."
6019 msgstr ""
6020
6021 #. type: textblock
6022 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:571
6023 msgid "On success this returns the number of entries which were removed."
6024 msgstr ""
6025
6026 #. type: =head2
6027 #: ../fish/guestfish-actions.pod:391
6028 msgid "aug-save"
6029 msgstr ""
6030
6031 #. type: verbatim
6032 #: ../fish/guestfish-actions.pod:393
6033 #, no-wrap
6034 msgid ""
6035 " aug-save\n"
6036 "\n"
6037 msgstr ""
6038
6039 #. type: textblock
6040 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:582
6041 msgid "This writes all pending changes to disk."
6042 msgstr ""
6043
6044 #. type: textblock
6045 #: ../fish/guestfish-actions.pod:397
6046 msgid ""
6047 "The flags which were passed to L</aug-init> affect exactly how files are "
6048 "saved."
6049 msgstr ""
6050
6051 #. type: =head2
6052 #: ../fish/guestfish-actions.pod:400
6053 msgid "aug-set"
6054 msgstr ""
6055
6056 #. type: verbatim
6057 #: ../fish/guestfish-actions.pod:402
6058 #, no-wrap
6059 msgid ""
6060 " aug-set augpath val\n"
6061 "\n"
6062 msgstr ""
6063
6064 #. type: textblock
6065 #: ../fish/guestfish-actions.pod:404 ../src/guestfs-actions.pod:598
6066 msgid "Set the value associated with C<path> to C<val>."
6067 msgstr ""
6068
6069 #. type: textblock
6070 #: ../fish/guestfish-actions.pod:406
6071 msgid ""
6072 "In the Augeas API, it is possible to clear a node by setting the value to "
6073 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6074 "this call.  Instead you must use the L</aug-clear> call."
6075 msgstr ""
6076
6077 #. type: =head2
6078 #: ../fish/guestfish-actions.pod:411
6079 msgid "available"
6080 msgstr ""
6081
6082 #. type: verbatim
6083 #: ../fish/guestfish-actions.pod:413
6084 #, no-wrap
6085 msgid ""
6086 " available 'groups ...'\n"
6087 "\n"
6088 msgstr ""
6089
6090 #. type: textblock
6091 #: ../fish/guestfish-actions.pod:415 ../src/guestfs-actions.pod:615
6092 msgid ""
6093 "This command is used to check the availability of some groups of "
6094 "functionality in the appliance, which not all builds of the libguestfs "
6095 "appliance will be able to provide."
6096 msgstr ""
6097
6098 #. type: textblock
6099 #: ../fish/guestfish-actions.pod:419
6100 msgid ""
6101 "The libguestfs groups, and the functions that those groups correspond to, "
6102 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6103 "runtime by calling L</available-all-groups>."
6104 msgstr ""
6105
6106 #. type: textblock
6107 #: ../fish/guestfish-actions.pod:424 ../src/guestfs-actions.pod:624
6108 msgid ""
6109 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
6110 "\"augeas\"]> would check for the availability of the Linux inotify functions "
6111 "and Augeas (configuration file editing) functions."
6112 msgstr ""
6113
6114 #. type: textblock
6115 #: ../fish/guestfish-actions.pod:429 ../src/guestfs-actions.pod:629
6116 msgid "The command returns no error if I<all> requested groups are available."
6117 msgstr ""
6118
6119 #. type: textblock
6120 #: ../fish/guestfish-actions.pod:431 ../src/guestfs-actions.pod:631
6121 msgid ""
6122 "It fails with an error if one or more of the requested groups is unavailable "
6123 "in the appliance."
6124 msgstr ""
6125
6126 #. type: textblock
6127 #: ../fish/guestfish-actions.pod:434 ../src/guestfs-actions.pod:634
6128 msgid ""
6129 "If an unknown group name is included in the list of groups then an error is "
6130 "always returned."
6131 msgstr ""
6132
6133 #. type: textblock
6134 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:637
6135 msgid "I<Notes:>"
6136 msgstr ""
6137
6138 #. type: textblock
6139 #: ../fish/guestfish-actions.pod:443
6140 msgid "You must call L</launch> before calling this function."
6141 msgstr ""
6142
6143 #. type: textblock
6144 #: ../fish/guestfish-actions.pod:445 ../src/guestfs-actions.pod:645
6145 msgid ""
6146 "The reason is because we don't know what groups are supported by the "
6147 "appliance/daemon until it is running and can be queried."
6148 msgstr ""
6149
6150 #. type: textblock
6151 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:651
6152 msgid ""
6153 "If a group of functions is available, this does not necessarily mean that "
6154 "they will work.  You still have to check for errors when calling individual "
6155 "API functions even if they are available."
6156 msgstr ""
6157
6158 #. type: textblock
6159 #: ../fish/guestfish-actions.pod:458 ../src/guestfs-actions.pod:658
6160 msgid ""
6161 "It is usually the job of distro packagers to build complete functionality "
6162 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6163 "with all requirements satisfied, will support everything."
6164 msgstr ""
6165
6166 #. type: textblock
6167 #: ../fish/guestfish-actions.pod:465
6168 msgid ""
6169 "This call was added in version C<1.0.80>.  In previous versions of "
6170 "libguestfs all you could do would be to speculatively execute a command to "
6171 "find out if the daemon implemented it.  See also L</version>."
6172 msgstr ""
6173
6174 #. type: =head2
6175 #: ../fish/guestfish-actions.pod:472
6176 msgid "available-all-groups"
6177 msgstr ""
6178
6179 #. type: verbatim
6180 #: ../fish/guestfish-actions.pod:474
6181 #, no-wrap
6182 msgid ""
6183 " available-all-groups\n"
6184 "\n"
6185 msgstr ""
6186
6187 #. type: textblock
6188 #: ../fish/guestfish-actions.pod:476
6189 msgid ""
6190 "This command returns a list of all optional groups that this daemon knows "
6191 "about.  Note this returns both supported and unsupported groups.  To find "
6192 "out which ones the daemon can actually support you have to call "
6193 "L</available> on each member of the returned list."
6194 msgstr ""
6195
6196 #. type: textblock
6197 #: ../fish/guestfish-actions.pod:482
6198 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6199 msgstr ""
6200
6201 #. type: =head2
6202 #: ../fish/guestfish-actions.pod:484
6203 msgid "base64-in"
6204 msgstr ""
6205
6206 #. type: verbatim
6207 #: ../fish/guestfish-actions.pod:486
6208 #, no-wrap
6209 msgid ""
6210 " base64-in (base64file|-) filename\n"
6211 "\n"
6212 msgstr ""
6213
6214 #. type: textblock
6215 #: ../fish/guestfish-actions.pod:488 ../src/guestfs-actions.pod:702
6216 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
6217 msgstr ""
6218
6219 #. type: textblock
6220 #: ../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:4882 ../fish/guestfish-actions.pod:4894 ../fish/guestfish-actions.pod:4905 ../fish/guestfish-actions.pod:4916 ../fish/guestfish-actions.pod:4968 ../fish/guestfish-actions.pod:4977 ../fish/guestfish-actions.pod:5031 ../fish/guestfish-actions.pod:5054
6221 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6222 msgstr ""
6223
6224 #. type: =head2
6225 #: ../fish/guestfish-actions.pod:493
6226 msgid "base64-out"
6227 msgstr ""
6228
6229 #. type: verbatim
6230 #: ../fish/guestfish-actions.pod:495
6231 #, no-wrap
6232 msgid ""
6233 " base64-out filename (base64file|-)\n"
6234 "\n"
6235 msgstr ""
6236
6237 #. type: textblock
6238 #: ../fish/guestfish-actions.pod:497 ../src/guestfs-actions.pod:716
6239 msgid ""
6240 "This command downloads the contents of C<filename>, writing it out to local "
6241 "file C<base64file> encoded as base64."
6242 msgstr ""
6243
6244 #. type: =head2
6245 #: ../fish/guestfish-actions.pod:502
6246 msgid "blockdev-flushbufs"
6247 msgstr ""
6248
6249 #. type: verbatim
6250 #: ../fish/guestfish-actions.pod:504
6251 #, no-wrap
6252 msgid ""
6253 " blockdev-flushbufs device\n"
6254 "\n"
6255 msgstr ""
6256
6257 #. type: textblock
6258 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:729
6259 msgid "This tells the kernel to flush internal buffers associated with C<device>."
6260 msgstr ""
6261
6262 #. type: textblock
6263 #: ../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
6264 msgid "This uses the L<blockdev(8)> command."
6265 msgstr ""
6266
6267 #. type: =head2
6268 #: ../fish/guestfish-actions.pod:511
6269 msgid "blockdev-getbsz"
6270 msgstr ""
6271
6272 #. type: verbatim
6273 #: ../fish/guestfish-actions.pod:513
6274 #, no-wrap
6275 msgid ""
6276 " blockdev-getbsz device\n"
6277 "\n"
6278 msgstr ""
6279
6280 #. type: textblock
6281 #: ../fish/guestfish-actions.pod:515 ../src/guestfs-actions.pod:744
6282 msgid "This returns the block size of a device."
6283 msgstr ""
6284
6285 #. type: textblock
6286 #: ../fish/guestfish-actions.pod:517 ../fish/guestfish-actions.pod:580 ../src/guestfs-actions.pod:746 ../src/guestfs-actions.pod:846
6287 msgid ""
6288 "(Note this is different from both I<size in blocks> and I<filesystem block "
6289 "size>)."
6290 msgstr ""
6291
6292 #. type: =head2
6293 #: ../fish/guestfish-actions.pod:522
6294 msgid "blockdev-getro"
6295 msgstr ""
6296
6297 #. type: verbatim
6298 #: ../fish/guestfish-actions.pod:524
6299 #, no-wrap
6300 msgid ""
6301 " blockdev-getro device\n"
6302 "\n"
6303 msgstr ""
6304
6305 #. type: textblock
6306 #: ../fish/guestfish-actions.pod:526 ../src/guestfs-actions.pod:761
6307 msgid ""
6308 "Returns a boolean indicating if the block device is read-only (true if "
6309 "read-only, false if not)."
6310 msgstr ""
6311
6312 #. type: =head2
6313 #: ../fish/guestfish-actions.pod:531
6314 msgid "blockdev-getsize64"
6315 msgstr ""
6316
6317 #. type: verbatim
6318 #: ../fish/guestfish-actions.pod:533
6319 #, no-wrap
6320 msgid ""
6321 " blockdev-getsize64 device\n"
6322 "\n"
6323 msgstr ""
6324
6325 #. type: textblock
6326 #: ../fish/guestfish-actions.pod:535 ../src/guestfs-actions.pod:776
6327 msgid "This returns the size of the device in bytes."
6328 msgstr ""
6329
6330 #. type: textblock
6331 #: ../fish/guestfish-actions.pod:537
6332 msgid "See also L</blockdev-getsz>."
6333 msgstr ""
6334
6335 #. type: =head2
6336 #: ../fish/guestfish-actions.pod:541
6337 msgid "blockdev-getss"
6338 msgstr ""
6339
6340 #. type: verbatim
6341 #: ../fish/guestfish-actions.pod:543
6342 #, no-wrap
6343 msgid ""
6344 " blockdev-getss device\n"
6345 "\n"
6346 msgstr ""
6347
6348 #. type: textblock
6349 #: ../fish/guestfish-actions.pod:545 ../src/guestfs-actions.pod:792
6350 msgid ""
6351 "This returns the size of sectors on a block device.  Usually 512, but can be "
6352 "larger for modern devices."
6353 msgstr ""
6354
6355 #. type: textblock
6356 #: ../fish/guestfish-actions.pod:548
6357 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
6358 msgstr ""
6359
6360 #. type: =head2
6361 #: ../fish/guestfish-actions.pod:553
6362 msgid "blockdev-getsz"
6363 msgstr ""
6364
6365 #. type: verbatim
6366 #: ../fish/guestfish-actions.pod:555
6367 #, no-wrap
6368 msgid ""
6369 " blockdev-getsz device\n"
6370 "\n"
6371 msgstr ""
6372
6373 #. type: textblock
6374 #: ../fish/guestfish-actions.pod:557 ../src/guestfs-actions.pod:810
6375 msgid ""
6376 "This returns the size of the device in units of 512-byte sectors (even if "
6377 "the sectorsize isn't 512 bytes ... weird)."
6378 msgstr ""
6379
6380 #. type: textblock
6381 #: ../fish/guestfish-actions.pod:560
6382 msgid ""
6383 "See also L</blockdev-getss> for the real sector size of the device, and "
6384 "L</blockdev-getsize64> for the more useful I<size in bytes>."
6385 msgstr ""
6386
6387 #. type: =head2
6388 #: ../fish/guestfish-actions.pod:566
6389 msgid "blockdev-rereadpt"
6390 msgstr ""
6391
6392 #. type: verbatim
6393 #: ../fish/guestfish-actions.pod:568
6394 #, no-wrap
6395 msgid ""
6396 " blockdev-rereadpt device\n"
6397 "\n"
6398 msgstr ""
6399
6400 #. type: textblock
6401 #: ../fish/guestfish-actions.pod:570 ../src/guestfs-actions.pod:829
6402 msgid "Reread the partition table on C<device>."
6403 msgstr ""
6404
6405 #. type: =head2
6406 #: ../fish/guestfish-actions.pod:574
6407 msgid "blockdev-setbsz"
6408 msgstr ""
6409
6410 #. type: verbatim
6411 #: ../fish/guestfish-actions.pod:576
6412 #, no-wrap
6413 msgid ""
6414 " blockdev-setbsz device blocksize\n"
6415 "\n"
6416 msgstr ""
6417
6418 #. type: textblock
6419 #: ../fish/guestfish-actions.pod:578 ../src/guestfs-actions.pod:844
6420 msgid "This sets the block size of a device."
6421 msgstr ""
6422
6423 #. type: =head2
6424 #: ../fish/guestfish-actions.pod:585
6425 msgid "blockdev-setro"
6426 msgstr ""
6427
6428 #. type: verbatim
6429 #: ../fish/guestfish-actions.pod:587
6430 #, no-wrap
6431 msgid ""
6432 " blockdev-setro device\n"
6433 "\n"
6434 msgstr ""
6435
6436 #. type: textblock
6437 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:861
6438 msgid "Sets the block device named C<device> to read-only."
6439 msgstr ""
6440
6441 #. type: =head2
6442 #: ../fish/guestfish-actions.pod:593
6443 msgid "blockdev-setrw"
6444 msgstr ""
6445
6446 #. type: verbatim
6447 #: ../fish/guestfish-actions.pod:595
6448 #, no-wrap
6449 msgid ""
6450 " blockdev-setrw device\n"
6451 "\n"
6452 msgstr ""
6453
6454 #. type: textblock
6455 #: ../fish/guestfish-actions.pod:597 ../src/guestfs-actions.pod:875
6456 msgid "Sets the block device named C<device> to read-write."
6457 msgstr ""
6458
6459 #. type: =head2
6460 #: ../fish/guestfish-actions.pod:601
6461 msgid "btrfs-filesystem-resize"
6462 msgstr ""
6463
6464 #. type: verbatim
6465 #: ../fish/guestfish-actions.pod:603
6466 #, no-wrap
6467 msgid ""
6468 " btrfs-filesystem-resize mountpoint [size:..]\n"
6469 "\n"
6470 msgstr ""
6471
6472 #. type: textblock
6473 #: ../fish/guestfish-actions.pod:605 ../src/guestfs-actions.pod:897
6474 msgid "This command resizes a btrfs filesystem."
6475 msgstr ""
6476
6477 #. type: textblock
6478 #: ../fish/guestfish-actions.pod:607 ../src/guestfs-actions.pod:899
6479 msgid ""
6480 "Note that unlike other resize calls, the filesystem has to be mounted and "
6481 "the parameter is the mountpoint not the device (this is a requirement of "
6482 "btrfs itself)."
6483 msgstr ""
6484
6485 #. type: textblock
6486 #: ../fish/guestfish-actions.pod:611 ../fish/guestfish-actions.pod:3615 ../src/guestfs-actions.pod:903 ../src/guestfs-actions.pod:5638
6487 msgid "The optional parameters are:"
6488 msgstr ""
6489
6490 #. type: =item
6491 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3619 ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:5642
6492 msgid "C<size>"
6493 msgstr ""
6494
6495 #. type: textblock
6496 #: ../fish/guestfish-actions.pod:617 ../src/guestfs-actions.pod:909
6497 msgid ""
6498 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
6499 "resized to the maximum size."
6500 msgstr ""
6501
6502 #. type: textblock
6503 #: ../fish/guestfish-actions.pod:622 ../src/guestfs-actions.pod:914
6504 msgid "See also L<btrfs(8)>."
6505 msgstr ""
6506
6507 #. type: =head2
6508 #: ../fish/guestfish-actions.pod:626
6509 msgid "case-sensitive-path"
6510 msgstr ""
6511
6512 #. type: verbatim
6513 #: ../fish/guestfish-actions.pod:628
6514 #, no-wrap
6515 msgid ""
6516 " case-sensitive-path path\n"
6517 "\n"
6518 msgstr ""
6519
6520 #. type: textblock
6521 #: ../fish/guestfish-actions.pod:630 ../src/guestfs-actions.pod:948
6522 msgid ""
6523 "This can be used to resolve case insensitive paths on a filesystem which is "
6524 "case sensitive.  The use case is to resolve paths which you have read from "
6525 "Windows configuration files or the Windows Registry, to the true path."
6526 msgstr ""
6527
6528 #. type: textblock
6529 #: ../fish/guestfish-actions.pod:635 ../src/guestfs-actions.pod:953
6530 msgid ""
6531 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
6532 "(and probably others), which is that although the underlying filesystem is "
6533 "case-insensitive, the driver exports the filesystem to Linux as "
6534 "case-sensitive."
6535 msgstr ""
6536
6537 #. type: textblock
6538 #: ../fish/guestfish-actions.pod:640 ../src/guestfs-actions.pod:958
6539 msgid ""
6540 "One consequence of this is that special directories such as C<c:\\windows> "
6541 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
6542 "precise details of how they were created.  In Windows itself this would not "
6543 "be a problem."
6544 msgstr ""
6545
6546 #. type: textblock
6547 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:964
6548 msgid ""
6549 "Bug or feature? You decide: "
6550 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
6551 msgstr ""
6552
6553 #. type: textblock
6554 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:967
6555 msgid ""
6556 "This function resolves the true case of each element in the path and returns "
6557 "the case-sensitive path."
6558 msgstr ""
6559
6560 #. type: textblock
6561 #: ../fish/guestfish-actions.pod:652
6562 msgid ""
6563 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
6564 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
6565 "how the directories were originally created under Windows)."
6566 msgstr ""
6567
6568 #. type: textblock
6569 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:975
6570 msgid "I<Note>: This function does not handle drive names, backslashes etc."
6571 msgstr ""
6572
6573 #. type: textblock
6574 #: ../fish/guestfish-actions.pod:660
6575 msgid "See also L</realpath>."
6576 msgstr ""
6577
6578 #. type: =head2
6579 #: ../fish/guestfish-actions.pod:662
6580 msgid "cat"
6581 msgstr ""
6582
6583 #. type: verbatim
6584 #: ../fish/guestfish-actions.pod:664
6585 #, no-wrap
6586 msgid ""
6587 " cat path\n"
6588 "\n"
6589 msgstr ""
6590
6591 #. type: textblock
6592 #: ../fish/guestfish-actions.pod:666 ../fish/guestfish-actions.pod:4049 ../src/guestfs-actions.pod:991 ../src/guestfs-actions.pod:6299
6593 msgid "Return the contents of the file named C<path>."
6594 msgstr ""
6595
6596 #. type: textblock
6597 #: ../fish/guestfish-actions.pod:668
6598 msgid ""
6599 "Note that this function cannot correctly handle binary files (specifically, "
6600 "files containing C<\\0> character which is treated as end of string).  For "
6601 "those you need to use the L</read-file> or L</download> functions which have "
6602 "a more complex interface."
6603 msgstr ""
6604
6605 #. type: textblock
6606 #: ../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:3919 ../fish/guestfish-actions.pod:3934 ../fish/guestfish-actions.pod:4010 ../fish/guestfish-actions.pod:4027 ../fish/guestfish-actions.pod:4042 ../fish/guestfish-actions.pod:4723 ../fish/guestfish-actions.pod:4769 ../fish/guestfish-actions.pod:4854 ../fish/guestfish-actions.pod:4869 ../fish/guestfish-actions.pod:5275 ../fish/guestfish-actions.pod:5287 ../fish/guestfish-actions.pod:5305 ../fish/guestfish-actions.pod:5322 ../fish/guestfish-actions.pod:5332 ../fish/guestfish-actions.pod:5389 ../fish/guestfish-actions.pod:5399 ../fish/guestfish-actions.pod:5428 ../fish/guestfish-actions.pod:5438 ../src/guestfs-actions.pod:1001 ../src/guestfs-actions.pod:1180 ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1847 ../src/guestfs-actions.pod:1866 ../src/guestfs-actions.pod:1969 ../src/guestfs-actions.pod:1988 ../src/guestfs-actions.pod:2234 ../src/guestfs-actions.pod:2716 ../src/guestfs-actions.pod:2735 ../src/guestfs-actions.pod:2800 ../src/guestfs-actions.pod:2824 ../src/guestfs-actions.pod:2841 ../src/guestfs-actions.pod:2870 ../src/guestfs-actions.pod:6081 ../src/guestfs-actions.pod:6107 ../src/guestfs-actions.pod:6238 ../src/guestfs-actions.pod:6264 ../src/guestfs-actions.pod:6288 ../src/guestfs-actions.pod:7255 ../src/guestfs-actions.pod:7310 ../src/guestfs-actions.pod:7456 ../src/guestfs-actions.pod:7480 ../src/guestfs-actions.pod:8145 ../src/guestfs-actions.pod:8165 ../src/guestfs-actions.pod:8198 ../src/guestfs-actions.pod:8217 ../src/guestfs-actions.pod:8236 ../src/guestfs-actions.pod:8330 ../src/guestfs-actions.pod:8349 ../src/guestfs-actions.pod:8395 ../src/guestfs-actions.pod:8414
6607 msgid ""
6608 "Because of the message protocol, there is a transfer limit of somewhere "
6609 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
6610 msgstr ""
6611
6612 #. type: =head2
6613 #: ../fish/guestfish-actions.pod:676
6614 msgid "checksum"
6615 msgstr ""
6616
6617 #. type: verbatim
6618 #: ../fish/guestfish-actions.pod:678
6619 #, no-wrap
6620 msgid ""
6621 " checksum csumtype path\n"
6622 "\n"
6623 msgstr ""
6624
6625 #. type: textblock
6626 #: ../fish/guestfish-actions.pod:680 ../src/guestfs-actions.pod:1013
6627 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
6628 msgstr ""
6629
6630 #. type: textblock
6631 #: ../fish/guestfish-actions.pod:683 ../src/guestfs-actions.pod:1016
6632 msgid ""
6633 "The type of checksum to compute is given by the C<csumtype> parameter which "
6634 "must have one of the following values:"
6635 msgstr ""
6636
6637 #. type: =item
6638 #: ../fish/guestfish-actions.pod:688 ../src/guestfs-actions.pod:1021
6639 msgid "C<crc>"
6640 msgstr ""
6641
6642 #. type: textblock
6643 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1023
6644 msgid ""
6645 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
6646 "C<cksum> command."
6647 msgstr ""
6648
6649 #. type: =item
6650 #: ../fish/guestfish-actions.pod:693 ../src/guestfs-actions.pod:1026
6651 msgid "C<md5>"
6652 msgstr ""
6653
6654 #. type: textblock
6655 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1028
6656 msgid "Compute the MD5 hash (using the C<md5sum> program)."
6657 msgstr ""
6658
6659 #. type: =item
6660 #: ../fish/guestfish-actions.pod:697 ../src/guestfs-actions.pod:1030
6661 msgid "C<sha1>"
6662 msgstr ""
6663
6664 #. type: textblock
6665 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1032
6666 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
6667 msgstr ""
6668
6669 #. type: =item
6670 #: ../fish/guestfish-actions.pod:701 ../src/guestfs-actions.pod:1034
6671 msgid "C<sha224>"
6672 msgstr ""
6673
6674 #. type: textblock
6675 #: ../fish/guestfish-actions.pod:703 ../src/guestfs-actions.pod:1036
6676 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6677 msgstr ""
6678
6679 #. type: =item
6680 #: ../fish/guestfish-actions.pod:705 ../src/guestfs-actions.pod:1038
6681 msgid "C<sha256>"
6682 msgstr ""
6683
6684 #. type: textblock
6685 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1040
6686 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6687 msgstr ""
6688
6689 #. type: =item
6690 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1042
6691 msgid "C<sha384>"
6692 msgstr ""
6693
6694 #. type: textblock
6695 #: ../fish/guestfish-actions.pod:711 ../src/guestfs-actions.pod:1044
6696 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6697 msgstr ""
6698
6699 #. type: =item
6700 #: ../fish/guestfish-actions.pod:713 ../src/guestfs-actions.pod:1046
6701 msgid "C<sha512>"
6702 msgstr ""
6703
6704 #. type: textblock
6705 #: ../fish/guestfish-actions.pod:715 ../src/guestfs-actions.pod:1048
6706 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6707 msgstr ""
6708
6709 #. type: textblock
6710 #: ../fish/guestfish-actions.pod:719 ../src/guestfs-actions.pod:1052
6711 msgid "The checksum is returned as a printable string."
6712 msgstr ""
6713
6714 #. type: textblock
6715 #: ../fish/guestfish-actions.pod:721
6716 msgid "To get the checksum for a device, use L</checksum-device>."
6717 msgstr ""
6718
6719 #. type: textblock
6720 #: ../fish/guestfish-actions.pod:723
6721 msgid "To get the checksums for many files, use L</checksums-out>."
6722 msgstr ""
6723
6724 #. type: =head2
6725 #: ../fish/guestfish-actions.pod:725
6726 msgid "checksum-device"
6727 msgstr ""
6728
6729 #. type: verbatim
6730 #: ../fish/guestfish-actions.pod:727
6731 #, no-wrap
6732 msgid ""
6733 " checksum-device csumtype device\n"
6734 "\n"
6735 msgstr ""
6736
6737 #. type: textblock
6738 #: ../fish/guestfish-actions.pod:729
6739 msgid ""
6740 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6741 "device named C<device>.  For the types of checksums supported see the "
6742 "L</checksum> command."
6743 msgstr ""
6744
6745 #. type: =head2
6746 #: ../fish/guestfish-actions.pod:733
6747 msgid "checksums-out"
6748 msgstr ""
6749
6750 #. type: verbatim
6751 #: ../fish/guestfish-actions.pod:735
6752 #, no-wrap
6753 msgid ""
6754 " checksums-out csumtype directory (sumsfile|-)\n"
6755 "\n"
6756 msgstr ""
6757
6758 #. type: textblock
6759 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1087
6760 msgid ""
6761 "This command computes the checksums of all regular files in C<directory> and "
6762 "then emits a list of those checksums to the local output file C<sumsfile>."
6763 msgstr ""
6764
6765 #. type: textblock
6766 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1091
6767 msgid ""
6768 "This can be used for verifying the integrity of a virtual machine.  However "
6769 "to be properly secure you should pay attention to the output of the checksum "
6770 "command (it uses the ones from GNU coreutils).  In particular when the "
6771 "filename is not printable, coreutils uses a special backslash syntax.  For "
6772 "more information, see the GNU coreutils info file."
6773 msgstr ""
6774
6775 #. type: =head2
6776 #: ../fish/guestfish-actions.pod:751
6777 msgid "chmod"
6778 msgstr ""
6779
6780 #. type: verbatim
6781 #: ../fish/guestfish-actions.pod:753
6782 #, no-wrap
6783 msgid ""
6784 " chmod mode path\n"
6785 "\n"
6786 msgstr ""
6787
6788 #. type: textblock
6789 #: ../fish/guestfish-actions.pod:755 ../src/guestfs-actions.pod:1110
6790 msgid ""
6791 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6792 "supported."
6793 msgstr ""
6794
6795 #. type: textblock
6796 #: ../fish/guestfish-actions.pod:758 ../src/guestfs-actions.pod:1113
6797 msgid ""
6798 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6799 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6800 "C<700>."
6801 msgstr ""
6802
6803 #. type: textblock
6804 #: ../fish/guestfish-actions.pod:762 ../fish/guestfish-actions.pod:3268 ../fish/guestfish-actions.pod:3407 ../fish/guestfish-actions.pod:3417 ../fish/guestfish-actions.pod:3427 ../src/guestfs-actions.pod:1117 ../src/guestfs-actions.pod:5045 ../src/guestfs-actions.pod:5254 ../src/guestfs-actions.pod:5273 ../src/guestfs-actions.pod:5292
6805 msgid "The mode actually set is affected by the umask."
6806 msgstr ""
6807
6808 #. type: =head2
6809 #: ../fish/guestfish-actions.pod:764
6810 msgid "chown"
6811 msgstr ""
6812
6813 #. type: verbatim
6814 #: ../fish/guestfish-actions.pod:766
6815 #, no-wrap
6816 msgid ""
6817 " chown owner group path\n"
6818 "\n"
6819 msgstr ""
6820
6821 #. type: textblock
6822 #: ../fish/guestfish-actions.pod:768 ../src/guestfs-actions.pod:1131
6823 msgid "Change the file owner to C<owner> and group to C<group>."
6824 msgstr ""
6825
6826 #. type: textblock
6827 #: ../fish/guestfish-actions.pod:770 ../fish/guestfish-actions.pod:2703 ../src/guestfs-actions.pod:1133 ../src/guestfs-actions.pod:4116
6828 msgid ""
6829 "Only numeric uid and gid are supported.  If you want to use names, you will "
6830 "need to locate and parse the password file yourself (Augeas support makes "
6831 "this relatively easy)."
6832 msgstr ""
6833
6834 #. type: =head2
6835 #: ../fish/guestfish-actions.pod:774
6836 msgid "command"
6837 msgstr ""
6838
6839 #. type: verbatim
6840 #: ../fish/guestfish-actions.pod:776
6841 #, no-wrap
6842 msgid ""
6843 " command 'arguments ...'\n"
6844 "\n"
6845 msgstr ""
6846
6847 #. type: textblock
6848 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1147
6849 msgid ""
6850 "This call runs a command from the guest filesystem.  The filesystem must be "
6851 "mounted, and must contain a compatible operating system (ie. something "
6852 "Linux, with the same or compatible processor architecture)."
6853 msgstr ""
6854
6855 #. type: textblock
6856 #: ../fish/guestfish-actions.pod:783
6857 msgid ""
6858 "The single parameter is an argv-style list of arguments.  The first element "
6859 "is the name of the program to run.  Subsequent elements are parameters.  The "
6860 "list must be non-empty (ie. must contain a program name).  Note that the "
6861 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
6862 msgstr ""
6863
6864 #. type: textblock
6865 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1159
6866 msgid "The return value is anything printed to I<stdout> by the command."
6867 msgstr ""
6868
6869 #. type: textblock
6870 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1162
6871 msgid ""
6872 "If the command returns a non-zero exit status, then this function returns an "
6873 "error message.  The error message string is the content of I<stderr> from "
6874 "the command."
6875 msgstr ""
6876
6877 #. type: textblock
6878 #: ../fish/guestfish-actions.pod:797 ../src/guestfs-actions.pod:1166
6879 msgid ""
6880 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
6881 "C</bin>.  If you require a program from another location, you should provide "
6882 "the full path in the first parameter."
6883 msgstr ""
6884
6885 #. type: textblock
6886 #: ../fish/guestfish-actions.pod:802 ../src/guestfs-actions.pod:1171
6887 msgid ""
6888 "Shared libraries and data files required by the program must be available on "
6889 "filesystems which are mounted in the correct places.  It is the caller's "
6890 "responsibility to ensure all filesystems that are needed are mounted at the "
6891 "right locations."
6892 msgstr ""
6893
6894 #. type: =head2
6895 #: ../fish/guestfish-actions.pod:811
6896 msgid "command-lines"
6897 msgstr ""
6898
6899 #. type: verbatim
6900 #: ../fish/guestfish-actions.pod:813
6901 #, no-wrap
6902 msgid ""
6903 " command-lines 'arguments ...'\n"
6904 "\n"
6905 msgstr ""
6906
6907 #. type: textblock
6908 #: ../fish/guestfish-actions.pod:815
6909 msgid "This is the same as L</command>, but splits the result into a list of lines."
6910 msgstr ""
6911
6912 #. type: textblock
6913 #: ../fish/guestfish-actions.pod:818
6914 msgid "See also: L</sh-lines>"
6915 msgstr ""
6916
6917 #. type: =head2
6918 #: ../fish/guestfish-actions.pod:823
6919 msgid "compress-device-out"
6920 msgstr ""
6921
6922 #. type: verbatim
6923 #: ../fish/guestfish-actions.pod:825
6924 #, no-wrap
6925 msgid ""
6926 " compress-device-out ctype device (zdevice|-) [level:..]\n"
6927 "\n"
6928 msgstr ""
6929
6930 #. type: textblock
6931 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1221
6932 msgid ""
6933 "This command compresses C<device> and writes it out to the local file "
6934 "C<zdevice>."
6935 msgstr ""
6936
6937 #. type: textblock
6938 #: ../fish/guestfish-actions.pod:830
6939 msgid ""
6940 "The C<ctype> and optional C<level> parameters have the same meaning as in "
6941 "L</compress-out>."
6942 msgstr ""
6943
6944 #. type: =head2
6945 #: ../fish/guestfish-actions.pod:837
6946 msgid "compress-out"
6947 msgstr ""
6948
6949 #. type: verbatim
6950 #: ../fish/guestfish-actions.pod:839
6951 #, no-wrap
6952 msgid ""
6953 " compress-out ctype file (zfile|-) [level:..]\n"
6954 "\n"
6955 msgstr ""
6956
6957 #. type: textblock
6958 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1273
6959 msgid ""
6960 "This command compresses C<file> and writes it out to the local file "
6961 "C<zfile>."
6962 msgstr ""
6963
6964 #. type: textblock
6965 #: ../fish/guestfish-actions.pod:844 ../src/guestfs-actions.pod:1276
6966 msgid ""
6967 "The compression program used is controlled by the C<ctype> parameter.  "
6968 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
6969 "Some compression types may not be supported by particular builds of "
6970 "libguestfs, in which case you will get an error containing the substring "
6971 "\"not supported\"."
6972 msgstr ""
6973
6974 #. type: textblock
6975 #: ../fish/guestfish-actions.pod:850 ../src/guestfs-actions.pod:1282
6976 msgid ""
6977 "The optional C<level> parameter controls compression level.  The meaning and "
6978 "default for this parameter depends on the compression program being used."
6979 msgstr ""
6980
6981 #. type: =head2
6982 #: ../fish/guestfish-actions.pod:858
6983 msgid "config"
6984 msgstr ""
6985
6986 #. type: verbatim
6987 #: ../fish/guestfish-actions.pod:860
6988 #, no-wrap
6989 msgid ""
6990 " config qemuparam qemuvalue\n"
6991 "\n"
6992 msgstr ""
6993
6994 #. type: textblock
6995 #: ../fish/guestfish-actions.pod:862 ../src/guestfs-actions.pod:1323
6996 msgid ""
6997 "This can be used to add arbitrary qemu command line parameters of the form "
6998 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6999 "setting some parameters which would interfere with parameters that we use."
7000 msgstr ""
7001
7002 #. type: textblock
7003 #: ../fish/guestfish-actions.pod:867 ../src/guestfs-actions.pod:1328
7004 msgid "The first character of C<param> string must be a C<-> (dash)."
7005 msgstr ""
7006
7007 #. type: textblock
7008 #: ../fish/guestfish-actions.pod:869 ../src/guestfs-actions.pod:1330
7009 msgid "C<value> can be NULL."
7010 msgstr ""
7011
7012 #. type: =head2
7013 #: ../fish/guestfish-actions.pod:871
7014 msgid "copy-device-to-device"
7015 msgstr ""
7016
7017 #. type: verbatim
7018 #: ../fish/guestfish-actions.pod:873
7019 #, no-wrap
7020 msgid ""
7021 " copy-device-to-device src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7022 "\n"
7023 msgstr ""
7024
7025 #. type: textblock
7026 #: ../fish/guestfish-actions.pod:875
7027 msgid ""
7028 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, "
7029 "L</copy-file-to-device>, and L</copy-file-to-file> let you copy from a "
7030 "source (device|file) to a destination (device|file)."
7031 msgstr ""
7032
7033 #. type: textblock
7034 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1360
7035 msgid ""
7036 "Partial copies can be made since you can specify optionally the source "
7037 "offset, destination offset and size to copy.  These values are all specified "
7038 "in bytes.  If not given, the offsets both default to zero, and the size "
7039 "defaults to copying as much as possible until we hit the end of the source."
7040 msgstr ""
7041
7042 #. type: textblock
7043 #: ../fish/guestfish-actions.pod:888 ../src/guestfs-actions.pod:1366
7044 msgid ""
7045 "The source and destination may be the same object.  However overlapping "
7046 "regions may not be copied correctly."
7047 msgstr ""
7048
7049 #. type: textblock
7050 #: ../fish/guestfish-actions.pod:891 ../src/guestfs-actions.pod:1369
7051 msgid ""
7052 "If the destination is a file, it is created if required.  If the destination "
7053 "file is not large enough, it is extended."
7054 msgstr ""
7055
7056 #. type: =head2
7057 #: ../fish/guestfish-actions.pod:896
7058 msgid "copy-device-to-file"
7059 msgstr ""
7060
7061 #. type: verbatim
7062 #: ../fish/guestfish-actions.pod:898
7063 #, no-wrap
7064 msgid ""
7065 " copy-device-to-file src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7066 "\n"
7067 msgstr ""
7068
7069 #. type: textblock
7070 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:909 ../fish/guestfish-actions.pod:918
7071 msgid "See L</copy-device-to-device> for a general overview of this call."
7072 msgstr ""
7073
7074 #. type: =head2
7075 #: ../fish/guestfish-actions.pod:905
7076 msgid "copy-file-to-device"
7077 msgstr ""
7078
7079 #. type: verbatim
7080 #: ../fish/guestfish-actions.pod:907
7081 #, no-wrap
7082 msgid ""
7083 " copy-file-to-device src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7084 "\n"
7085 msgstr ""
7086
7087 #. type: =head2
7088 #: ../fish/guestfish-actions.pod:914
7089 msgid "copy-file-to-file"
7090 msgstr ""
7091
7092 #. type: verbatim
7093 #: ../fish/guestfish-actions.pod:916
7094 #, no-wrap
7095 msgid ""
7096 " copy-file-to-file src dest [srcoffset:..] [destoffset:..] [size:..]\n"
7097 "\n"
7098 msgstr ""
7099
7100 #. type: textblock
7101 #: ../fish/guestfish-actions.pod:921
7102 msgid ""
7103 "This is B<not> the function you want for copying files.  This is for copying "
7104 "blocks within existing files.  See L</cp>, L</cp-a> and L</mv> for general "
7105 "file copying and moving functions."
7106 msgstr ""
7107
7108 #. type: =head2
7109 #: ../fish/guestfish-actions.pod:928
7110 msgid "copy-size"
7111 msgstr ""
7112
7113 #. type: verbatim
7114 #: ../fish/guestfish-actions.pod:930
7115 #, no-wrap
7116 msgid ""
7117 " copy-size src dest size\n"
7118 "\n"
7119 msgstr ""
7120
7121 #. type: textblock
7122 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1576
7123 msgid ""
7124 "This command copies exactly C<size> bytes from one source device or file "
7125 "C<src> to another destination device or file C<dest>."
7126 msgstr ""
7127
7128 #. type: textblock
7129 #: ../fish/guestfish-actions.pod:935 ../src/guestfs-actions.pod:1579
7130 msgid ""
7131 "Note this will fail if the source is too short or if the destination is not "
7132 "large enough."
7133 msgstr ""
7134
7135 #. type: textblock
7136 #: ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:973
7137 msgid ""
7138 "I<This function is deprecated.> In new code, use the "
7139 "L</copy_device_to_device> call instead."
7140 msgstr ""
7141
7142 #. type: =head2
7143 #: ../fish/guestfish-actions.pod:945
7144 msgid "cp"
7145 msgstr ""
7146
7147 #. type: verbatim
7148 #: ../fish/guestfish-actions.pod:947
7149 #, no-wrap
7150 msgid ""
7151 " cp src dest\n"
7152 "\n"
7153 msgstr ""
7154
7155 #. type: textblock
7156 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1598
7157 msgid ""
7158 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7159 "destination filename or destination directory."
7160 msgstr ""
7161
7162 #. type: =head2
7163 #: ../fish/guestfish-actions.pod:952
7164 msgid "cp-a"
7165 msgstr ""
7166
7167 #. type: verbatim
7168 #: ../fish/guestfish-actions.pod:954
7169 #, no-wrap
7170 msgid ""
7171 " cp-a src dest\n"
7172 "\n"
7173 msgstr ""
7174
7175 #. type: textblock
7176 #: ../fish/guestfish-actions.pod:956 ../src/guestfs-actions.pod:1612
7177 msgid ""
7178 "This copies a file or directory from C<src> to C<dest> recursively using the "
7179 "C<cp -a> command."
7180 msgstr ""
7181
7182 #. type: =head2
7183 #: ../fish/guestfish-actions.pod:959
7184 msgid "dd"
7185 msgstr ""
7186
7187 #. type: verbatim
7188 #: ../fish/guestfish-actions.pod:961
7189 #, no-wrap
7190 msgid ""
7191 " dd src dest\n"
7192 "\n"
7193 msgstr ""
7194
7195 #. type: textblock
7196 #: ../fish/guestfish-actions.pod:963 ../src/guestfs-actions.pod:1633
7197 msgid ""
7198 "This command copies from one source device or file C<src> to another "
7199 "destination device or file C<dest>.  Normally you would use this to copy to "
7200 "or from a device or partition, for example to duplicate a filesystem."
7201 msgstr ""
7202
7203 #. type: textblock
7204 #: ../fish/guestfish-actions.pod:968
7205 msgid ""
7206 "If the destination is a device, it must be as large or larger than the "
7207 "source file or device, otherwise the copy will fail.  This command cannot do "
7208 "partial copies (see L</copy-device-to-device>)."
7209 msgstr ""
7210
7211 #. type: =head2
7212 #: ../fish/guestfish-actions.pod:980
7213 msgid "df"
7214 msgstr ""
7215
7216 #. type: verbatim
7217 #: ../fish/guestfish-actions.pod:982
7218 #, no-wrap
7219 msgid ""
7220 " df\n"
7221 "\n"
7222 msgstr ""
7223
7224 #. type: textblock
7225 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1652
7226 msgid "This command runs the C<df> command to report disk space used."
7227 msgstr ""
7228
7229 #. type: textblock
7230 #: ../fish/guestfish-actions.pod:986 ../fish/guestfish-actions.pod:997
7231 msgid ""
7232 "This command is mostly useful for interactive sessions.  It is I<not> "
7233 "intended that you try to parse the output string.  Use L</statvfs> from "
7234 "programs."
7235 msgstr ""
7236
7237 #. type: =head2
7238 #: ../fish/guestfish-actions.pod:990
7239 msgid "df-h"
7240 msgstr ""
7241
7242 #. type: verbatim
7243 #: ../fish/guestfish-actions.pod:992
7244 #, no-wrap
7245 msgid ""
7246 " df-h\n"
7247 "\n"
7248 msgstr ""
7249
7250 #. type: textblock
7251 #: ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1668
7252 msgid ""
7253 "This command runs the C<df -h> command to report disk space used in "
7254 "human-readable format."
7255 msgstr ""
7256
7257 #. type: =head2
7258 #: ../fish/guestfish-actions.pod:1001
7259 msgid "dmesg"
7260 msgstr ""
7261
7262 #. type: verbatim
7263 #: ../fish/guestfish-actions.pod:1003
7264 #, no-wrap
7265 msgid ""
7266 " dmesg\n"
7267 "\n"
7268 msgstr ""
7269
7270 #. type: textblock
7271 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1685
7272 msgid ""
7273 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
7274 "This is sometimes useful for extended debugging of problems."
7275 msgstr ""
7276
7277 #. type: textblock
7278 #: ../fish/guestfish-actions.pod:1009
7279 msgid ""
7280 "Another way to get the same information is to enable verbose messages with "
7281 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
7282 "before running the program."
7283 msgstr ""
7284
7285 #. type: =head2
7286 #: ../fish/guestfish-actions.pod:1014
7287 msgid "download"
7288 msgstr ""
7289
7290 #. type: verbatim
7291 #: ../fish/guestfish-actions.pod:1016
7292 #, no-wrap
7293 msgid ""
7294 " download remotefilename (filename|-)\n"
7295 "\n"
7296 msgstr ""
7297
7298 #. type: textblock
7299 #: ../fish/guestfish-actions.pod:1018 ../fish/guestfish-actions.pod:1031 ../src/guestfs-actions.pod:1706 ../src/guestfs-actions.pod:1731
7300 msgid ""
7301 "Download file C<remotefilename> and save it as C<filename> on the local "
7302 "machine."
7303 msgstr ""
7304
7305 #. type: textblock
7306 #: ../fish/guestfish-actions.pod:1021 ../fish/guestfish-actions.pod:5027 ../src/guestfs-actions.pod:1709 ../src/guestfs-actions.pod:7715
7307 msgid "C<filename> can also be a named pipe."
7308 msgstr ""
7309
7310 #. type: textblock
7311 #: ../fish/guestfish-actions.pod:1023
7312 msgid "See also L</upload>, L</cat>."
7313 msgstr ""
7314
7315 #. type: =head2
7316 #: ../fish/guestfish-actions.pod:1027
7317 msgid "download-offset"
7318 msgstr ""
7319
7320 #. type: verbatim
7321 #: ../fish/guestfish-actions.pod:1029
7322 #, no-wrap
7323 msgid ""
7324 " download-offset remotefilename (filename|-) offset size\n"
7325 "\n"
7326 msgstr ""
7327
7328 #. type: textblock
7329 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1734
7330 msgid ""
7331 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
7332 "region must be within the file or device)."
7333 msgstr ""
7334
7335 #. type: textblock
7336 #: ../fish/guestfish-actions.pod:1037
7337 msgid ""
7338 "Note that there is no limit on the amount of data that can be downloaded "
7339 "with this call, unlike with L</pread>, and this call always reads the full "
7340 "amount unless an error occurs."
7341 msgstr ""
7342
7343 #. type: textblock
7344 #: ../fish/guestfish-actions.pod:1042
7345 msgid "See also L</download>, L</pread>."
7346 msgstr ""
7347
7348 #. type: =head2
7349 #: ../fish/guestfish-actions.pod:1046
7350 msgid "drop-caches"
7351 msgstr ""
7352
7353 #. type: verbatim
7354 #: ../fish/guestfish-actions.pod:1048
7355 #, no-wrap
7356 msgid ""
7357 " drop-caches whattodrop\n"
7358 "\n"
7359 msgstr ""
7360
7361 #. type: textblock
7362 #: ../fish/guestfish-actions.pod:1050 ../src/guestfs-actions.pod:1759
7363 msgid ""
7364 "This instructs the guest kernel to drop its page cache, and/or dentries and "
7365 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
7366 "to drop, see L<http://linux-mm.org/Drop_Caches>"
7367 msgstr ""
7368
7369 #. type: textblock
7370 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1764
7371 msgid "Setting C<whattodrop> to 3 should drop everything."
7372 msgstr ""
7373
7374 #. type: textblock
7375 #: ../fish/guestfish-actions.pod:1057 ../src/guestfs-actions.pod:1766
7376 msgid ""
7377 "This automatically calls L<sync(2)> before the operation, so that the "
7378 "maximum guest memory is freed."
7379 msgstr ""
7380
7381 #. type: =head2
7382 #: ../fish/guestfish-actions.pod:1060
7383 msgid "du"
7384 msgstr ""
7385
7386 #. type: verbatim
7387 #: ../fish/guestfish-actions.pod:1062
7388 #, no-wrap
7389 msgid ""
7390 " du path\n"
7391 "\n"
7392 msgstr ""
7393
7394 #. type: textblock
7395 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1779
7396 msgid ""
7397 "This command runs the C<du -s> command to estimate file space usage for "
7398 "C<path>."
7399 msgstr ""
7400
7401 #. type: textblock
7402 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1782
7403 msgid ""
7404 "C<path> can be a file or a directory.  If C<path> is a directory then the "
7405 "estimate includes the contents of the directory and all subdirectories "
7406 "(recursively)."
7407 msgstr ""
7408
7409 #. type: textblock
7410 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1786
7411 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
7412 msgstr ""
7413
7414 #. type: =head2
7415 #: ../fish/guestfish-actions.pod:1074
7416 msgid "e2fsck-f"
7417 msgstr ""
7418
7419 #. type: verbatim
7420 #: ../fish/guestfish-actions.pod:1076
7421 #, no-wrap
7422 msgid ""
7423 " e2fsck-f device\n"
7424 "\n"
7425 msgstr ""
7426
7427 #. type: textblock
7428 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1804
7429 msgid ""
7430 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
7431 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
7432 "clean (I<-f>)."
7433 msgstr ""
7434
7435 #. type: textblock
7436 #: ../fish/guestfish-actions.pod:1082
7437 msgid ""
7438 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
7439 "should use L</fsck>."
7440 msgstr ""
7441
7442 #. type: =head2
7443 #: ../fish/guestfish-actions.pod:1085
7444 msgid "echo-daemon"
7445 msgstr ""
7446
7447 #. type: verbatim
7448 #: ../fish/guestfish-actions.pod:1087
7449 #, no-wrap
7450 msgid ""
7451 " echo-daemon 'words ...'\n"
7452 "\n"
7453 msgstr ""
7454
7455 #. type: textblock
7456 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1821
7457 msgid ""
7458 "This command concatenates the list of C<words> passed with single spaces "
7459 "between them and returns the resulting string."
7460 msgstr ""
7461
7462 #. type: textblock
7463 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1824
7464 msgid "You can use this command to test the connection through to the daemon."
7465 msgstr ""
7466
7467 #. type: textblock
7468 #: ../fish/guestfish-actions.pod:1094
7469 msgid "See also L</ping-daemon>."
7470 msgstr ""
7471
7472 #. type: =head2
7473 #: ../fish/guestfish-actions.pod:1096
7474 msgid "egrep"
7475 msgstr ""
7476
7477 #. type: verbatim
7478 #: ../fish/guestfish-actions.pod:1098
7479 #, no-wrap
7480 msgid ""
7481 " egrep regex path\n"
7482 "\n"
7483 msgstr ""
7484
7485 #. type: textblock
7486 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1840
7487 msgid "This calls the external C<egrep> program and returns the matching lines."
7488 msgstr ""
7489
7490 #. type: =head2
7491 #: ../fish/guestfish-actions.pod:1106
7492 msgid "egrepi"
7493 msgstr ""
7494
7495 #. type: verbatim
7496 #: ../fish/guestfish-actions.pod:1108
7497 #, no-wrap
7498 msgid ""
7499 " egrepi regex path\n"
7500 "\n"
7501 msgstr ""
7502
7503 #. type: textblock
7504 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1859
7505 msgid "This calls the external C<egrep -i> program and returns the matching lines."
7506 msgstr ""
7507
7508 #. type: =head2
7509 #: ../fish/guestfish-actions.pod:1116
7510 msgid "equal"
7511 msgstr ""
7512
7513 #. type: verbatim
7514 #: ../fish/guestfish-actions.pod:1118
7515 #, no-wrap
7516 msgid ""
7517 " equal file1 file2\n"
7518 "\n"
7519 msgstr ""
7520
7521 #. type: textblock
7522 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1878
7523 msgid ""
7524 "This compares the two files C<file1> and C<file2> and returns true if their "
7525 "content is exactly equal, or false otherwise."
7526 msgstr ""
7527
7528 #. type: textblock
7529 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1881
7530 msgid "The external L<cmp(1)> program is used for the comparison."
7531 msgstr ""
7532
7533 #. type: =head2
7534 #: ../fish/guestfish-actions.pod:1125
7535 msgid "exists"
7536 msgstr ""
7537
7538 #. type: verbatim
7539 #: ../fish/guestfish-actions.pod:1127
7540 #, no-wrap
7541 msgid ""
7542 " exists path\n"
7543 "\n"
7544 msgstr ""
7545
7546 #. type: textblock
7547 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1893
7548 msgid ""
7549 "This returns C<true> if and only if there is a file, directory (or anything) "
7550 "with the given C<path> name."
7551 msgstr ""
7552
7553 #. type: textblock
7554 #: ../fish/guestfish-actions.pod:1132
7555 msgid "See also L</is-file>, L</is-dir>, L</stat>."
7556 msgstr ""
7557
7558 #. type: =head2
7559 #: ../fish/guestfish-actions.pod:1134
7560 msgid "fallocate"
7561 msgstr ""
7562
7563 #. type: verbatim
7564 #: ../fish/guestfish-actions.pod:1136
7565 #, no-wrap
7566 msgid ""
7567 " fallocate path len\n"
7568 "\n"
7569 msgstr ""
7570
7571 #. type: textblock
7572 #: ../fish/guestfish-actions.pod:1138 ../fish/guestfish-actions.pod:1157 ../src/guestfs-actions.pod:1916 ../src/guestfs-actions.pod:1935
7573 msgid ""
7574 "This command preallocates a file (containing zero bytes) named C<path> of "
7575 "size C<len> bytes.  If the file exists already, it is overwritten."
7576 msgstr ""
7577
7578 #. type: textblock
7579 #: ../fish/guestfish-actions.pod:1142 ../src/guestfs-actions.pod:1920
7580 msgid ""
7581 "Do not confuse this with the guestfish-specific C<alloc> command which "
7582 "allocates a file in the host and attaches it as a device."
7583 msgstr ""
7584
7585 #. type: textblock
7586 #: ../fish/guestfish-actions.pod:1146
7587 msgid ""
7588 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
7589 "instead."
7590 msgstr ""
7591
7592 #. type: =head2
7593 #: ../fish/guestfish-actions.pod:1153
7594 msgid "fallocate64"
7595 msgstr ""
7596
7597 #. type: verbatim
7598 #: ../fish/guestfish-actions.pod:1155
7599 #, no-wrap
7600 msgid ""
7601 " fallocate64 path len\n"
7602 "\n"
7603 msgstr ""
7604
7605 #. type: textblock
7606 #: ../fish/guestfish-actions.pod:1161
7607 msgid ""
7608 "Note that this call allocates disk blocks for the file.  To create a sparse "
7609 "file use L</truncate-size> instead."
7610 msgstr ""
7611
7612 #. type: textblock
7613 #: ../fish/guestfish-actions.pod:1164
7614 msgid ""
7615 "The deprecated call L</fallocate> does the same, but owing to an oversight "
7616 "it only allowed 30 bit lengths to be specified, effectively limiting the "
7617 "maximum size of files created through that call to 1GB."
7618 msgstr ""
7619
7620 #. type: textblock
7621 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1947
7622 msgid ""
7623 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
7624 "commands which create a file in the host and attach it as a device."
7625 msgstr ""
7626
7627 #. type: =head2
7628 #: ../fish/guestfish-actions.pod:1173
7629 msgid "fgrep"
7630 msgstr ""
7631
7632 #. type: verbatim
7633 #: ../fish/guestfish-actions.pod:1175
7634 #, no-wrap
7635 msgid ""
7636 " fgrep pattern path\n"
7637 "\n"
7638 msgstr ""
7639
7640 #. type: textblock
7641 #: ../fish/guestfish-actions.pod:1177 ../src/guestfs-actions.pod:1962
7642 msgid "This calls the external C<fgrep> program and returns the matching lines."
7643 msgstr ""
7644
7645 #. type: =head2
7646 #: ../fish/guestfish-actions.pod:1183
7647 msgid "fgrepi"
7648 msgstr ""
7649
7650 #. type: verbatim
7651 #: ../fish/guestfish-actions.pod:1185
7652 #, no-wrap
7653 msgid ""
7654 " fgrepi pattern path\n"
7655 "\n"
7656 msgstr ""
7657
7658 #. type: textblock
7659 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1981
7660 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
7661 msgstr ""
7662
7663 #. type: =head2
7664 #: ../fish/guestfish-actions.pod:1193
7665 msgid "file"
7666 msgstr ""
7667
7668 #. type: verbatim
7669 #: ../fish/guestfish-actions.pod:1195
7670 #, no-wrap
7671 msgid ""
7672 " file path\n"
7673 "\n"
7674 msgstr ""
7675
7676 #. type: textblock
7677 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1999
7678 msgid ""
7679 "This call uses the standard L<file(1)> command to determine the type or "
7680 "contents of the file."
7681 msgstr ""
7682
7683 #. type: textblock
7684 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:2002
7685 msgid ""
7686 "This call will also transparently look inside various types of compressed "
7687 "file."
7688 msgstr ""
7689
7690 #. type: textblock
7691 #: ../fish/guestfish-actions.pod:1203 ../src/guestfs-actions.pod:2005
7692 msgid ""
7693 "The exact command which runs is C<file -zb path>.  Note in particular that "
7694 "the filename is not prepended to the output (the I<-b> option)."
7695 msgstr ""
7696
7697 #. type: textblock
7698 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:2009
7699 msgid ""
7700 "The output depends on the output of the underlying L<file(1)> command and it "
7701 "can change in future in ways beyond our control.  In other words, the output "
7702 "is not guaranteed by the ABI."
7703 msgstr ""
7704
7705 #. type: textblock
7706 #: ../fish/guestfish-actions.pod:1211
7707 msgid ""
7708 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
7709 "(etc), L</is-zero>."
7710 msgstr ""
7711
7712 #. type: =head2
7713 #: ../fish/guestfish-actions.pod:1214
7714 msgid "file-architecture"
7715 msgstr ""
7716
7717 #. type: verbatim
7718 #: ../fish/guestfish-actions.pod:1216
7719 #, no-wrap
7720 msgid ""
7721 " file-architecture filename\n"
7722 "\n"
7723 msgstr ""
7724
7725 #. type: textblock
7726 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2027
7727 msgid ""
7728 "This detects the architecture of the binary C<filename>, and returns it if "
7729 "known."
7730 msgstr ""
7731
7732 #. type: textblock
7733 #: ../fish/guestfish-actions.pod:1221 ../src/guestfs-actions.pod:2030
7734 msgid "Currently defined architectures are:"
7735 msgstr ""
7736
7737 #. type: =item
7738 #: ../fish/guestfish-actions.pod:1225 ../src/guestfs-actions.pod:2034
7739 msgid "\"i386\""
7740 msgstr ""
7741
7742 #. type: textblock
7743 #: ../fish/guestfish-actions.pod:1227 ../src/guestfs-actions.pod:2036
7744 msgid ""
7745 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7746 "irrespective of the precise processor requirements of the binary."
7747 msgstr ""
7748
7749 #. type: =item
7750 #: ../fish/guestfish-actions.pod:1230 ../src/guestfs-actions.pod:2039
7751 msgid "\"x86_64\""
7752 msgstr ""
7753
7754 #. type: textblock
7755 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:2041
7756 msgid "64 bit x86-64."
7757 msgstr ""
7758
7759 #. type: =item
7760 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2043
7761 msgid "\"sparc\""
7762 msgstr ""
7763
7764 #. type: textblock
7765 #: ../fish/guestfish-actions.pod:1236 ../src/guestfs-actions.pod:2045
7766 msgid "32 bit SPARC."
7767 msgstr ""
7768
7769 #. type: =item
7770 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2047
7771 msgid "\"sparc64\""
7772 msgstr ""
7773
7774 #. type: textblock
7775 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:2049
7776 msgid "64 bit SPARC V9 and above."
7777 msgstr ""
7778
7779 #. type: =item
7780 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:2051
7781 msgid "\"ia64\""
7782 msgstr ""
7783
7784 #. type: textblock
7785 #: ../fish/guestfish-actions.pod:1244 ../src/guestfs-actions.pod:2053
7786 msgid "Intel Itanium."
7787 msgstr ""
7788
7789 #. type: =item
7790 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:2055
7791 msgid "\"ppc\""
7792 msgstr ""
7793
7794 #. type: textblock
7795 #: ../fish/guestfish-actions.pod:1248 ../src/guestfs-actions.pod:2057
7796 msgid "32 bit Power PC."
7797 msgstr ""
7798
7799 #. type: =item
7800 #: ../fish/guestfish-actions.pod:1250 ../src/guestfs-actions.pod:2059
7801 msgid "\"ppc64\""
7802 msgstr ""
7803
7804 #. type: textblock
7805 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:2061
7806 msgid "64 bit Power PC."
7807 msgstr ""
7808
7809 #. type: textblock
7810 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2065
7811 msgid "Libguestfs may return other architecture strings in future."
7812 msgstr ""
7813
7814 #. type: textblock
7815 #: ../fish/guestfish-actions.pod:1258 ../src/guestfs-actions.pod:2067
7816 msgid "The function works on at least the following types of files:"
7817 msgstr ""
7818
7819 #. type: textblock
7820 #: ../fish/guestfish-actions.pod:1264 ../src/guestfs-actions.pod:2073
7821 msgid "many types of Un*x and Linux binary"
7822 msgstr ""
7823
7824 #. type: textblock
7825 #: ../fish/guestfish-actions.pod:1268 ../src/guestfs-actions.pod:2077
7826 msgid "many types of Un*x and Linux shared library"
7827 msgstr ""
7828
7829 #. type: textblock
7830 #: ../fish/guestfish-actions.pod:1272 ../src/guestfs-actions.pod:2081
7831 msgid "Windows Win32 and Win64 binaries"
7832 msgstr ""
7833
7834 #. type: textblock
7835 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:2085
7836 msgid "Windows Win32 and Win64 DLLs"
7837 msgstr ""
7838
7839 #. type: textblock
7840 #: ../fish/guestfish-actions.pod:1278 ../src/guestfs-actions.pod:2087
7841 msgid "Win32 binaries and DLLs return C<i386>."
7842 msgstr ""
7843
7844 #. type: textblock
7845 #: ../fish/guestfish-actions.pod:1280 ../src/guestfs-actions.pod:2089
7846 msgid "Win64 binaries and DLLs return C<x86_64>."
7847 msgstr ""
7848
7849 #. type: textblock
7850 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:2093
7851 msgid "Linux kernel modules"
7852 msgstr ""
7853
7854 #. type: textblock
7855 #: ../fish/guestfish-actions.pod:1288 ../src/guestfs-actions.pod:2097
7856 msgid "Linux new-style initrd images"
7857 msgstr ""
7858
7859 #. type: textblock
7860 #: ../fish/guestfish-actions.pod:1292 ../src/guestfs-actions.pod:2101
7861 msgid "some non-x86 Linux vmlinuz kernels"
7862 msgstr ""
7863
7864 #. type: textblock
7865 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:2105
7866 msgid "What it can't do currently:"
7867 msgstr ""
7868
7869 #. type: textblock
7870 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:2111
7871 msgid "static libraries (libfoo.a)"
7872 msgstr ""
7873
7874 #. type: textblock
7875 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:2115
7876 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7877 msgstr ""
7878
7879 #. type: textblock
7880 #: ../fish/guestfish-actions.pod:1310 ../src/guestfs-actions.pod:2119
7881 msgid "x86 Linux vmlinuz kernels"
7882 msgstr ""
7883
7884 #. type: textblock
7885 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:2121
7886 msgid ""
7887 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7888 "compressed code, and are horribly hard to unpack.  If you want to find the "
7889 "architecture of a kernel, use the architecture of the associated initrd or "
7890 "kernel module(s) instead."
7891 msgstr ""
7892
7893 #. type: =head2
7894 #: ../fish/guestfish-actions.pod:1319
7895 msgid "filesize"
7896 msgstr ""
7897
7898 #. type: verbatim
7899 #: ../fish/guestfish-actions.pod:1321
7900 #, no-wrap
7901 msgid ""
7902 " filesize file\n"
7903 "\n"
7904 msgstr ""
7905
7906 #. type: textblock
7907 #: ../fish/guestfish-actions.pod:1323 ../src/guestfs-actions.pod:2139
7908 msgid "This command returns the size of C<file> in bytes."
7909 msgstr ""
7910
7911 #. type: textblock
7912 #: ../fish/guestfish-actions.pod:1325
7913 msgid ""
7914 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
7915 "L</is-file> etc.  To get the size of block devices, use "
7916 "L</blockdev-getsize64>."
7917 msgstr ""
7918
7919 #. type: =head2
7920 #: ../fish/guestfish-actions.pod:1329
7921 msgid "fill"
7922 msgstr ""
7923
7924 #. type: verbatim
7925 #: ../fish/guestfish-actions.pod:1331
7926 #, no-wrap
7927 msgid ""
7928 " fill c len path\n"
7929 "\n"
7930 msgstr ""
7931
7932 #. type: textblock
7933 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2157
7934 msgid ""
7935 "This command creates a new file called C<path>.  The initial content of the "
7936 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
7937 "C<[0..255]>."
7938 msgstr ""
7939
7940 #. type: textblock
7941 #: ../fish/guestfish-actions.pod:1337
7942 msgid ""
7943 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7944 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
7945 "L</fill-pattern>."
7946 msgstr ""
7947
7948 #. type: =head2
7949 #: ../fish/guestfish-actions.pod:1342
7950 msgid "fill-pattern"
7951 msgstr ""
7952
7953 #. type: verbatim
7954 #: ../fish/guestfish-actions.pod:1344
7955 #, no-wrap
7956 msgid ""
7957 " fill-pattern pattern len path\n"
7958 "\n"
7959 msgstr ""
7960
7961 #. type: textblock
7962 #: ../fish/guestfish-actions.pod:1346
7963 msgid ""
7964 "This function is like L</fill> except that it creates a new file of length "
7965 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
7966 "is truncated if necessary to ensure the length of the file is exactly C<len> "
7967 "bytes."
7968 msgstr ""
7969
7970 #. type: =head2
7971 #: ../fish/guestfish-actions.pod:1351
7972 msgid "find"
7973 msgstr ""
7974
7975 #. type: verbatim
7976 #: ../fish/guestfish-actions.pod:1353
7977 #, no-wrap
7978 msgid ""
7979 " find directory\n"
7980 "\n"
7981 msgstr ""
7982
7983 #. type: textblock
7984 #: ../fish/guestfish-actions.pod:1355 ../src/guestfs-actions.pod:2203
7985 msgid ""
7986 "This command lists out all files and directories, recursively, starting at "
7987 "C<directory>.  It is essentially equivalent to running the shell command "
7988 "C<find directory -print> but some post-processing happens on the output, "
7989 "described below."
7990 msgstr ""
7991
7992 #. type: textblock
7993 #: ../fish/guestfish-actions.pod:1360 ../src/guestfs-actions.pod:2208
7994 msgid ""
7995 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7996 "structure was:"
7997 msgstr ""
7998
7999 #. type: verbatim
8000 #: ../fish/guestfish-actions.pod:1363 ../src/guestfs-actions.pod:2211
8001 #, no-wrap
8002 msgid ""
8003 " /tmp/a\n"
8004 " /tmp/b\n"
8005 " /tmp/c/d\n"
8006 "\n"
8007 msgstr ""
8008
8009 #. type: textblock
8010 #: ../fish/guestfish-actions.pod:1367
8011 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8012 msgstr ""
8013
8014 #. type: verbatim
8015 #: ../fish/guestfish-actions.pod:1370 ../src/guestfs-actions.pod:2218
8016 #, no-wrap
8017 msgid ""
8018 " a\n"
8019 " b\n"
8020 " c\n"
8021 " c/d\n"
8022 "\n"
8023 msgstr ""
8024
8025 #. type: textblock
8026 #: ../fish/guestfish-actions.pod:1375 ../src/guestfs-actions.pod:2223
8027 msgid "If C<directory> is not a directory, then this command returns an error."
8028 msgstr ""
8029
8030 #. type: textblock
8031 #: ../fish/guestfish-actions.pod:1378 ../src/guestfs-actions.pod:2226
8032 msgid "The returned list is sorted."
8033 msgstr ""
8034
8035 #. type: textblock
8036 #: ../fish/guestfish-actions.pod:1380
8037 msgid "See also L</find0>."
8038 msgstr ""
8039
8040 #. type: =head2
8041 #: ../fish/guestfish-actions.pod:1385
8042 msgid "find0"
8043 msgstr ""
8044
8045 #. type: verbatim
8046 #: ../fish/guestfish-actions.pod:1387
8047 #, no-wrap
8048 msgid ""
8049 " find0 directory (files|-)\n"
8050 "\n"
8051 msgstr ""
8052
8053 #. type: textblock
8054 #: ../fish/guestfish-actions.pod:1389 ../src/guestfs-actions.pod:2246
8055 msgid ""
8056 "This command lists out all files and directories, recursively, starting at "
8057 "C<directory>, placing the resulting list in the external file called "
8058 "C<files>."
8059 msgstr ""
8060
8061 #. type: textblock
8062 #: ../fish/guestfish-actions.pod:1393
8063 msgid "This command works the same way as L</find> with the following exceptions:"
8064 msgstr ""
8065
8066 #. type: textblock
8067 #: ../fish/guestfish-actions.pod:1400 ../src/guestfs-actions.pod:2257
8068 msgid "The resulting list is written to an external file."
8069 msgstr ""
8070
8071 #. type: textblock
8072 #: ../fish/guestfish-actions.pod:1404 ../src/guestfs-actions.pod:2261
8073 msgid ""
8074 "Items (filenames) in the result are separated by C<\\0> characters.  See "
8075 "L<find(1)> option I<-print0>."
8076 msgstr ""
8077
8078 #. type: textblock
8079 #: ../fish/guestfish-actions.pod:1409 ../src/guestfs-actions.pod:2266
8080 msgid "This command is not limited in the number of names that it can return."
8081 msgstr ""
8082
8083 #. type: textblock
8084 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2271
8085 msgid "The result list is not sorted."
8086 msgstr ""
8087
8088 #. type: =head2
8089 #: ../fish/guestfish-actions.pod:1420
8090 msgid "findfs-label"
8091 msgstr ""
8092
8093 #. type: verbatim
8094 #: ../fish/guestfish-actions.pod:1422
8095 #, no-wrap
8096 msgid ""
8097 " findfs-label label\n"
8098 "\n"
8099 msgstr ""
8100
8101 #. type: textblock
8102 #: ../fish/guestfish-actions.pod:1424 ../src/guestfs-actions.pod:2285
8103 msgid ""
8104 "This command searches the filesystems and returns the one which has the "
8105 "given label.  An error is returned if no such filesystem can be found."
8106 msgstr ""
8107
8108 #. type: textblock
8109 #: ../fish/guestfish-actions.pod:1428
8110 msgid "To find the label of a filesystem, use L</vfs-label>."
8111 msgstr ""
8112
8113 #. type: =head2
8114 #: ../fish/guestfish-actions.pod:1430
8115 msgid "findfs-uuid"
8116 msgstr ""
8117
8118 #. type: verbatim
8119 #: ../fish/guestfish-actions.pod:1432
8120 #, no-wrap
8121 msgid ""
8122 " findfs-uuid uuid\n"
8123 "\n"
8124 msgstr ""
8125
8126 #. type: textblock
8127 #: ../fish/guestfish-actions.pod:1434 ../src/guestfs-actions.pod:2302
8128 msgid ""
8129 "This command searches the filesystems and returns the one which has the "
8130 "given UUID.  An error is returned if no such filesystem can be found."
8131 msgstr ""
8132
8133 #. type: textblock
8134 #: ../fish/guestfish-actions.pod:1438
8135 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8136 msgstr ""
8137
8138 #. type: =head2
8139 #: ../fish/guestfish-actions.pod:1440
8140 msgid "fsck"
8141 msgstr ""
8142
8143 #. type: verbatim
8144 #: ../fish/guestfish-actions.pod:1442
8145 #, no-wrap
8146 msgid ""
8147 " fsck fstype device\n"
8148 "\n"
8149 msgstr ""
8150
8151 #. type: textblock
8152 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2320
8153 msgid ""
8154 "This runs the filesystem checker (fsck) on C<device> which should have "
8155 "filesystem type C<fstype>."
8156 msgstr ""
8157
8158 #. type: textblock
8159 #: ../fish/guestfish-actions.pod:1447 ../src/guestfs-actions.pod:2323
8160 msgid ""
8161 "The returned integer is the status.  See L<fsck(8)> for the list of status "
8162 "codes from C<fsck>."
8163 msgstr ""
8164
8165 #. type: textblock
8166 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2332
8167 msgid "Multiple status codes can be summed together."
8168 msgstr ""
8169
8170 #. type: textblock
8171 #: ../fish/guestfish-actions.pod:1460 ../src/guestfs-actions.pod:2336
8172 msgid ""
8173 "A non-zero return code can mean \"success\", for example if errors have been "
8174 "corrected on the filesystem."
8175 msgstr ""
8176
8177 #. type: textblock
8178 #: ../fish/guestfish-actions.pod:1465 ../src/guestfs-actions.pod:2341
8179 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8180 msgstr ""
8181
8182 #. type: textblock
8183 #: ../fish/guestfish-actions.pod:1470 ../src/guestfs-actions.pod:2346
8184 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8185 msgstr ""
8186
8187 #. type: =head2
8188 #: ../fish/guestfish-actions.pod:1472
8189 msgid "get-append"
8190 msgstr ""
8191
8192 #. type: verbatim
8193 #: ../fish/guestfish-actions.pod:1474
8194 #, no-wrap
8195 msgid ""
8196 " get-append\n"
8197 "\n"
8198 msgstr ""
8199
8200 #. type: textblock
8201 #: ../fish/guestfish-actions.pod:1476 ../src/guestfs-actions.pod:2357
8202 msgid ""
8203 "Return the additional kernel options which are added to the guest kernel "
8204 "command line."
8205 msgstr ""
8206
8207 #. type: textblock
8208 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2360
8209 msgid "If C<NULL> then no options are added."
8210 msgstr ""
8211
8212 #. type: =head2
8213 #: ../fish/guestfish-actions.pod:1481
8214 msgid "get-attach-method"
8215 msgstr ""
8216
8217 #. type: verbatim
8218 #: ../fish/guestfish-actions.pod:1483
8219 #, no-wrap
8220 msgid ""
8221 " get-attach-method\n"
8222 "\n"
8223 msgstr ""
8224
8225 #. type: textblock
8226 #: ../fish/guestfish-actions.pod:1485
8227 msgid "Return the current attach method.  See L</set-attach-method>."
8228 msgstr ""
8229
8230 #. type: =head2
8231 #: ../fish/guestfish-actions.pod:1487
8232 msgid "get-autosync"
8233 msgstr ""
8234
8235 #. type: verbatim
8236 #: ../fish/guestfish-actions.pod:1489
8237 #, no-wrap
8238 msgid ""
8239 " get-autosync\n"
8240 "\n"
8241 msgstr ""
8242
8243 #. type: textblock
8244 #: ../fish/guestfish-actions.pod:1491 ../src/guestfs-actions.pod:2385
8245 msgid "Get the autosync flag."
8246 msgstr ""
8247
8248 #. type: =head2
8249 #: ../fish/guestfish-actions.pod:1493
8250 msgid "get-direct"
8251 msgstr ""
8252
8253 #. type: verbatim
8254 #: ../fish/guestfish-actions.pod:1495
8255 #, no-wrap
8256 msgid ""
8257 " get-direct\n"
8258 "\n"
8259 msgstr ""
8260
8261 #. type: textblock
8262 #: ../fish/guestfish-actions.pod:1497 ../src/guestfs-actions.pod:2396
8263 msgid "Return the direct appliance mode flag."
8264 msgstr ""
8265
8266 #. type: =head2
8267 #: ../fish/guestfish-actions.pod:1499
8268 msgid "get-e2label"
8269 msgstr ""
8270
8271 #. type: verbatim
8272 #: ../fish/guestfish-actions.pod:1501
8273 #, no-wrap
8274 msgid ""
8275 " get-e2label device\n"
8276 "\n"
8277 msgstr ""
8278
8279 #. type: textblock
8280 #: ../fish/guestfish-actions.pod:1503 ../src/guestfs-actions.pod:2415
8281 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
8282 msgstr ""
8283
8284 #. type: textblock
8285 #: ../fish/guestfish-actions.pod:1506
8286 msgid ""
8287 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
8288 "instead."
8289 msgstr ""
8290
8291 #. type: =head2
8292 #: ../fish/guestfish-actions.pod:1513
8293 msgid "get-e2uuid"
8294 msgstr ""
8295
8296 #. type: verbatim
8297 #: ../fish/guestfish-actions.pod:1515
8298 #, no-wrap
8299 msgid ""
8300 " get-e2uuid device\n"
8301 "\n"
8302 msgstr ""
8303
8304 #. type: textblock
8305 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2436
8306 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
8307 msgstr ""
8308
8309 #. type: textblock
8310 #: ../fish/guestfish-actions.pod:1520
8311 msgid ""
8312 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
8313 "instead."
8314 msgstr ""
8315
8316 #. type: =head2
8317 #: ../fish/guestfish-actions.pod:1527
8318 msgid "get-memsize"
8319 msgstr ""
8320
8321 #. type: verbatim
8322 #: ../fish/guestfish-actions.pod:1529
8323 #, no-wrap
8324 msgid ""
8325 " get-memsize\n"
8326 "\n"
8327 msgstr ""
8328
8329 #. type: textblock
8330 #: ../fish/guestfish-actions.pod:1531 ../src/guestfs-actions.pod:2449
8331 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
8332 msgstr ""
8333
8334 #. type: textblock
8335 #: ../fish/guestfish-actions.pod:1534
8336 msgid ""
8337 "If L</set-memsize> was not called on this handle, and if "
8338 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
8339 "value for memsize."
8340 msgstr ""
8341
8342 #. type: textblock
8343 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:1595 ../fish/guestfish-actions.pod:4375 ../fish/guestfish-actions.pod:4477 ../src/guestfs-actions.pod:2456 ../src/guestfs-actions.pod:2548 ../src/guestfs-actions.pod:6760 ../src/guestfs-actions.pod:6886
8344 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
8345 msgstr ""
8346
8347 #. type: =head2
8348 #: ../fish/guestfish-actions.pod:1541
8349 msgid "get-network"
8350 msgstr ""
8351
8352 #. type: verbatim
8353 #: ../fish/guestfish-actions.pod:1543
8354 #, no-wrap
8355 msgid ""
8356 " get-network\n"
8357 "\n"
8358 msgstr ""
8359
8360 #. type: textblock
8361 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2468
8362 msgid "This returns the enable network flag."
8363 msgstr ""
8364
8365 #. type: =head2
8366 #: ../fish/guestfish-actions.pod:1547
8367 msgid "get-path"
8368 msgstr ""
8369
8370 #. type: verbatim
8371 #: ../fish/guestfish-actions.pod:1549
8372 #, no-wrap
8373 msgid ""
8374 " get-path\n"
8375 "\n"
8376 msgstr ""
8377
8378 #. type: textblock
8379 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2479
8380 msgid "Return the current search path."
8381 msgstr ""
8382
8383 #. type: textblock
8384 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2481
8385 msgid ""
8386 "This is always non-NULL.  If it wasn't set already, then this will return "
8387 "the default path."
8388 msgstr ""
8389
8390 #. type: =head2
8391 #: ../fish/guestfish-actions.pod:1556
8392 msgid "get-pgroup"
8393 msgstr ""
8394
8395 #. type: verbatim
8396 #: ../fish/guestfish-actions.pod:1558
8397 #, no-wrap
8398 msgid ""
8399 " get-pgroup\n"
8400 "\n"
8401 msgstr ""
8402
8403 #. type: textblock
8404 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2494
8405 msgid "This returns the process group flag."
8406 msgstr ""
8407
8408 #. type: =head2
8409 #: ../fish/guestfish-actions.pod:1562
8410 msgid "get-pid"
8411 msgstr ""
8412
8413 #. type: =head2
8414 #: ../fish/guestfish-actions.pod:1564
8415 msgid "pid"
8416 msgstr ""
8417
8418 #. type: verbatim
8419 #: ../fish/guestfish-actions.pod:1566
8420 #, no-wrap
8421 msgid ""
8422 " get-pid\n"
8423 "\n"
8424 msgstr ""
8425
8426 #. type: textblock
8427 #: ../fish/guestfish-actions.pod:1568 ../src/guestfs-actions.pod:2505
8428 msgid ""
8429 "Return the process ID of the qemu subprocess.  If there is no qemu "
8430 "subprocess, then this will return an error."
8431 msgstr ""
8432
8433 #. type: textblock
8434 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2508
8435 msgid "This is an internal call used for debugging and testing."
8436 msgstr ""
8437
8438 #. type: =head2
8439 #: ../fish/guestfish-actions.pod:1573
8440 msgid "get-qemu"
8441 msgstr ""
8442
8443 #. type: verbatim
8444 #: ../fish/guestfish-actions.pod:1575
8445 #, no-wrap
8446 msgid ""
8447 " get-qemu\n"
8448 "\n"
8449 msgstr ""
8450
8451 #. type: textblock
8452 #: ../fish/guestfish-actions.pod:1577 ../src/guestfs-actions.pod:2519
8453 msgid "Return the current qemu binary."
8454 msgstr ""
8455
8456 #. type: textblock
8457 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2521
8458 msgid ""
8459 "This is always non-NULL.  If it wasn't set already, then this will return "
8460 "the default qemu binary name."
8461 msgstr ""
8462
8463 #. type: =head2
8464 #: ../fish/guestfish-actions.pod:1582
8465 msgid "get-recovery-proc"
8466 msgstr ""
8467
8468 #. type: verbatim
8469 #: ../fish/guestfish-actions.pod:1584
8470 #, no-wrap
8471 msgid ""
8472 " get-recovery-proc\n"
8473 "\n"
8474 msgstr ""
8475
8476 #. type: textblock
8477 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2534
8478 msgid "Return the recovery process enabled flag."
8479 msgstr ""
8480
8481 #. type: =head2
8482 #: ../fish/guestfish-actions.pod:1588
8483 msgid "get-selinux"
8484 msgstr ""
8485
8486 #. type: verbatim
8487 #: ../fish/guestfish-actions.pod:1590
8488 #, no-wrap
8489 msgid ""
8490 " get-selinux\n"
8491 "\n"
8492 msgstr ""
8493
8494 #. type: textblock
8495 #: ../fish/guestfish-actions.pod:1592
8496 msgid ""
8497 "This returns the current setting of the selinux flag which is passed to the "
8498 "appliance at boot time.  See L</set-selinux>."
8499 msgstr ""
8500
8501 #. type: =head2
8502 #: ../fish/guestfish-actions.pod:1598
8503 msgid "get-smp"
8504 msgstr ""
8505
8506 #. type: verbatim
8507 #: ../fish/guestfish-actions.pod:1600
8508 #, no-wrap
8509 msgid ""
8510 " get-smp\n"
8511 "\n"
8512 msgstr ""
8513
8514 #. type: textblock
8515 #: ../fish/guestfish-actions.pod:1602 ../src/guestfs-actions.pod:2560
8516 msgid "This returns the number of virtual CPUs assigned to the appliance."
8517 msgstr ""
8518
8519 #. type: =head2
8520 #: ../fish/guestfish-actions.pod:1604
8521 msgid "get-state"
8522 msgstr ""
8523
8524 #. type: verbatim
8525 #: ../fish/guestfish-actions.pod:1606
8526 #, no-wrap
8527 msgid ""
8528 " get-state\n"
8529 "\n"
8530 msgstr ""
8531
8532 #. type: textblock
8533 #: ../fish/guestfish-actions.pod:1608 ../src/guestfs-actions.pod:2571
8534 msgid ""
8535 "This returns the current state as an opaque integer.  This is only useful "
8536 "for printing debug and internal error messages."
8537 msgstr ""
8538
8539 #. type: textblock
8540 #: ../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:2574 ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:3922 ../src/guestfs-actions.pod:3983 ../src/guestfs-actions.pod:4010
8541 msgid "For more information on states, see L<guestfs(3)>."
8542 msgstr ""
8543
8544 #. type: =head2
8545 #: ../fish/guestfish-actions.pod:1613
8546 msgid "get-trace"
8547 msgstr ""
8548
8549 #. type: verbatim
8550 #: ../fish/guestfish-actions.pod:1615
8551 #, no-wrap
8552 msgid ""
8553 " get-trace\n"
8554 "\n"
8555 msgstr ""
8556
8557 #. type: textblock
8558 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2585
8559 msgid "Return the command trace flag."
8560 msgstr ""
8561
8562 #. type: =head2
8563 #: ../fish/guestfish-actions.pod:1619
8564 msgid "get-umask"
8565 msgstr ""
8566
8567 #. type: verbatim
8568 #: ../fish/guestfish-actions.pod:1621
8569 #, no-wrap
8570 msgid ""
8571 " get-umask\n"
8572 "\n"
8573 msgstr ""
8574
8575 #. type: textblock
8576 #: ../fish/guestfish-actions.pod:1623
8577 msgid ""
8578 "Return the current umask.  By default the umask is C<022> unless it has been "
8579 "set by calling L</umask>."
8580 msgstr ""
8581
8582 #. type: =head2
8583 #: ../fish/guestfish-actions.pod:1626
8584 msgid "get-verbose"
8585 msgstr ""
8586
8587 #. type: verbatim
8588 #: ../fish/guestfish-actions.pod:1628
8589 #, no-wrap
8590 msgid ""
8591 " get-verbose\n"
8592 "\n"
8593 msgstr ""
8594
8595 #. type: textblock
8596 #: ../fish/guestfish-actions.pod:1630 ../src/guestfs-actions.pod:2608
8597 msgid "This returns the verbose messages flag."
8598 msgstr ""
8599
8600 #. type: =head2
8601 #: ../fish/guestfish-actions.pod:1632
8602 msgid "getcon"
8603 msgstr ""
8604
8605 #. type: verbatim
8606 #: ../fish/guestfish-actions.pod:1634
8607 #, no-wrap
8608 msgid ""
8609 " getcon\n"
8610 "\n"
8611 msgstr ""
8612
8613 #. type: textblock
8614 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2619
8615 msgid "This gets the SELinux security context of the daemon."
8616 msgstr ""
8617
8618 #. type: textblock
8619 #: ../fish/guestfish-actions.pod:1638
8620 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
8621 msgstr ""
8622
8623 #. type: =head2
8624 #: ../fish/guestfish-actions.pod:1641
8625 msgid "getxattr"
8626 msgstr ""
8627
8628 #. type: verbatim
8629 #: ../fish/guestfish-actions.pod:1643
8630 #, no-wrap
8631 msgid ""
8632 " getxattr path name\n"
8633 "\n"
8634 msgstr ""
8635
8636 #. type: textblock
8637 #: ../fish/guestfish-actions.pod:1645
8638 msgid ""
8639 "Get a single extended attribute from file C<path> named C<name>.  This call "
8640 "follows symlinks.  If you want to lookup an extended attribute for the "
8641 "symlink itself, use L</lgetxattr>."
8642 msgstr ""
8643
8644 #. type: textblock
8645 #: ../fish/guestfish-actions.pod:1649 ../fish/guestfish-actions.pod:2715
8646 msgid ""
8647 "Normally it is better to get all extended attributes from a file in one go "
8648 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
8649 "buggy and do not provide a way to list out attributes.  For these "
8650 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
8651 "attributes you want in advance and call this function."
8652 msgstr ""
8653
8654 #. type: textblock
8655 #: ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:2722 ../src/guestfs-actions.pod:2648 ../src/guestfs-actions.pod:4143
8656 msgid ""
8657 "Extended attribute values are blobs of binary data.  If there is no extended "
8658 "attribute named C<name>, this returns an error."
8659 msgstr ""
8660
8661 #. type: textblock
8662 #: ../fish/guestfish-actions.pod:1659
8663 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
8664 msgstr ""
8665
8666 #. type: =head2
8667 #: ../fish/guestfish-actions.pod:1661
8668 msgid "getxattrs"
8669 msgstr ""
8670
8671 #. type: verbatim
8672 #: ../fish/guestfish-actions.pod:1663
8673 #, no-wrap
8674 msgid ""
8675 " getxattrs path\n"
8676 "\n"
8677 msgstr ""
8678
8679 #. type: textblock
8680 #: ../fish/guestfish-actions.pod:1665 ../src/guestfs-actions.pod:2665
8681 msgid "This call lists the extended attributes of the file or directory C<path>."
8682 msgstr ""
8683
8684 #. type: textblock
8685 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2668
8686 msgid ""
8687 "At the system call level, this is a combination of the L<listxattr(2)> and "
8688 "L<getxattr(2)> calls."
8689 msgstr ""
8690
8691 #. type: textblock
8692 #: ../fish/guestfish-actions.pod:1671
8693 msgid "See also: L</lgetxattrs>, L<attr(5)>."
8694 msgstr ""
8695
8696 #. type: =head2
8697 #: ../fish/guestfish-actions.pod:1673
8698 msgid "glob-expand"
8699 msgstr ""
8700
8701 #. type: verbatim
8702 #: ../fish/guestfish-actions.pod:1675
8703 #, no-wrap
8704 msgid ""
8705 " glob-expand pattern\n"
8706 "\n"
8707 msgstr ""
8708
8709 #. type: textblock
8710 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2685
8711 msgid ""
8712 "This command searches for all the pathnames matching C<pattern> according to "
8713 "the wildcard expansion rules used by the shell."
8714 msgstr ""
8715
8716 #. type: textblock
8717 #: ../fish/guestfish-actions.pod:1681 ../src/guestfs-actions.pod:2689
8718 msgid "If no paths match, then this returns an empty list (note: not an error)."
8719 msgstr ""
8720
8721 #. type: textblock
8722 #: ../fish/guestfish-actions.pod:1684 ../src/guestfs-actions.pod:2692
8723 msgid ""
8724 "It is just a wrapper around the C L<glob(3)> function with flags "
8725 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
8726 msgstr ""
8727
8728 #. type: =head2
8729 #: ../fish/guestfish-actions.pod:1688
8730 msgid "grep"
8731 msgstr ""
8732
8733 #. type: verbatim
8734 #: ../fish/guestfish-actions.pod:1690
8735 #, no-wrap
8736 msgid ""
8737 " grep regex path\n"
8738 "\n"
8739 msgstr ""
8740
8741 #. type: textblock
8742 #: ../fish/guestfish-actions.pod:1692 ../src/guestfs-actions.pod:2709
8743 msgid "This calls the external C<grep> program and returns the matching lines."
8744 msgstr ""
8745
8746 #. type: =head2
8747 #: ../fish/guestfish-actions.pod:1698
8748 msgid "grepi"
8749 msgstr ""
8750
8751 #. type: verbatim
8752 #: ../fish/guestfish-actions.pod:1700
8753 #, no-wrap
8754 msgid ""
8755 " grepi regex path\n"
8756 "\n"
8757 msgstr ""
8758
8759 #. type: textblock
8760 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2728
8761 msgid "This calls the external C<grep -i> program and returns the matching lines."
8762 msgstr ""
8763
8764 #. type: =head2
8765 #: ../fish/guestfish-actions.pod:1708
8766 msgid "grub-install"
8767 msgstr ""
8768
8769 #. type: verbatim
8770 #: ../fish/guestfish-actions.pod:1710
8771 #, no-wrap
8772 msgid ""
8773 " grub-install root device\n"
8774 "\n"
8775 msgstr ""
8776
8777 #. type: textblock
8778 #: ../fish/guestfish-actions.pod:1712 ../src/guestfs-actions.pod:2747
8779 msgid ""
8780 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
8781 "with the root directory being C<root>."
8782 msgstr ""
8783
8784 #. type: textblock
8785 #: ../fish/guestfish-actions.pod:1721 ../src/guestfs-actions.pod:2756
8786 msgid ""
8787 "There is currently no way in the API to install grub2, which is used by most "
8788 "modern Linux guests.  It is possible to run the grub2 command from the "
8789 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
8790 msgstr ""
8791
8792 #. type: textblock
8793 #: ../fish/guestfish-actions.pod:1728 ../src/guestfs-actions.pod:2763
8794 msgid ""
8795 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
8796 "compatible with itself, so this only works in rather narrow circumstances.  "
8797 "Careful testing with each guest version is advisable."
8798 msgstr ""
8799
8800 #. type: textblock
8801 #: ../fish/guestfish-actions.pod:1735 ../src/guestfs-actions.pod:2770
8802 msgid ""
8803 "If grub-install reports the error \"No suitable drive was found in the "
8804 "generated device map.\" it may be that you need to create a "
8805 "C</boot/grub/device.map> file first that contains the mapping between grub "
8806 "device names and Linux device names.  It is usually sufficient to create a "
8807 "file containing:"
8808 msgstr ""
8809
8810 #. type: verbatim
8811 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2777
8812 #, no-wrap
8813 msgid ""
8814 " (hd0) /dev/vda\n"
8815 "\n"
8816 msgstr ""
8817
8818 #. type: textblock
8819 #: ../fish/guestfish-actions.pod:1744 ../src/guestfs-actions.pod:2779
8820 msgid "replacing C</dev/vda> with the name of the installation device."
8821 msgstr ""
8822
8823 #. type: =head2
8824 #: ../fish/guestfish-actions.pod:1748
8825 msgid "head"
8826 msgstr ""
8827
8828 #. type: verbatim
8829 #: ../fish/guestfish-actions.pod:1750
8830 #, no-wrap
8831 msgid ""
8832 " head path\n"
8833 "\n"
8834 msgstr ""
8835
8836 #. type: textblock
8837 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2793
8838 msgid ""
8839 "This command returns up to the first 10 lines of a file as a list of "
8840 "strings."
8841 msgstr ""
8842
8843 #. type: =head2
8844 #: ../fish/guestfish-actions.pod:1758
8845 msgid "head-n"
8846 msgstr ""
8847
8848 #. type: verbatim
8849 #: ../fish/guestfish-actions.pod:1760
8850 #, no-wrap
8851 msgid ""
8852 " head-n nrlines path\n"
8853 "\n"
8854 msgstr ""
8855
8856 #. type: textblock
8857 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2812
8858 msgid ""
8859 "If the parameter C<nrlines> is a positive number, this returns the first "
8860 "C<nrlines> lines of the file C<path>."
8861 msgstr ""
8862
8863 #. type: textblock
8864 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2815
8865 msgid ""
8866 "If the parameter C<nrlines> is a negative number, this returns lines from "
8867 "the file C<path>, excluding the last C<nrlines> lines."
8868 msgstr ""
8869
8870 #. type: textblock
8871 #: ../fish/guestfish-actions.pod:1768 ../fish/guestfish-actions.pod:4867 ../src/guestfs-actions.pod:2818 ../src/guestfs-actions.pod:7474
8872 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8873 msgstr ""
8874
8875 #. type: =head2
8876 #: ../fish/guestfish-actions.pod:1773
8877 msgid "hexdump"
8878 msgstr ""
8879
8880 #. type: verbatim
8881 #: ../fish/guestfish-actions.pod:1775
8882 #, no-wrap
8883 msgid ""
8884 " hexdump path\n"
8885 "\n"
8886 msgstr ""
8887
8888 #. type: textblock
8889 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2835
8890 msgid ""
8891 "This runs C<hexdump -C> on the given C<path>.  The result is the "
8892 "human-readable, canonical hex dump of the file."
8893 msgstr ""
8894
8895 #. type: =head2
8896 #: ../fish/guestfish-actions.pod:1783
8897 msgid "initrd-cat"
8898 msgstr ""
8899
8900 #. type: verbatim
8901 #: ../fish/guestfish-actions.pod:1785
8902 #, no-wrap
8903 msgid ""
8904 " initrd-cat initrdpath filename\n"
8905 "\n"
8906 msgstr ""
8907
8908 #. type: textblock
8909 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2854
8910 msgid ""
8911 "This command unpacks the file C<filename> from the initrd file called "
8912 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8913 "character."
8914 msgstr ""
8915
8916 #. type: textblock
8917 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2858
8918 msgid ""
8919 "For example, in guestfish you could use the following command to examine the "
8920 "boot script (usually called C</init>)  contained in a Linux initrd or "
8921 "initramfs image:"
8922 msgstr ""
8923
8924 #. type: verbatim
8925 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2862
8926 #, no-wrap
8927 msgid ""
8928 " initrd-cat /boot/initrd-<version>.img init\n"
8929 "\n"
8930 msgstr ""
8931
8932 #. type: textblock
8933 #: ../fish/guestfish-actions.pod:1797
8934 msgid "See also L</initrd-list>."
8935 msgstr ""
8936
8937 #. type: =head2
8938 #: ../fish/guestfish-actions.pod:1802
8939 msgid "initrd-list"
8940 msgstr ""
8941
8942 #. type: verbatim
8943 #: ../fish/guestfish-actions.pod:1804
8944 #, no-wrap
8945 msgid ""
8946 " initrd-list path\n"
8947 "\n"
8948 msgstr ""
8949
8950 #. type: textblock
8951 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2881
8952 msgid "This command lists out files contained in an initrd."
8953 msgstr ""
8954
8955 #. type: textblock
8956 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2883
8957 msgid ""
8958 "The files are listed without any initial C</> character.  The files are "
8959 "listed in the order they appear (not necessarily alphabetical).  Directory "
8960 "names are listed as separate items."
8961 msgstr ""
8962
8963 #. type: textblock
8964 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2887
8965 msgid ""
8966 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8967 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8968 "files)."
8969 msgstr ""
8970
8971 #. type: =head2
8972 #: ../fish/guestfish-actions.pod:1816
8973 msgid "inotify-add-watch"
8974 msgstr ""
8975
8976 #. type: verbatim
8977 #: ../fish/guestfish-actions.pod:1818
8978 #, no-wrap
8979 msgid ""
8980 " inotify-add-watch path mask\n"
8981 "\n"
8982 msgstr ""
8983
8984 #. type: textblock
8985 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2904
8986 msgid "Watch C<path> for the events listed in C<mask>."
8987 msgstr ""
8988
8989 #. type: textblock
8990 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2906
8991 msgid ""
8992 "Note that if C<path> is a directory then events within that directory are "
8993 "watched, but this does I<not> happen recursively (in subdirectories)."
8994 msgstr ""
8995
8996 #. type: textblock
8997 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2910
8998 msgid ""
8999 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9000 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9001 msgstr ""
9002
9003 #. type: =head2
9004 #: ../fish/guestfish-actions.pod:1830
9005 msgid "inotify-close"
9006 msgstr ""
9007
9008 #. type: verbatim
9009 #: ../fish/guestfish-actions.pod:1832
9010 #, no-wrap
9011 msgid ""
9012 " inotify-close\n"
9013 "\n"
9014 msgstr ""
9015
9016 #. type: textblock
9017 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2923
9018 msgid ""
9019 "This closes the inotify handle which was previously opened by inotify_init.  "
9020 "It removes all watches, throws away any pending events, and deallocates all "
9021 "resources."
9022 msgstr ""
9023
9024 #. type: =head2
9025 #: ../fish/guestfish-actions.pod:1838
9026 msgid "inotify-files"
9027 msgstr ""
9028
9029 #. type: verbatim
9030 #: ../fish/guestfish-actions.pod:1840
9031 #, no-wrap
9032 msgid ""
9033 " inotify-files\n"
9034 "\n"
9035 msgstr ""
9036
9037 #. type: textblock
9038 #: ../fish/guestfish-actions.pod:1842
9039 msgid ""
9040 "This function is a helpful wrapper around L</inotify-read> which just "
9041 "returns a list of pathnames of objects that were touched.  The returned "
9042 "pathnames are sorted and deduplicated."
9043 msgstr ""
9044
9045 #. type: =head2
9046 #: ../fish/guestfish-actions.pod:1846
9047 msgid "inotify-init"
9048 msgstr ""
9049
9050 #. type: verbatim
9051 #: ../fish/guestfish-actions.pod:1848
9052 #, no-wrap
9053 msgid ""
9054 " inotify-init maxevents\n"
9055 "\n"
9056 msgstr ""
9057
9058 #. type: textblock
9059 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2952
9060 msgid ""
9061 "This command creates a new inotify handle.  The inotify subsystem can be "
9062 "used to notify events which happen to objects in the guest filesystem."
9063 msgstr ""
9064
9065 #. type: textblock
9066 #: ../fish/guestfish-actions.pod:1854
9067 msgid ""
9068 "C<maxevents> is the maximum number of events which will be queued up between "
9069 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
9070 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
9071 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
9072 "but records the fact that it threw them away by setting a flag "
9073 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9074 msgstr ""
9075
9076 #. type: textblock
9077 #: ../fish/guestfish-actions.pod:1864
9078 msgid ""
9079 "Before any events are generated, you have to add some watches to the "
9080 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9081 "L</inotify-watch-all>."
9082 msgstr ""
9083
9084 #. type: textblock
9085 #: ../fish/guestfish-actions.pod:1870
9086 msgid ""
9087 "Queued up events should be read periodically by calling L</inotify-read> (or "
9088 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
9089 "If you don't read the events out often enough then you risk the internal "
9090 "queue overflowing."
9091 msgstr ""
9092
9093 #. type: textblock
9094 #: ../fish/guestfish-actions.pod:1877
9095 msgid ""
9096 "The handle should be closed after use by calling L</inotify-close>.  This "
9097 "also removes any watches automatically."
9098 msgstr ""
9099
9100 #. type: textblock
9101 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2983
9102 msgid ""
9103 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9104 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
9105 "that there is one global inotify handle per libguestfs instance."
9106 msgstr ""
9107
9108 #. type: =head2
9109 #: ../fish/guestfish-actions.pod:1886
9110 msgid "inotify-read"
9111 msgstr ""
9112
9113 #. type: verbatim
9114 #: ../fish/guestfish-actions.pod:1888
9115 #, no-wrap
9116 msgid ""
9117 " inotify-read\n"
9118 "\n"
9119 msgstr ""
9120
9121 #. type: textblock
9122 #: ../fish/guestfish-actions.pod:1890 ../src/guestfs-actions.pod:2997
9123 msgid ""
9124 "Return the complete queue of events that have happened since the previous "
9125 "read call."
9126 msgstr ""
9127
9128 #. type: textblock
9129 #: ../fish/guestfish-actions.pod:1893 ../src/guestfs-actions.pod:3000
9130 msgid "If no events have happened, this returns an empty list."
9131 msgstr ""
9132
9133 #. type: textblock
9134 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:3002
9135 msgid ""
9136 "I<Note>: In order to make sure that all events have been read, you must call "
9137 "this function repeatedly until it returns an empty list.  The reason is that "
9138 "the call will read events up to the maximum appliance-to-host message size "
9139 "and leave remaining events in the queue."
9140 msgstr ""
9141
9142 #. type: =head2
9143 #: ../fish/guestfish-actions.pod:1901
9144 msgid "inotify-rm-watch"
9145 msgstr ""
9146
9147 #. type: verbatim
9148 #: ../fish/guestfish-actions.pod:1903
9149 #, no-wrap
9150 msgid ""
9151 " inotify-rm-watch wd\n"
9152 "\n"
9153 msgstr ""
9154
9155 #. type: textblock
9156 #: ../fish/guestfish-actions.pod:1905
9157 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
9158 msgstr ""
9159
9160 #. type: =head2
9161 #: ../fish/guestfish-actions.pod:1908
9162 msgid "inspect-get-arch"
9163 msgstr ""
9164
9165 #. type: verbatim
9166 #: ../fish/guestfish-actions.pod:1910
9167 #, no-wrap
9168 msgid ""
9169 " inspect-get-arch root\n"
9170 "\n"
9171 msgstr ""
9172
9173 #. type: textblock
9174 #: ../fish/guestfish-actions.pod:1912
9175 msgid ""
9176 "This returns the architecture of the inspected operating system.  The "
9177 "possible return values are listed under L</file-architecture>."
9178 msgstr ""
9179
9180 #. type: textblock
9181 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:3037
9182 msgid ""
9183 "If the architecture could not be determined, then the string C<unknown> is "
9184 "returned."
9185 msgstr ""
9186
9187 #. type: textblock
9188 #: ../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:3040 ../src/guestfs-actions.pod:3142 ../src/guestfs-actions.pod:3246 ../src/guestfs-actions.pod:3265 ../src/guestfs-actions.pod:3396 ../src/guestfs-actions.pod:3480 ../src/guestfs-actions.pod:3508 ../src/guestfs-actions.pod:3529 ../src/guestfs-actions.pod:3582 ../src/guestfs-actions.pod:3626 ../src/guestfs-actions.pod:3646 ../src/guestfs-actions.pod:3666 ../src/guestfs-actions.pod:3683 ../src/guestfs-actions.pod:3699 ../src/guestfs-actions.pod:3717 ../src/guestfs-actions.pod:3819 ../src/guestfs-actions.pod:3860
9189 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
9190 msgstr ""
9191
9192 #. type: =head2
9193 #: ../fish/guestfish-actions.pod:1921
9194 msgid "inspect-get-distro"
9195 msgstr ""
9196
9197 #. type: verbatim
9198 #: ../fish/guestfish-actions.pod:1923
9199 #, no-wrap
9200 msgid ""
9201 " inspect-get-distro root\n"
9202 "\n"
9203 msgstr ""
9204
9205 #. type: textblock
9206 #: ../fish/guestfish-actions.pod:1925 ../src/guestfs-actions.pod:3053
9207 msgid "This returns the distro (distribution) of the inspected operating system."
9208 msgstr ""
9209
9210 #. type: textblock
9211 #: ../fish/guestfish-actions.pod:1928 ../src/guestfs-actions.pod:3056
9212 msgid "Currently defined distros are:"
9213 msgstr ""
9214
9215 #. type: =item
9216 #: ../fish/guestfish-actions.pod:1932 ../src/guestfs-actions.pod:3060
9217 msgid "\"archlinux\""
9218 msgstr ""
9219
9220 #. type: textblock
9221 #: ../fish/guestfish-actions.pod:1934 ../src/guestfs-actions.pod:3062
9222 msgid "Arch Linux."
9223 msgstr ""
9224
9225 #. type: =item
9226 #: ../fish/guestfish-actions.pod:1936 ../src/guestfs-actions.pod:3064
9227 msgid "\"centos\""
9228 msgstr ""
9229
9230 #. type: textblock
9231 #: ../fish/guestfish-actions.pod:1938 ../src/guestfs-actions.pod:3066
9232 msgid "CentOS."
9233 msgstr ""
9234
9235 #. type: =item
9236 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:3068
9237 msgid "\"debian\""
9238 msgstr ""
9239
9240 #. type: textblock
9241 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:3070
9242 msgid "Debian."
9243 msgstr ""
9244
9245 #. type: =item
9246 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:3072
9247 msgid "\"fedora\""
9248 msgstr ""
9249
9250 #. type: textblock
9251 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:3074
9252 msgid "Fedora."
9253 msgstr ""
9254
9255 #. type: =item
9256 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:3076
9257 msgid "\"gentoo\""
9258 msgstr ""
9259
9260 #. type: textblock
9261 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:3078
9262 msgid "Gentoo."
9263 msgstr ""
9264
9265 #. type: =item
9266 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:3080
9267 msgid "\"linuxmint\""
9268 msgstr ""
9269
9270 #. type: textblock
9271 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:3082
9272 msgid "Linux Mint."
9273 msgstr ""
9274
9275 #. type: =item
9276 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3084
9277 msgid "\"mageia\""
9278 msgstr ""
9279
9280 #. type: textblock
9281 #: ../fish/guestfish-actions.pod:1958 ../src/guestfs-actions.pod:3086
9282 msgid "Mageia."
9283 msgstr ""
9284
9285 #. type: =item
9286 #: ../fish/guestfish-actions.pod:1960 ../src/guestfs-actions.pod:3088
9287 msgid "\"mandriva\""
9288 msgstr ""
9289
9290 #. type: textblock
9291 #: ../fish/guestfish-actions.pod:1962 ../src/guestfs-actions.pod:3090
9292 msgid "Mandriva."
9293 msgstr ""
9294
9295 #. type: =item
9296 #: ../fish/guestfish-actions.pod:1964 ../src/guestfs-actions.pod:3092
9297 msgid "\"meego\""
9298 msgstr ""
9299
9300 #. type: textblock
9301 #: ../fish/guestfish-actions.pod:1966 ../src/guestfs-actions.pod:3094
9302 msgid "MeeGo."
9303 msgstr ""
9304
9305 #. type: =item
9306 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:3096
9307 msgid "\"opensuse\""
9308 msgstr ""
9309
9310 #. type: textblock
9311 #: ../fish/guestfish-actions.pod:1970 ../src/guestfs-actions.pod:3098
9312 msgid "OpenSUSE."
9313 msgstr ""
9314
9315 #. type: =item
9316 #: ../fish/guestfish-actions.pod:1972 ../src/guestfs-actions.pod:3100
9317 msgid "\"pardus\""
9318 msgstr ""
9319
9320 #. type: textblock
9321 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:3102
9322 msgid "Pardus."
9323 msgstr ""
9324
9325 #. type: =item
9326 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:3104
9327 msgid "\"redhat-based\""
9328 msgstr ""
9329
9330 #. type: textblock
9331 #: ../fish/guestfish-actions.pod:1978 ../src/guestfs-actions.pod:3106
9332 msgid "Some Red Hat-derived distro."
9333 msgstr ""
9334
9335 #. type: =item
9336 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:3108
9337 msgid "\"rhel\""
9338 msgstr ""
9339
9340 #. type: textblock
9341 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:3110
9342 msgid "Red Hat Enterprise Linux."
9343 msgstr ""
9344
9345 #. type: =item
9346 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:3112
9347 msgid "\"scientificlinux\""
9348 msgstr ""
9349
9350 #. type: textblock
9351 #: ../fish/guestfish-actions.pod:1986 ../src/guestfs-actions.pod:3114
9352 msgid "Scientific Linux."
9353 msgstr ""
9354
9355 #. type: =item
9356 #: ../fish/guestfish-actions.pod:1988 ../src/guestfs-actions.pod:3116
9357 msgid "\"slackware\""
9358 msgstr ""
9359
9360 #. type: textblock
9361 #: ../fish/guestfish-actions.pod:1990 ../src/guestfs-actions.pod:3118
9362 msgid "Slackware."
9363 msgstr ""
9364
9365 #. type: =item
9366 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:3120
9367 msgid "\"ttylinux\""
9368 msgstr ""
9369
9370 #. type: textblock
9371 #: ../fish/guestfish-actions.pod:1994 ../src/guestfs-actions.pod:3122
9372 msgid "ttylinux."
9373 msgstr ""
9374
9375 #. type: =item
9376 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3124
9377 msgid "\"ubuntu\""
9378 msgstr ""
9379
9380 #. type: textblock
9381 #: ../fish/guestfish-actions.pod:1998 ../src/guestfs-actions.pod:3126
9382 msgid "Ubuntu."
9383 msgstr ""
9384
9385 #. type: =item
9386 #: ../fish/guestfish-actions.pod:2000 ../fish/guestfish-actions.pod:2084 ../fish/guestfish-actions.pod:2353 ../src/guestfs-actions.pod:3128 ../src/guestfs-actions.pod:3237 ../src/guestfs-actions.pod:3617
9387 msgid "\"unknown\""
9388 msgstr ""
9389
9390 #. type: textblock
9391 #: ../fish/guestfish-actions.pod:2002 ../src/guestfs-actions.pod:3130
9392 msgid "The distro could not be determined."
9393 msgstr ""
9394
9395 #. type: =item
9396 #: ../fish/guestfish-actions.pod:2004 ../fish/guestfish-actions.pod:2341 ../src/guestfs-actions.pod:3132 ../src/guestfs-actions.pod:3605
9397 msgid "\"windows\""
9398 msgstr ""
9399
9400 #. type: textblock
9401 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3134
9402 msgid ""
9403 "Windows does not have distributions.  This string is returned if the OS type "
9404 "is Windows."
9405 msgstr ""
9406
9407 #. type: textblock
9408 #: ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2090 ../fish/guestfish-actions.pod:2359 ../src/guestfs-actions.pod:3139 ../src/guestfs-actions.pod:3243 ../src/guestfs-actions.pod:3623
9409 msgid ""
9410 "Future versions of libguestfs may return other strings here.  The caller "
9411 "should be prepared to handle any string."
9412 msgstr ""
9413
9414 #. type: =head2
9415 #: ../fish/guestfish-actions.pod:2016
9416 msgid "inspect-get-drive-mappings"
9417 msgstr ""
9418
9419 #. type: verbatim
9420 #: ../fish/guestfish-actions.pod:2018
9421 #, no-wrap
9422 msgid ""
9423 " inspect-get-drive-mappings root\n"
9424 "\n"
9425 msgstr ""
9426
9427 #. type: textblock
9428 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3155
9429 msgid ""
9430 "This call is useful for Windows which uses a primitive system of assigning "
9431 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
9432 "Windows Registry to find out how disks/partitions are mapped to drive "
9433 "letters, and returns a hash table as in the example below:"
9434 msgstr ""
9435
9436 #. type: verbatim
9437 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3161
9438 #, no-wrap
9439 msgid ""
9440 " C      =>     /dev/vda2\n"
9441 " E      =>     /dev/vdb1\n"
9442 " F      =>     /dev/vdc1\n"
9443 "\n"
9444 msgstr ""
9445
9446 #. type: textblock
9447 #: ../fish/guestfish-actions.pod:2030 ../src/guestfs-actions.pod:3165
9448 msgid ""
9449 "Note that keys are drive letters.  For Windows, the key is case insensitive "
9450 "and just contains the drive letter, without the customary colon separator "
9451 "character."
9452 msgstr ""
9453
9454 #. type: textblock
9455 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3169
9456 msgid ""
9457 "In future we may support other operating systems that also used drive "
9458 "letters, but the keys for those might not be case insensitive and might be "
9459 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
9460 "C<h1> etc."
9461 msgstr ""
9462
9463 #. type: textblock
9464 #: ../fish/guestfish-actions.pod:2039 ../src/guestfs-actions.pod:3174
9465 msgid ""
9466 "For Windows guests, currently only hard drive mappings are returned.  "
9467 "Removable disks (eg. DVD-ROMs) are ignored."
9468 msgstr ""
9469
9470 #. type: textblock
9471 #: ../fish/guestfish-actions.pod:2042 ../src/guestfs-actions.pod:3177
9472 msgid ""
9473 "For guests that do not use drive mappings, or if the drive mappings could "
9474 "not be determined, this returns an empty hash table."
9475 msgstr ""
9476
9477 #. type: textblock
9478 #: ../fish/guestfish-actions.pod:2045
9479 msgid ""
9480 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9481 "L</inspect-get-mountpoints>, L</inspect-get-filesystems>."
9482 msgstr ""
9483
9484 #. type: =head2
9485 #: ../fish/guestfish-actions.pod:2049
9486 msgid "inspect-get-filesystems"
9487 msgstr ""
9488
9489 #. type: verbatim
9490 #: ../fish/guestfish-actions.pod:2051
9491 #, no-wrap
9492 msgid ""
9493 " inspect-get-filesystems root\n"
9494 "\n"
9495 msgstr ""
9496
9497 #. type: textblock
9498 #: ../fish/guestfish-actions.pod:2053 ../src/guestfs-actions.pod:3198
9499 msgid ""
9500 "This returns a list of all the filesystems that we think are associated with "
9501 "this operating system.  This includes the root filesystem, other ordinary "
9502 "filesystems, and non-mounted devices like swap partitions."
9503 msgstr ""
9504
9505 #. type: textblock
9506 #: ../fish/guestfish-actions.pod:2058 ../src/guestfs-actions.pod:3203
9507 msgid ""
9508 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
9509 "to be shared between operating systems."
9510 msgstr ""
9511
9512 #. type: textblock
9513 #: ../fish/guestfish-actions.pod:2061
9514 msgid ""
9515 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9516 "L</inspect-get-mountpoints>."
9517 msgstr ""
9518
9519 #. type: =head2
9520 #: ../fish/guestfish-actions.pod:2064
9521 msgid "inspect-get-format"
9522 msgstr ""
9523
9524 #. type: verbatim
9525 #: ../fish/guestfish-actions.pod:2066
9526 #, no-wrap
9527 msgid ""
9528 " inspect-get-format root\n"
9529 "\n"
9530 msgstr ""
9531
9532 #. type: textblock
9533 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3221
9534 msgid ""
9535 "This returns the format of the inspected operating system.  You can use it "
9536 "to detect install images, live CDs and similar."
9537 msgstr ""
9538
9539 #. type: textblock
9540 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3224
9541 msgid "Currently defined formats are:"
9542 msgstr ""
9543
9544 #. type: =item
9545 #: ../fish/guestfish-actions.pod:2075 ../src/guestfs-actions.pod:3228
9546 msgid "\"installed\""
9547 msgstr ""
9548
9549 #. type: textblock
9550 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3230
9551 msgid "This is an installed operating system."
9552 msgstr ""
9553
9554 #. type: =item
9555 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3232
9556 msgid "\"installer\""
9557 msgstr ""
9558
9559 #. type: textblock
9560 #: ../fish/guestfish-actions.pod:2081 ../src/guestfs-actions.pod:3234
9561 msgid ""
9562 "The disk image being inspected is not an installed operating system, but a "
9563 "I<bootable> install disk, live CD, or similar."
9564 msgstr ""
9565
9566 #. type: textblock
9567 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:3239
9568 msgid "The format of this disk image is not known."
9569 msgstr ""
9570
9571 #. type: =head2
9572 #: ../fish/guestfish-actions.pod:2095
9573 msgid "inspect-get-hostname"
9574 msgstr ""
9575
9576 #. type: verbatim
9577 #: ../fish/guestfish-actions.pod:2097
9578 #, no-wrap
9579 msgid ""
9580 " inspect-get-hostname root\n"
9581 "\n"
9582 msgstr ""
9583
9584 #. type: textblock
9585 #: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3259
9586 msgid ""
9587 "This function returns the hostname of the operating system as found by "
9588 "inspection of the guest's configuration files."
9589 msgstr ""
9590
9591 #. type: textblock
9592 #: ../fish/guestfish-actions.pod:2102 ../src/guestfs-actions.pod:3262
9593 msgid ""
9594 "If the hostname could not be determined, then the string C<unknown> is "
9595 "returned."
9596 msgstr ""
9597
9598 #. type: =head2
9599 #: ../fish/guestfish-actions.pod:2107
9600 msgid "inspect-get-icon"
9601 msgstr ""
9602
9603 #. type: verbatim
9604 #: ../fish/guestfish-actions.pod:2109
9605 #, no-wrap
9606 msgid ""
9607 " inspect-get-icon root [favicon:..] [highquality:..]\n"
9608 "\n"
9609 msgstr ""
9610
9611 #. type: textblock
9612 #: ../fish/guestfish-actions.pod:2111 ../src/guestfs-actions.pod:3288
9613 msgid ""
9614 "This function returns an icon corresponding to the inspected operating "
9615 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
9616 "to PNG if necessary)."
9617 msgstr ""
9618
9619 #. type: textblock
9620 #: ../fish/guestfish-actions.pod:2115 ../src/guestfs-actions.pod:3292
9621 msgid ""
9622 "If it was not possible to get an icon this function returns a zero-length "
9623 "(non-NULL) buffer.  I<Callers must check for this case>."
9624 msgstr ""
9625
9626 #. type: textblock
9627 #: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3295
9628 msgid ""
9629 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
9630 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
9631 "this file will be returned.  You can disable favicons by passing the "
9632 "optional C<favicon> boolean as false (default is true)."
9633 msgstr ""
9634
9635 #. type: textblock
9636 #: ../fish/guestfish-actions.pod:2124 ../src/guestfs-actions.pod:3301
9637 msgid ""
9638 "If finding the favicon fails, then we look in other places in the guest for "
9639 "a suitable icon."
9640 msgstr ""
9641
9642 #. type: textblock
9643 #: ../fish/guestfish-actions.pod:2127 ../src/guestfs-actions.pod:3304
9644 msgid ""
9645 "If the optional C<highquality> boolean is true then only high quality icons "
9646 "are returned, which means only icons of high resolution with an alpha "
9647 "channel.  The default (false) is to return any icon we can, even if it is of "
9648 "substandard quality."
9649 msgstr ""
9650
9651 #. type: textblock
9652 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3315
9653 msgid ""
9654 "Unlike most other inspection API calls, the guest's disks must be mounted up "
9655 "before you call this, since it needs to read information from the guest "
9656 "filesystem during the call."
9657 msgstr ""
9658
9659 #. type: textblock
9660 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3321
9661 msgid ""
9662 "B<Security:> The icon data comes from the untrusted guest, and should be "
9663 "treated with caution.  PNG files have been known to contain exploits.  "
9664 "Ensure that libpng (or other relevant libraries) are fully up to date before "
9665 "trying to process or display the icon."
9666 msgstr ""
9667
9668 #. type: textblock
9669 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3329
9670 msgid ""
9671 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
9672 "tries to return the largest, highest quality icon available.  The "
9673 "application must scale the icon to the required size."
9674 msgstr ""
9675
9676 #. type: textblock
9677 #: ../fish/guestfish-actions.pod:2159 ../src/guestfs-actions.pod:3336
9678 msgid ""
9679 "Extracting icons from Windows guests requires the external C<wrestool> "
9680 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
9681 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
9682 "installed separately."
9683 msgstr ""
9684
9685 #. type: textblock
9686 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3343
9687 msgid ""
9688 "Operating system icons are usually trademarks.  Seek legal advice before "
9689 "using trademarks in applications."
9690 msgstr ""
9691
9692 #. type: =head2
9693 #: ../fish/guestfish-actions.pod:2173
9694 msgid "inspect-get-major-version"
9695 msgstr ""
9696
9697 #. type: verbatim
9698 #: ../fish/guestfish-actions.pod:2175
9699 #, no-wrap
9700 msgid ""
9701 " inspect-get-major-version root\n"
9702 "\n"
9703 msgstr ""
9704
9705 #. type: textblock
9706 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3384
9707 msgid "This returns the major version number of the inspected operating system."
9708 msgstr ""
9709
9710 #. type: textblock
9711 #: ../fish/guestfish-actions.pod:2180 ../src/guestfs-actions.pod:3387
9712 msgid ""
9713 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
9714 "popular public names used by the operating system.  Notably the operating "
9715 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
9716 "1).  You can find out the real versions corresponding to releases of Windows "
9717 "by consulting Wikipedia or MSDN."
9718 msgstr ""
9719
9720 #. type: textblock
9721 #: ../fish/guestfish-actions.pod:2187 ../fish/guestfish-actions.pod:2198 ../src/guestfs-actions.pod:3394 ../src/guestfs-actions.pod:3411
9722 msgid "If the version could not be determined, then C<0> is returned."
9723 msgstr ""
9724
9725 #. type: =head2
9726 #: ../fish/guestfish-actions.pod:2191
9727 msgid "inspect-get-minor-version"
9728 msgstr ""
9729
9730 #. type: verbatim
9731 #: ../fish/guestfish-actions.pod:2193
9732 #, no-wrap
9733 msgid ""
9734 " inspect-get-minor-version root\n"
9735 "\n"
9736 msgstr ""
9737
9738 #. type: textblock
9739 #: ../fish/guestfish-actions.pod:2195 ../src/guestfs-actions.pod:3408
9740 msgid "This returns the minor version number of the inspected operating system."
9741 msgstr ""
9742
9743 #. type: textblock
9744 #: ../fish/guestfish-actions.pod:2200
9745 msgid ""
9746 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9747 "L</inspect-get-major-version>."
9748 msgstr ""
9749
9750 #. type: =head2
9751 #: ../fish/guestfish-actions.pod:2203
9752 msgid "inspect-get-mountpoints"
9753 msgstr ""
9754
9755 #. type: verbatim
9756 #: ../fish/guestfish-actions.pod:2205
9757 #, no-wrap
9758 msgid ""
9759 " inspect-get-mountpoints root\n"
9760 "\n"
9761 msgstr ""
9762
9763 #. type: textblock
9764 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3426
9765 msgid ""
9766 "This returns a hash of where we think the filesystems associated with this "
9767 "operating system should be mounted.  Callers should note that this is at "
9768 "best an educated guess made by reading configuration files such as "
9769 "C</etc/fstab>.  I<In particular note> that this may return filesystems which "
9770 "are non-existent or not mountable and callers should be prepared to handle "
9771 "or ignore failures if they try to mount them."
9772 msgstr ""
9773
9774 #. type: textblock
9775 #: ../fish/guestfish-actions.pod:2216 ../src/guestfs-actions.pod:3435
9776 msgid ""
9777 "Each element in the returned hashtable has a key which is the path of the "
9778 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9779 "mounted there (eg. C</dev/sda1>)."
9780 msgstr ""
9781
9782 #. type: textblock
9783 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3440
9784 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
9785 msgstr ""
9786
9787 #. type: textblock
9788 #: ../fish/guestfish-actions.pod:2224
9789 msgid ""
9790 "For operating systems like Windows which still use drive letters, this call "
9791 "will only return an entry for the first drive \"mounted on\" C</>.  For "
9792 "information about the mapping of drive letters to partitions, see "
9793 "L</inspect-get-drive-mappings>."
9794 msgstr ""
9795
9796 #. type: textblock
9797 #: ../fish/guestfish-actions.pod:2230
9798 msgid ""
9799 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9800 "L</inspect-get-filesystems>."
9801 msgstr ""
9802
9803 #. type: =head2
9804 #: ../fish/guestfish-actions.pod:2233
9805 msgid "inspect-get-package-format"
9806 msgstr ""
9807
9808 #. type: verbatim
9809 #: ../fish/guestfish-actions.pod:2235
9810 #, no-wrap
9811 msgid ""
9812 " inspect-get-package-format root\n"
9813 "\n"
9814 msgstr ""
9815
9816 #. type: textblock
9817 #: ../fish/guestfish-actions.pod:2237
9818 msgid ""
9819 "This function and L</inspect-get-package-management> return the package "
9820 "format and package management tool used by the inspected operating system.  "
9821 "For example for Fedora these functions would return C<rpm> (package format) "
9822 "and C<yum> (package management)."
9823 msgstr ""
9824
9825 #. type: textblock
9826 #: ../fish/guestfish-actions.pod:2243 ../src/guestfs-actions.pod:3472
9827 msgid ""
9828 "This returns the string C<unknown> if we could not determine the package "
9829 "format I<or> if the operating system does not have a real packaging system "
9830 "(eg. Windows)."
9831 msgstr ""
9832
9833 #. type: textblock
9834 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3476
9835 msgid ""
9836 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
9837 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
9838 msgstr ""
9839
9840 #. type: =head2
9841 #: ../fish/guestfish-actions.pod:2253
9842 msgid "inspect-get-package-management"
9843 msgstr ""
9844
9845 #. type: verbatim
9846 #: ../fish/guestfish-actions.pod:2255
9847 #, no-wrap
9848 msgid ""
9849 " inspect-get-package-management root\n"
9850 "\n"
9851 msgstr ""
9852
9853 #. type: textblock
9854 #: ../fish/guestfish-actions.pod:2257
9855 msgid ""
9856 "L</inspect-get-package-format> and this function return the package format "
9857 "and package management tool used by the inspected operating system.  For "
9858 "example for Fedora these functions would return C<rpm> (package format) and "
9859 "C<yum> (package management)."
9860 msgstr ""
9861
9862 #. type: textblock
9863 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3499
9864 msgid ""
9865 "This returns the string C<unknown> if we could not determine the package "
9866 "management tool I<or> if the operating system does not have a real packaging "
9867 "system (eg. Windows)."
9868 msgstr ""
9869
9870 #. type: textblock
9871 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3503
9872 msgid ""
9873 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9874 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
9875 "versions of libguestfs may return other strings."
9876 msgstr ""
9877
9878 #. type: =head2
9879 #: ../fish/guestfish-actions.pod:2274
9880 msgid "inspect-get-product-name"
9881 msgstr ""
9882
9883 #. type: verbatim
9884 #: ../fish/guestfish-actions.pod:2276
9885 #, no-wrap
9886 msgid ""
9887 " inspect-get-product-name root\n"
9888 "\n"
9889 msgstr ""
9890
9891 #. type: textblock
9892 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3521
9893 msgid ""
9894 "This returns the product name of the inspected operating system.  The "
9895 "product name is generally some freeform string which can be displayed to the "
9896 "user, but should not be parsed by programs."
9897 msgstr ""
9898
9899 #. type: textblock
9900 #: ../fish/guestfish-actions.pod:2283 ../src/guestfs-actions.pod:3526
9901 msgid ""
9902 "If the product name could not be determined, then the string C<unknown> is "
9903 "returned."
9904 msgstr ""
9905
9906 #. type: =head2
9907 #: ../fish/guestfish-actions.pod:2288
9908 msgid "inspect-get-product-variant"
9909 msgstr ""
9910
9911 #. type: verbatim
9912 #: ../fish/guestfish-actions.pod:2290
9913 #, no-wrap
9914 msgid ""
9915 " inspect-get-product-variant root\n"
9916 "\n"
9917 msgstr ""
9918
9919 #. type: textblock
9920 #: ../fish/guestfish-actions.pod:2292 ../src/guestfs-actions.pod:3542
9921 msgid "This returns the product variant of the inspected operating system."
9922 msgstr ""
9923
9924 #. type: textblock
9925 #: ../fish/guestfish-actions.pod:2295 ../src/guestfs-actions.pod:3545
9926 msgid ""
9927 "For Windows guests, this returns the contents of the Registry key "
9928 "C<HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> "
9929 "which is usually a string such as C<Client> or C<Server> (other values are "
9930 "possible).  This can be used to distinguish consumer and enterprise versions "
9931 "of Windows that have the same version number (for example, Windows 7 and "
9932 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
9933 "the latter is C<Server>)."
9934 msgstr ""
9935
9936 #. type: textblock
9937 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3554
9938 msgid ""
9939 "For enterprise Linux guests, in future we intend this to return the product "
9940 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
9941 "implemented at present."
9942 msgstr ""
9943
9944 #. type: textblock
9945 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3558
9946 msgid ""
9947 "If the product variant could not be determined, then the string C<unknown> "
9948 "is returned."
9949 msgstr ""
9950
9951 #. type: textblock
9952 #: ../fish/guestfish-actions.pod:2311
9953 msgid ""
9954 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9955 "L</inspect-get-product-name>, L</inspect-get-major-version>."
9956 msgstr ""
9957
9958 #. type: =head2
9959 #: ../fish/guestfish-actions.pod:2315
9960 msgid "inspect-get-roots"
9961 msgstr ""
9962
9963 #. type: verbatim
9964 #: ../fish/guestfish-actions.pod:2317
9965 #, no-wrap
9966 msgid ""
9967 " inspect-get-roots\n"
9968 "\n"
9969 msgstr ""
9970
9971 #. type: textblock
9972 #: ../fish/guestfish-actions.pod:2319
9973 msgid ""
9974 "This function is a convenient way to get the list of root devices, as "
9975 "returned from a previous call to L</inspect-os>, but without redoing the "
9976 "whole inspection process."
9977 msgstr ""
9978
9979 #. type: textblock
9980 #: ../fish/guestfish-actions.pod:2323
9981 msgid ""
9982 "This returns an empty list if either no root devices were found or the "
9983 "caller has not called L</inspect-os>."
9984 msgstr ""
9985
9986 #. type: =head2
9987 #: ../fish/guestfish-actions.pod:2328
9988 msgid "inspect-get-type"
9989 msgstr ""
9990
9991 #. type: verbatim
9992 #: ../fish/guestfish-actions.pod:2330
9993 #, no-wrap
9994 msgid ""
9995 " inspect-get-type root\n"
9996 "\n"
9997 msgstr ""
9998
9999 #. type: textblock
10000 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3596
10001 msgid ""
10002 "This returns the type of the inspected operating system.  Currently defined "
10003 "types are:"
10004 msgstr ""
10005
10006 #. type: =item
10007 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3601
10008 msgid "\"linux\""
10009 msgstr ""
10010
10011 #. type: textblock
10012 #: ../fish/guestfish-actions.pod:2339 ../src/guestfs-actions.pod:3603
10013 msgid "Any Linux-based operating system."
10014 msgstr ""
10015
10016 #. type: textblock
10017 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3607
10018 msgid "Any Microsoft Windows operating system."
10019 msgstr ""
10020
10021 #. type: =item
10022 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3609
10023 msgid "\"freebsd\""
10024 msgstr ""
10025
10026 #. type: textblock
10027 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3611
10028 msgid "FreeBSD."
10029 msgstr ""
10030
10031 #. type: =item
10032 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3613
10033 msgid "\"netbsd\""
10034 msgstr ""
10035
10036 #. type: textblock
10037 #: ../fish/guestfish-actions.pod:2351 ../src/guestfs-actions.pod:3615
10038 msgid "NetBSD."
10039 msgstr ""
10040
10041 #. type: textblock
10042 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3619
10043 msgid "The operating system type could not be determined."
10044 msgstr ""
10045
10046 #. type: =head2
10047 #: ../fish/guestfish-actions.pod:2364
10048 msgid "inspect-get-windows-current-control-set"
10049 msgstr ""
10050
10051 #. type: verbatim
10052 #: ../fish/guestfish-actions.pod:2366
10053 #, no-wrap
10054 msgid ""
10055 " inspect-get-windows-current-control-set root\n"
10056 "\n"
10057 msgstr ""
10058
10059 #. type: textblock
10060 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3639
10061 msgid ""
10062 "This returns the Windows CurrentControlSet of the inspected guest.  The "
10063 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10064 msgstr ""
10065
10066 #. type: textblock
10067 #: ../fish/guestfish-actions.pod:2371 ../src/guestfs-actions.pod:3642
10068 msgid ""
10069 "This call assumes that the guest is Windows and that the Registry could be "
10070 "examined by inspection.  If this is not the case then an error is returned."
10071 msgstr ""
10072
10073 #. type: =head2
10074 #: ../fish/guestfish-actions.pod:2377
10075 msgid "inspect-get-windows-systemroot"
10076 msgstr ""
10077
10078 #. type: verbatim
10079 #: ../fish/guestfish-actions.pod:2379
10080 #, no-wrap
10081 msgid ""
10082 " inspect-get-windows-systemroot root\n"
10083 "\n"
10084 msgstr ""
10085
10086 #. type: textblock
10087 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3659
10088 msgid ""
10089 "This returns the Windows systemroot of the inspected guest.  The systemroot "
10090 "is a directory path such as C</WINDOWS>."
10091 msgstr ""
10092
10093 #. type: textblock
10094 #: ../fish/guestfish-actions.pod:2384 ../src/guestfs-actions.pod:3662
10095 msgid ""
10096 "This call assumes that the guest is Windows and that the systemroot could be "
10097 "determined by inspection.  If this is not the case then an error is "
10098 "returned."
10099 msgstr ""
10100
10101 #. type: =head2
10102 #: ../fish/guestfish-actions.pod:2390
10103 msgid "inspect-is-live"
10104 msgstr ""
10105
10106 #. type: verbatim
10107 #: ../fish/guestfish-actions.pod:2392
10108 #, no-wrap
10109 msgid ""
10110 " inspect-is-live root\n"
10111 "\n"
10112 msgstr ""
10113
10114 #. type: textblock
10115 #: ../fish/guestfish-actions.pod:2394
10116 msgid ""
10117 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10118 "then this returns true if a live image was detected on the disk."
10119 msgstr ""
10120
10121 #. type: =head2
10122 #: ../fish/guestfish-actions.pod:2400
10123 msgid "inspect-is-multipart"
10124 msgstr ""
10125
10126 #. type: verbatim
10127 #: ../fish/guestfish-actions.pod:2402
10128 #, no-wrap
10129 msgid ""
10130 " inspect-is-multipart root\n"
10131 "\n"
10132 msgstr ""
10133
10134 #. type: textblock
10135 #: ../fish/guestfish-actions.pod:2404
10136 msgid ""
10137 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10138 "then this returns true if the disk is part of a set."
10139 msgstr ""
10140
10141 #. type: =head2
10142 #: ../fish/guestfish-actions.pod:2410
10143 msgid "inspect-is-netinst"
10144 msgstr ""
10145
10146 #. type: verbatim
10147 #: ../fish/guestfish-actions.pod:2412
10148 #, no-wrap
10149 msgid ""
10150 " inspect-is-netinst root\n"
10151 "\n"
10152 msgstr ""
10153
10154 #. type: textblock
10155 #: ../fish/guestfish-actions.pod:2414
10156 msgid ""
10157 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10158 "then this returns true if the disk is a network installer, ie. not a "
10159 "self-contained install CD but one which is likely to require network access "
10160 "to complete the install."
10161 msgstr ""
10162
10163 #. type: =head2
10164 #: ../fish/guestfish-actions.pod:2422
10165 msgid "inspect-list-applications"
10166 msgstr ""
10167
10168 #. type: verbatim
10169 #: ../fish/guestfish-actions.pod:2424
10170 #, no-wrap
10171 msgid ""
10172 " inspect-list-applications root\n"
10173 "\n"
10174 msgstr ""
10175
10176 #. type: textblock
10177 #: ../fish/guestfish-actions.pod:2426 ../src/guestfs-actions.pod:3729
10178 msgid "Return the list of applications installed in the operating system."
10179 msgstr ""
10180
10181 #. type: textblock
10182 #: ../fish/guestfish-actions.pod:2428
10183 msgid ""
10184 "I<Note:> This call works differently from other parts of the inspection "
10185 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
10186 "then mount up the disks, before calling this.  Listing applications is a "
10187 "significantly more difficult operation which requires access to the full "
10188 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
10189 "are just returning data cached in the libguestfs handle, this call actually "
10190 "reads parts of the mounted filesystems during the call."
10191 msgstr ""
10192
10193 #. type: textblock
10194 #: ../fish/guestfish-actions.pod:2438 ../src/guestfs-actions.pod:3741
10195 msgid ""
10196 "This returns an empty list if the inspection code was not able to determine "
10197 "the list of applications."
10198 msgstr ""
10199
10200 #. type: textblock
10201 #: ../fish/guestfish-actions.pod:2441 ../src/guestfs-actions.pod:3744
10202 msgid "The application structure contains the following fields:"
10203 msgstr ""
10204
10205 #. type: =item
10206 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3748
10207 msgid "C<app_name>"
10208 msgstr ""
10209
10210 #. type: textblock
10211 #: ../fish/guestfish-actions.pod:2447 ../src/guestfs-actions.pod:3750
10212 msgid ""
10213 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
10214 "guests, this is the package name."
10215 msgstr ""
10216
10217 #. type: =item
10218 #: ../fish/guestfish-actions.pod:2450 ../src/guestfs-actions.pod:3753
10219 msgid "C<app_display_name>"
10220 msgstr ""
10221
10222 #. type: textblock
10223 #: ../fish/guestfish-actions.pod:2452 ../src/guestfs-actions.pod:3755
10224 msgid ""
10225 "The display name of the application, sometimes localized to the install "
10226 "language of the guest operating system."
10227 msgstr ""
10228
10229 #. type: textblock
10230 #: ../fish/guestfish-actions.pod:2455 ../src/guestfs-actions.pod:3758
10231 msgid ""
10232 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
10233 "to display something can use C<app_name> instead."
10234 msgstr ""
10235
10236 #. type: =item
10237 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3761
10238 msgid "C<app_epoch>"
10239 msgstr ""
10240
10241 #. type: textblock
10242 #: ../fish/guestfish-actions.pod:2460 ../src/guestfs-actions.pod:3763
10243 msgid ""
10244 "For package managers which use epochs, this contains the epoch of the "
10245 "package (an integer).  If unavailable, this is returned as C<0>."
10246 msgstr ""
10247
10248 #. type: =item
10249 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3766
10250 msgid "C<app_version>"
10251 msgstr ""
10252
10253 #. type: textblock
10254 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3768
10255 msgid ""
10256 "The version string of the application or package.  If unavailable this is "
10257 "returned as an empty string C<\"\">."
10258 msgstr ""
10259
10260 #. type: =item
10261 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3771
10262 msgid "C<app_release>"
10263 msgstr ""
10264
10265 #. type: textblock
10266 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3773
10267 msgid ""
10268 "The release string of the application or package, for package managers that "
10269 "use this.  If unavailable this is returned as an empty string C<\"\">."
10270 msgstr ""
10271
10272 #. type: =item
10273 #: ../fish/guestfish-actions.pod:2474 ../src/guestfs-actions.pod:3777
10274 msgid "C<app_install_path>"
10275 msgstr ""
10276
10277 #. type: textblock
10278 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3779
10279 msgid ""
10280 "The installation path of the application (on operating systems such as "
10281 "Windows which use installation paths).  This path is in the format used by "
10282 "the guest operating system, it is not a libguestfs path."
10283 msgstr ""
10284
10285 #. type: textblock
10286 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3784
10287 msgid "If unavailable this is returned as an empty string C<\"\">."
10288 msgstr ""
10289
10290 #. type: =item
10291 #: ../fish/guestfish-actions.pod:2483 ../src/guestfs-actions.pod:3786
10292 msgid "C<app_trans_path>"
10293 msgstr ""
10294
10295 #. type: textblock
10296 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3788
10297 msgid ""
10298 "The install path translated into a libguestfs path.  If unavailable this is "
10299 "returned as an empty string C<\"\">."
10300 msgstr ""
10301
10302 #. type: =item
10303 #: ../fish/guestfish-actions.pod:2488 ../src/guestfs-actions.pod:3791
10304 msgid "C<app_publisher>"
10305 msgstr ""
10306
10307 #. type: textblock
10308 #: ../fish/guestfish-actions.pod:2490 ../src/guestfs-actions.pod:3793
10309 msgid ""
10310 "The name of the publisher of the application, for package managers that use "
10311 "this.  If unavailable this is returned as an empty string C<\"\">."
10312 msgstr ""
10313
10314 #. type: =item
10315 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3797
10316 msgid "C<app_url>"
10317 msgstr ""
10318
10319 #. type: textblock
10320 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3799
10321 msgid ""
10322 "The URL (eg. upstream URL) of the application.  If unavailable this is "
10323 "returned as an empty string C<\"\">."
10324 msgstr ""
10325
10326 #. type: =item
10327 #: ../fish/guestfish-actions.pod:2499 ../src/guestfs-actions.pod:3802
10328 msgid "C<app_source_package>"
10329 msgstr ""
10330
10331 #. type: textblock
10332 #: ../fish/guestfish-actions.pod:2501 ../src/guestfs-actions.pod:3804
10333 msgid ""
10334 "For packaging systems which support this, the name of the source package.  "
10335 "If unavailable this is returned as an empty string C<\"\">."
10336 msgstr ""
10337
10338 #. type: =item
10339 #: ../fish/guestfish-actions.pod:2504 ../src/guestfs-actions.pod:3807
10340 msgid "C<app_summary>"
10341 msgstr ""
10342
10343 #. type: textblock
10344 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:3809
10345 msgid ""
10346 "A short (usually one line) description of the application or package.  If "
10347 "unavailable this is returned as an empty string C<\"\">."
10348 msgstr ""
10349
10350 #. type: =item
10351 #: ../fish/guestfish-actions.pod:2509 ../src/guestfs-actions.pod:3812
10352 msgid "C<app_description>"
10353 msgstr ""
10354
10355 #. type: textblock
10356 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3814
10357 msgid ""
10358 "A longer description of the application or package.  If unavailable this is "
10359 "returned as an empty string C<\"\">."
10360 msgstr ""
10361
10362 #. type: =head2
10363 #: ../fish/guestfish-actions.pod:2518
10364 msgid "inspect-os"
10365 msgstr ""
10366
10367 #. type: verbatim
10368 #: ../fish/guestfish-actions.pod:2520
10369 #, no-wrap
10370 msgid ""
10371 " inspect-os\n"
10372 "\n"
10373 msgstr ""
10374
10375 #. type: textblock
10376 #: ../fish/guestfish-actions.pod:2522 ../src/guestfs-actions.pod:3832
10377 msgid ""
10378 "This function uses other libguestfs functions and certain heuristics to "
10379 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
10380 "for operating systems."
10381 msgstr ""
10382
10383 #. type: textblock
10384 #: ../fish/guestfish-actions.pod:2526 ../src/guestfs-actions.pod:3836
10385 msgid "The list returned is empty if no operating systems were found."
10386 msgstr ""
10387
10388 #. type: textblock
10389 #: ../fish/guestfish-actions.pod:2528 ../src/guestfs-actions.pod:3838
10390 msgid ""
10391 "If one operating system was found, then this returns a list with a single "
10392 "element, which is the name of the root filesystem of this operating system.  "
10393 "It is also possible for this function to return a list containing more than "
10394 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
10395 "element being the root filesystem of one of the operating systems."
10396 msgstr ""
10397
10398 #. type: textblock
10399 #: ../fish/guestfish-actions.pod:2535
10400 msgid ""
10401 "You can pass the root string(s) returned to other L</inspect-get-*> "
10402 "functions in order to query further information about each operating system, "
10403 "such as the name and version."
10404 msgstr ""
10405
10406 #. type: textblock
10407 #: ../fish/guestfish-actions.pod:2540
10408 msgid ""
10409 "This function uses other libguestfs features such as L</mount-ro> and "
10410 "L</umount-all> in order to mount and unmount filesystems and look at the "
10411 "contents.  This should be called with no disks currently mounted.  The "
10412 "function may also use Augeas, so any existing Augeas handle will be closed."
10413 msgstr ""
10414
10415 #. type: textblock
10416 #: ../fish/guestfish-actions.pod:2546 ../src/guestfs-actions.pod:3856
10417 msgid ""
10418 "This function cannot decrypt encrypted disks.  The caller must do that first "
10419 "(supplying the necessary keys) if the disk is encrypted."
10420 msgstr ""
10421
10422 #. type: textblock
10423 #: ../fish/guestfish-actions.pod:2552 ../fish/guestfish-actions.pod:2750 ../fish/guestfish-actions.pod:2809
10424 msgid "See also L</list-filesystems>."
10425 msgstr ""
10426
10427 #. type: =head2
10428 #: ../fish/guestfish-actions.pod:2554
10429 msgid "is-blockdev"
10430 msgstr ""
10431
10432 #. type: verbatim
10433 #: ../fish/guestfish-actions.pod:2556
10434 #, no-wrap
10435 msgid ""
10436 " is-blockdev path\n"
10437 "\n"
10438 msgstr ""
10439
10440 #. type: textblock
10441 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3876
10442 msgid ""
10443 "This returns C<true> if and only if there is a block device with the given "
10444 "C<path> name."
10445 msgstr ""
10446
10447 #. type: textblock
10448 #: ../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
10449 msgid "See also L</stat>."
10450 msgstr ""
10451
10452 #. type: =head2
10453 #: ../fish/guestfish-actions.pod:2563
10454 msgid "is-busy"
10455 msgstr ""
10456
10457 #. type: verbatim
10458 #: ../fish/guestfish-actions.pod:2565
10459 #, no-wrap
10460 msgid ""
10461 " is-busy\n"
10462 "\n"
10463 msgstr ""
10464
10465 #. type: textblock
10466 #: ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:3890
10467 msgid ""
10468 "This returns true iff this handle is busy processing a command (in the "
10469 "C<BUSY> state)."
10470 msgstr ""
10471
10472 #. type: =head2
10473 #: ../fish/guestfish-actions.pod:2572
10474 msgid "is-chardev"
10475 msgstr ""
10476
10477 #. type: verbatim
10478 #: ../fish/guestfish-actions.pod:2574
10479 #, no-wrap
10480 msgid ""
10481 " is-chardev path\n"
10482 "\n"
10483 msgstr ""
10484
10485 #. type: textblock
10486 #: ../fish/guestfish-actions.pod:2576 ../src/guestfs-actions.pod:3905
10487 msgid ""
10488 "This returns C<true> if and only if there is a character device with the "
10489 "given C<path> name."
10490 msgstr ""
10491
10492 #. type: =head2
10493 #: ../fish/guestfish-actions.pod:2581
10494 msgid "is-config"
10495 msgstr ""
10496
10497 #. type: verbatim
10498 #: ../fish/guestfish-actions.pod:2583
10499 #, no-wrap
10500 msgid ""
10501 " is-config\n"
10502 "\n"
10503 msgstr ""
10504
10505 #. type: textblock
10506 #: ../fish/guestfish-actions.pod:2585 ../src/guestfs-actions.pod:3919
10507 msgid ""
10508 "This returns true iff this handle is being configured (in the C<CONFIG> "
10509 "state)."
10510 msgstr ""
10511
10512 #. type: =head2
10513 #: ../fish/guestfish-actions.pod:2590
10514 msgid "is-dir"
10515 msgstr ""
10516
10517 #. type: verbatim
10518 #: ../fish/guestfish-actions.pod:2592
10519 #, no-wrap
10520 msgid ""
10521 " is-dir path\n"
10522 "\n"
10523 msgstr ""
10524
10525 #. type: textblock
10526 #: ../fish/guestfish-actions.pod:2594 ../src/guestfs-actions.pod:3934
10527 msgid ""
10528 "This returns C<true> if and only if there is a directory with the given "
10529 "C<path> name.  Note that it returns false for other objects like files."
10530 msgstr ""
10531
10532 #. type: =head2
10533 #: ../fish/guestfish-actions.pod:2600
10534 msgid "is-fifo"
10535 msgstr ""
10536
10537 #. type: verbatim
10538 #: ../fish/guestfish-actions.pod:2602
10539 #, no-wrap
10540 msgid ""
10541 " is-fifo path\n"
10542 "\n"
10543 msgstr ""
10544
10545 #. type: textblock
10546 #: ../fish/guestfish-actions.pod:2604 ../src/guestfs-actions.pod:3950
10547 msgid ""
10548 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
10549 "given C<path> name."
10550 msgstr ""
10551
10552 #. type: =head2
10553 #: ../fish/guestfish-actions.pod:2609
10554 msgid "is-file"
10555 msgstr ""
10556
10557 #. type: verbatim
10558 #: ../fish/guestfish-actions.pod:2611
10559 #, no-wrap
10560 msgid ""
10561 " is-file path\n"
10562 "\n"
10563 msgstr ""
10564
10565 #. type: textblock
10566 #: ../fish/guestfish-actions.pod:2613 ../src/guestfs-actions.pod:3965
10567 msgid ""
10568 "This returns C<true> if and only if there is a regular file with the given "
10569 "C<path> name.  Note that it returns false for other objects like "
10570 "directories."
10571 msgstr ""
10572
10573 #. type: =head2
10574 #: ../fish/guestfish-actions.pod:2619
10575 msgid "is-launching"
10576 msgstr ""
10577
10578 #. type: verbatim
10579 #: ../fish/guestfish-actions.pod:2621
10580 #, no-wrap
10581 msgid ""
10582 " is-launching\n"
10583 "\n"
10584 msgstr ""
10585
10586 #. type: textblock
10587 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3980
10588 msgid ""
10589 "This returns true iff this handle is launching the subprocess (in the "
10590 "C<LAUNCHING> state)."
10591 msgstr ""
10592
10593 #. type: =head2
10594 #: ../fish/guestfish-actions.pod:2628
10595 msgid "is-lv"
10596 msgstr ""
10597
10598 #. type: verbatim
10599 #: ../fish/guestfish-actions.pod:2630
10600 #, no-wrap
10601 msgid ""
10602 " is-lv device\n"
10603 "\n"
10604 msgstr ""
10605
10606 #. type: textblock
10607 #: ../fish/guestfish-actions.pod:2632 ../src/guestfs-actions.pod:3995
10608 msgid ""
10609 "This command tests whether C<device> is a logical volume, and returns true "
10610 "iff this is the case."
10611 msgstr ""
10612
10613 #. type: =head2
10614 #: ../fish/guestfish-actions.pod:2635
10615 msgid "is-ready"
10616 msgstr ""
10617
10618 #. type: verbatim
10619 #: ../fish/guestfish-actions.pod:2637
10620 #, no-wrap
10621 msgid ""
10622 " is-ready\n"
10623 "\n"
10624 msgstr ""
10625
10626 #. type: textblock
10627 #: ../fish/guestfish-actions.pod:2639 ../src/guestfs-actions.pod:4007
10628 msgid ""
10629 "This returns true iff this handle is ready to accept commands (in the "
10630 "C<READY> state)."
10631 msgstr ""
10632
10633 #. type: =head2
10634 #: ../fish/guestfish-actions.pod:2644
10635 msgid "is-socket"
10636 msgstr ""
10637
10638 #. type: verbatim
10639 #: ../fish/guestfish-actions.pod:2646
10640 #, no-wrap
10641 msgid ""
10642 " is-socket path\n"
10643 "\n"
10644 msgstr ""
10645
10646 #. type: textblock
10647 #: ../fish/guestfish-actions.pod:2648 ../src/guestfs-actions.pod:4022
10648 msgid ""
10649 "This returns C<true> if and only if there is a Unix domain socket with the "
10650 "given C<path> name."
10651 msgstr ""
10652
10653 #. type: =head2
10654 #: ../fish/guestfish-actions.pod:2653
10655 msgid "is-symlink"
10656 msgstr ""
10657
10658 #. type: verbatim
10659 #: ../fish/guestfish-actions.pod:2655
10660 #, no-wrap
10661 msgid ""
10662 " is-symlink path\n"
10663 "\n"
10664 msgstr ""
10665
10666 #. type: textblock
10667 #: ../fish/guestfish-actions.pod:2657 ../src/guestfs-actions.pod:4037
10668 msgid ""
10669 "This returns C<true> if and only if there is a symbolic link with the given "
10670 "C<path> name."
10671 msgstr ""
10672
10673 #. type: =head2
10674 #: ../fish/guestfish-actions.pod:2662
10675 msgid "is-zero"
10676 msgstr ""
10677
10678 #. type: verbatim
10679 #: ../fish/guestfish-actions.pod:2664
10680 #, no-wrap
10681 msgid ""
10682 " is-zero path\n"
10683 "\n"
10684 msgstr ""
10685
10686 #. type: textblock
10687 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:4052
10688 msgid ""
10689 "This returns true iff the file exists and the file is empty or it contains "
10690 "all zero bytes."
10691 msgstr ""
10692
10693 #. type: =head2
10694 #: ../fish/guestfish-actions.pod:2669
10695 msgid "is-zero-device"
10696 msgstr ""
10697
10698 #. type: verbatim
10699 #: ../fish/guestfish-actions.pod:2671
10700 #, no-wrap
10701 msgid ""
10702 " is-zero-device device\n"
10703 "\n"
10704 msgstr ""
10705
10706 #. type: textblock
10707 #: ../fish/guestfish-actions.pod:2673 ../src/guestfs-actions.pod:4065
10708 msgid "This returns true iff the device exists and contains all zero bytes."
10709 msgstr ""
10710
10711 #. type: textblock
10712 #: ../fish/guestfish-actions.pod:2675 ../src/guestfs-actions.pod:4067
10713 msgid "Note that for large devices this can take a long time to run."
10714 msgstr ""
10715
10716 #. type: =head2
10717 #: ../fish/guestfish-actions.pod:2677
10718 msgid "kill-subprocess"
10719 msgstr ""
10720
10721 #. type: verbatim
10722 #: ../fish/guestfish-actions.pod:2679
10723 #, no-wrap
10724 msgid ""
10725 " kill-subprocess\n"
10726 "\n"
10727 msgstr ""
10728
10729 #. type: textblock
10730 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:4078
10731 msgid "This kills the qemu subprocess.  You should never need to call this."
10732 msgstr ""
10733
10734 #. type: =head2
10735 #: ../fish/guestfish-actions.pod:2683
10736 msgid "launch"
10737 msgstr ""
10738
10739 #. type: =head2
10740 #: ../fish/guestfish-actions.pod:2685
10741 msgid "run"
10742 msgstr ""
10743
10744 #. type: verbatim
10745 #: ../fish/guestfish-actions.pod:2687
10746 #, no-wrap
10747 msgid ""
10748 " launch\n"
10749 "\n"
10750 msgstr ""
10751
10752 #. type: textblock
10753 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4089
10754 msgid ""
10755 "Internally libguestfs is implemented by running a virtual machine using "
10756 "L<qemu(1)>."
10757 msgstr ""
10758
10759 #. type: textblock
10760 #: ../fish/guestfish-actions.pod:2692 ../src/guestfs-actions.pod:4092
10761 msgid ""
10762 "You should call this after configuring the handle (eg. adding drives) but "
10763 "before performing any actions."
10764 msgstr ""
10765
10766 #. type: =head2
10767 #: ../fish/guestfish-actions.pod:2695
10768 msgid "lchown"
10769 msgstr ""
10770
10771 #. type: verbatim
10772 #: ../fish/guestfish-actions.pod:2697
10773 #, no-wrap
10774 msgid ""
10775 " lchown owner group path\n"
10776 "\n"
10777 msgstr ""
10778
10779 #. type: textblock
10780 #: ../fish/guestfish-actions.pod:2699
10781 msgid ""
10782 "Change the file owner to C<owner> and group to C<group>.  This is like "
10783 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
10784 "the target."
10785 msgstr ""
10786
10787 #. type: =head2
10788 #: ../fish/guestfish-actions.pod:2707
10789 msgid "lgetxattr"
10790 msgstr ""
10791
10792 #. type: verbatim
10793 #: ../fish/guestfish-actions.pod:2709
10794 #, no-wrap
10795 msgid ""
10796 " lgetxattr path name\n"
10797 "\n"
10798 msgstr ""
10799
10800 #. type: textblock
10801 #: ../fish/guestfish-actions.pod:2711 ../src/guestfs-actions.pod:4132
10802 msgid ""
10803 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
10804 "is a symlink, then this call returns an extended attribute from the symlink."
10805 msgstr ""
10806
10807 #. type: textblock
10808 #: ../fish/guestfish-actions.pod:2725
10809 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10810 msgstr ""
10811
10812 #. type: =head2
10813 #: ../fish/guestfish-actions.pod:2727
10814 msgid "lgetxattrs"
10815 msgstr ""
10816
10817 #. type: verbatim
10818 #: ../fish/guestfish-actions.pod:2729
10819 #, no-wrap
10820 msgid ""
10821 " lgetxattrs path\n"
10822 "\n"
10823 msgstr ""
10824
10825 #. type: textblock
10826 #: ../fish/guestfish-actions.pod:2731
10827 msgid ""
10828 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
10829 "it returns the extended attributes of the link itself."
10830 msgstr ""
10831
10832 #. type: =head2
10833 #: ../fish/guestfish-actions.pod:2735
10834 msgid "list-9p"
10835 msgstr ""
10836
10837 #. type: verbatim
10838 #: ../fish/guestfish-actions.pod:2737
10839 #, no-wrap
10840 msgid ""
10841 " list-9p\n"
10842 "\n"
10843 msgstr ""
10844
10845 #. type: textblock
10846 #: ../fish/guestfish-actions.pod:2739 ../src/guestfs-actions.pod:4175
10847 msgid ""
10848 "List all 9p filesystems attached to the guest.  A list of mount tags is "
10849 "returned."
10850 msgstr ""
10851
10852 #. type: =head2
10853 #: ../fish/guestfish-actions.pod:2742
10854 msgid "list-devices"
10855 msgstr ""
10856
10857 #. type: verbatim
10858 #: ../fish/guestfish-actions.pod:2744
10859 #, no-wrap
10860 msgid ""
10861 " list-devices\n"
10862 "\n"
10863 msgstr ""
10864
10865 #. type: textblock
10866 #: ../fish/guestfish-actions.pod:2746 ../src/guestfs-actions.pod:4189
10867 msgid "List all the block devices."
10868 msgstr ""
10869
10870 #. type: textblock
10871 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4191
10872 msgid "The full block device names are returned, eg. C</dev/sda>."
10873 msgstr ""
10874
10875 #. type: =head2
10876 #: ../fish/guestfish-actions.pod:2752
10877 msgid "list-dm-devices"
10878 msgstr ""
10879
10880 #. type: verbatim
10881 #: ../fish/guestfish-actions.pod:2754
10882 #, no-wrap
10883 msgid ""
10884 " list-dm-devices\n"
10885 "\n"
10886 msgstr ""
10887
10888 #. type: textblock
10889 #: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4206
10890 msgid "List all device mapper devices."
10891 msgstr ""
10892
10893 #. type: textblock
10894 #: ../fish/guestfish-actions.pod:2758
10895 msgid ""
10896 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
10897 "previous call to L</luks-open>."
10898 msgstr ""
10899
10900 #. type: textblock
10901 #: ../fish/guestfish-actions.pod:2761
10902 msgid ""
10903 "Device mapper devices which correspond to logical volumes are I<not> "
10904 "returned in this list.  Call L</lvs> if you want to list logical volumes."
10905 msgstr ""
10906
10907 #. type: =head2
10908 #: ../fish/guestfish-actions.pod:2765
10909 msgid "list-filesystems"
10910 msgstr ""
10911
10912 #. type: verbatim
10913 #: ../fish/guestfish-actions.pod:2767
10914 #, no-wrap
10915 msgid ""
10916 " list-filesystems\n"
10917 "\n"
10918 msgstr ""
10919
10920 #. type: textblock
10921 #: ../fish/guestfish-actions.pod:2769 ../src/guestfs-actions.pod:4226
10922 msgid ""
10923 "This inspection command looks for filesystems on partitions, block devices "
10924 "and logical volumes, returning a list of devices containing filesystems and "
10925 "their type."
10926 msgstr ""
10927
10928 #. type: textblock
10929 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4230
10930 msgid ""
10931 "The return value is a hash, where the keys are the devices containing "
10932 "filesystems, and the values are the filesystem types.  For example:"
10933 msgstr ""
10934
10935 #. type: verbatim
10936 #: ../fish/guestfish-actions.pod:2777 ../src/guestfs-actions.pod:4234
10937 #, no-wrap
10938 msgid ""
10939 " \"/dev/sda1\" => \"ntfs\"\n"
10940 " \"/dev/sda2\" => \"ext2\"\n"
10941 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10942 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10943 "\n"
10944 msgstr ""
10945
10946 #. type: textblock
10947 #: ../fish/guestfish-actions.pod:2782 ../src/guestfs-actions.pod:4239
10948 msgid ""
10949 "The value can have the special value \"unknown\", meaning the content of the "
10950 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10951 msgstr ""
10952
10953 #. type: textblock
10954 #: ../fish/guestfish-actions.pod:2786
10955 msgid ""
10956 "This command runs other libguestfs commands, which might include L</mount> "
10957 "and L</umount>, and therefore you should use this soon after launch and only "
10958 "when nothing is mounted."
10959 msgstr ""
10960
10961 #. type: textblock
10962 #: ../fish/guestfish-actions.pod:2790
10963 msgid ""
10964 "Not all of the filesystems returned will be mountable.  In particular, swap "
10965 "partitions are returned in the list.  Also this command does not check that "
10966 "each filesystem found is valid and mountable, and some filesystems might be "
10967 "mountable but require special options.  Filesystems may not all belong to a "
10968 "single logical operating system (use L</inspect-os> to look for OSes)."
10969 msgstr ""
10970
10971 #. type: =head2
10972 #: ../fish/guestfish-actions.pod:2798
10973 msgid "list-partitions"
10974 msgstr ""
10975
10976 #. type: verbatim
10977 #: ../fish/guestfish-actions.pod:2800
10978 #, no-wrap
10979 msgid ""
10980 " list-partitions\n"
10981 "\n"
10982 msgstr ""
10983
10984 #. type: textblock
10985 #: ../fish/guestfish-actions.pod:2802 ../src/guestfs-actions.pod:4268
10986 msgid "List all the partitions detected on all block devices."
10987 msgstr ""
10988
10989 #. type: textblock
10990 #: ../fish/guestfish-actions.pod:2804 ../src/guestfs-actions.pod:4270
10991 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10992 msgstr ""
10993
10994 #. type: textblock
10995 #: ../fish/guestfish-actions.pod:2806
10996 msgid ""
10997 "This does not return logical volumes.  For that you will need to call "
10998 "L</lvs>."
10999 msgstr ""
11000
11001 #. type: =head2
11002 #: ../fish/guestfish-actions.pod:2811
11003 msgid "ll"
11004 msgstr ""
11005
11006 #. type: verbatim
11007 #: ../fish/guestfish-actions.pod:2813
11008 #, no-wrap
11009 msgid ""
11010 " ll directory\n"
11011 "\n"
11012 msgstr ""
11013
11014 #. type: textblock
11015 #: ../fish/guestfish-actions.pod:2815 ../src/guestfs-actions.pod:4289
11016 msgid ""
11017 "List the files in C<directory> (relative to the root directory, there is no "
11018 "cwd) in the format of 'ls -la'."
11019 msgstr ""
11020
11021 #. type: textblock
11022 #: ../fish/guestfish-actions.pod:2818 ../src/guestfs-actions.pod:4292
11023 msgid ""
11024 "This command is mostly useful for interactive sessions.  It is I<not> "
11025 "intended that you try to parse the output string."
11026 msgstr ""
11027
11028 #. type: =head2
11029 #: ../fish/guestfish-actions.pod:2821
11030 msgid "ln"
11031 msgstr ""
11032
11033 #. type: verbatim
11034 #: ../fish/guestfish-actions.pod:2823
11035 #, no-wrap
11036 msgid ""
11037 " ln target linkname\n"
11038 "\n"
11039 msgstr ""
11040
11041 #. type: textblock
11042 #: ../fish/guestfish-actions.pod:2825 ../src/guestfs-actions.pod:4307
11043 msgid "This command creates a hard link using the C<ln> command."
11044 msgstr ""
11045
11046 #. type: =head2
11047 #: ../fish/guestfish-actions.pod:2827
11048 msgid "ln-f"
11049 msgstr ""
11050
11051 #. type: verbatim
11052 #: ../fish/guestfish-actions.pod:2829
11053 #, no-wrap
11054 msgid ""
11055 " ln-f target linkname\n"
11056 "\n"
11057 msgstr ""
11058
11059 #. type: textblock
11060 #: ../fish/guestfish-actions.pod:2831 ../src/guestfs-actions.pod:4320
11061 msgid ""
11062 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
11063 "option removes the link (C<linkname>) if it exists already."
11064 msgstr ""
11065
11066 #. type: =head2
11067 #: ../fish/guestfish-actions.pod:2834
11068 msgid "ln-s"
11069 msgstr ""
11070
11071 #. type: verbatim
11072 #: ../fish/guestfish-actions.pod:2836
11073 #, no-wrap
11074 msgid ""
11075 " ln-s target linkname\n"
11076 "\n"
11077 msgstr ""
11078
11079 #. type: textblock
11080 #: ../fish/guestfish-actions.pod:2838 ../src/guestfs-actions.pod:4334
11081 msgid "This command creates a symbolic link using the C<ln -s> command."
11082 msgstr ""
11083
11084 #. type: =head2
11085 #: ../fish/guestfish-actions.pod:2840
11086 msgid "ln-sf"
11087 msgstr ""
11088
11089 #. type: verbatim
11090 #: ../fish/guestfish-actions.pod:2842
11091 #, no-wrap
11092 msgid ""
11093 " ln-sf target linkname\n"
11094 "\n"
11095 msgstr ""
11096
11097 #. type: textblock
11098 #: ../fish/guestfish-actions.pod:2844 ../src/guestfs-actions.pod:4347
11099 msgid ""
11100 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
11101 "option removes the link (C<linkname>) if it exists already."
11102 msgstr ""
11103
11104 #. type: =head2
11105 #: ../fish/guestfish-actions.pod:2847
11106 msgid "lremovexattr"
11107 msgstr ""
11108
11109 #. type: verbatim
11110 #: ../fish/guestfish-actions.pod:2849
11111 #, no-wrap
11112 msgid ""
11113 " lremovexattr xattr path\n"
11114 "\n"
11115 msgstr ""
11116
11117 #. type: textblock
11118 #: ../fish/guestfish-actions.pod:2851
11119 msgid ""
11120 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
11121 "it removes an extended attribute of the link itself."
11122 msgstr ""
11123
11124 #. type: =head2
11125 #: ../fish/guestfish-actions.pod:2855
11126 msgid "ls"
11127 msgstr ""
11128
11129 #. type: verbatim
11130 #: ../fish/guestfish-actions.pod:2857
11131 #, no-wrap
11132 msgid ""
11133 " ls directory\n"
11134 "\n"
11135 msgstr ""
11136
11137 #. type: textblock
11138 #: ../fish/guestfish-actions.pod:2859 ../src/guestfs-actions.pod:4375
11139 msgid ""
11140 "List the files in C<directory> (relative to the root directory, there is no "
11141 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
11142 "shown."
11143 msgstr ""
11144
11145 #. type: textblock
11146 #: ../fish/guestfish-actions.pod:2863
11147 msgid ""
11148 "This command is mostly useful for interactive sessions.  Programs should "
11149 "probably use L</readdir> instead."
11150 msgstr ""
11151
11152 #. type: =head2
11153 #: ../fish/guestfish-actions.pod:2866
11154 msgid "lsetxattr"
11155 msgstr ""
11156
11157 #. type: verbatim
11158 #: ../fish/guestfish-actions.pod:2868
11159 #, no-wrap
11160 msgid ""
11161 " lsetxattr xattr val vallen path\n"
11162 "\n"
11163 msgstr ""
11164
11165 #. type: textblock
11166 #: ../fish/guestfish-actions.pod:2870
11167 msgid ""
11168 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
11169 "sets an extended attribute of the link itself."
11170 msgstr ""
11171
11172 #. type: =head2
11173 #: ../fish/guestfish-actions.pod:2874
11174 msgid "lstat"
11175 msgstr ""
11176
11177 #. type: verbatim
11178 #: ../fish/guestfish-actions.pod:2876
11179 #, no-wrap
11180 msgid ""
11181 " lstat path\n"
11182 "\n"
11183 msgstr ""
11184
11185 #. type: textblock
11186 #: ../fish/guestfish-actions.pod:2878 ../fish/guestfish-actions.pod:4702 ../src/guestfs-actions.pod:4411 ../src/guestfs-actions.pod:7214
11187 msgid "Returns file information for the given C<path>."
11188 msgstr ""
11189
11190 #. type: textblock
11191 #: ../fish/guestfish-actions.pod:2880
11192 msgid ""
11193 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
11194 "the link is stat-ed, not the file it refers to."
11195 msgstr ""
11196
11197 #. type: textblock
11198 #: ../fish/guestfish-actions.pod:2884 ../src/guestfs-actions.pod:4417
11199 msgid "This is the same as the C<lstat(2)> system call."
11200 msgstr ""
11201
11202 #. type: =head2
11203 #: ../fish/guestfish-actions.pod:2886
11204 msgid "lstatlist"
11205 msgstr ""
11206
11207 #. type: verbatim
11208 #: ../fish/guestfish-actions.pod:2888
11209 #, no-wrap
11210 msgid ""
11211 " lstatlist path 'names ...'\n"
11212 "\n"
11213 msgstr ""
11214
11215 #. type: textblock
11216 #: ../fish/guestfish-actions.pod:2890
11217 msgid ""
11218 "This call allows you to perform the L</lstat> operation on multiple files, "
11219 "where all files are in the directory C<path>.  C<names> is the list of files "
11220 "from this directory."
11221 msgstr ""
11222
11223 #. type: textblock
11224 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4436
11225 msgid ""
11226 "On return you get a list of stat structs, with a one-to-one correspondence "
11227 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
11228 "then the C<ino> field of that structure is set to C<-1>."
11229 msgstr ""
11230
11231 #. type: textblock
11232 #: ../fish/guestfish-actions.pod:2899
11233 msgid ""
11234 "This call is intended for programs that want to efficiently list a directory "
11235 "contents without making many round-trips.  See also L</lxattrlist> for a "
11236 "similarly efficient call for getting extended attributes.  Very long "
11237 "directory listings might cause the protocol message size to be exceeded, "
11238 "causing this call to fail.  The caller must split up such requests into "
11239 "smaller groups of names."
11240 msgstr ""
11241
11242 #. type: =head2
11243 #: ../fish/guestfish-actions.pod:2907
11244 msgid "luks-add-key"
11245 msgstr ""
11246
11247 #. type: verbatim
11248 #: ../fish/guestfish-actions.pod:2909
11249 #, no-wrap
11250 msgid ""
11251 " luks-add-key device keyslot\n"
11252 "\n"
11253 msgstr ""
11254
11255 #. type: textblock
11256 #: ../fish/guestfish-actions.pod:2911 ../src/guestfs-actions.pod:4464
11257 msgid ""
11258 "This command adds a new key on LUKS device C<device>.  C<key> is any "
11259 "existing key, and is used to access the device.  C<newkey> is the new key to "
11260 "add.  C<keyslot> is the key slot that will be replaced."
11261 msgstr ""
11262
11263 #. type: textblock
11264 #: ../fish/guestfish-actions.pod:2916
11265 msgid ""
11266 "Note that if C<keyslot> already contains a key, then this command will "
11267 "fail.  You have to use L</luks-kill-slot> first to remove that key."
11268 msgstr ""
11269
11270 #. type: textblock
11271 #: ../fish/guestfish-actions.pod:2920 ../fish/guestfish-actions.pod:2942 ../fish/guestfish-actions.pod:2955 ../fish/guestfish-actions.pod:2969 ../fish/guestfish-actions.pod:2995 ../fish/guestfish-actions.pod:3005
11272 msgid ""
11273 "This command has one or more key or passphrase parameters.  Guestfish will "
11274 "prompt for these separately."
11275 msgstr ""
11276
11277 #. type: =head2
11278 #: ../fish/guestfish-actions.pod:2923
11279 msgid "luks-close"
11280 msgstr ""
11281
11282 #. type: verbatim
11283 #: ../fish/guestfish-actions.pod:2925
11284 #, no-wrap
11285 msgid ""
11286 " luks-close device\n"
11287 "\n"
11288 msgstr ""
11289
11290 #. type: textblock
11291 #: ../fish/guestfish-actions.pod:2927
11292 msgid ""
11293 "This closes a LUKS device that was created earlier by L</luks-open> or "
11294 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
11295 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
11296 "underlying block device."
11297 msgstr ""
11298
11299 #. type: =head2
11300 #: ../fish/guestfish-actions.pod:2933
11301 msgid "luks-format"
11302 msgstr ""
11303
11304 #. type: verbatim
11305 #: ../fish/guestfish-actions.pod:2935
11306 #, no-wrap
11307 msgid ""
11308 " luks-format device keyslot\n"
11309 "\n"
11310 msgstr ""
11311
11312 #. type: textblock
11313 #: ../fish/guestfish-actions.pod:2937 ../src/guestfs-actions.pod:4505
11314 msgid ""
11315 "This command erases existing data on C<device> and formats the device as a "
11316 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
11317 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
11318 msgstr ""
11319
11320 #. type: textblock
11321 #: ../fish/guestfish-actions.pod:2945 ../fish/guestfish-actions.pod:2958 ../fish/guestfish-actions.pod:3045 ../fish/guestfish-actions.pod:3696 ../fish/guestfish-actions.pod:4236 ../fish/guestfish-actions.pod:4573 ../fish/guestfish-actions.pod:4596 ../fish/guestfish-actions.pod:4618 ../fish/guestfish-actions.pod:5364 ../src/guestfs-actions.pod:4512 ../src/guestfs-actions.pod:4535 ../src/guestfs-actions.pod:4678 ../src/guestfs-actions.pod:5771 ../src/guestfs-actions.pod:6577 ../src/guestfs-actions.pod:7028 ../src/guestfs-actions.pod:7058 ../src/guestfs-actions.pod:7091 ../src/guestfs-actions.pod:8290
11322 msgid ""
11323 "B<This command is dangerous.  Without careful use you can easily destroy all "
11324 "your data>."
11325 msgstr ""
11326
11327 #. type: =head2
11328 #: ../fish/guestfish-actions.pod:2948
11329 msgid "luks-format-cipher"
11330 msgstr ""
11331
11332 #. type: verbatim
11333 #: ../fish/guestfish-actions.pod:2950
11334 #, no-wrap
11335 msgid ""
11336 " luks-format-cipher device keyslot cipher\n"
11337 "\n"
11338 msgstr ""
11339
11340 #. type: textblock
11341 #: ../fish/guestfish-actions.pod:2952
11342 msgid ""
11343 "This command is the same as L</luks-format> but it also allows you to set "
11344 "the C<cipher> used."
11345 msgstr ""
11346
11347 #. type: =head2
11348 #: ../fish/guestfish-actions.pod:2961
11349 msgid "luks-kill-slot"
11350 msgstr ""
11351
11352 #. type: verbatim
11353 #: ../fish/guestfish-actions.pod:2963
11354 #, no-wrap
11355 msgid ""
11356 " luks-kill-slot device keyslot\n"
11357 "\n"
11358 msgstr ""
11359
11360 #. type: textblock
11361 #: ../fish/guestfish-actions.pod:2965 ../src/guestfs-actions.pod:4552
11362 msgid ""
11363 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
11364 "device C<device>.  C<key> must be one of the I<other> keys."
11365 msgstr ""
11366
11367 #. type: =head2
11368 #: ../fish/guestfish-actions.pod:2972
11369 msgid "luks-open"
11370 msgstr ""
11371
11372 #. type: verbatim
11373 #: ../fish/guestfish-actions.pod:2974
11374 #, no-wrap
11375 msgid ""
11376 " luks-open device mapname\n"
11377 "\n"
11378 msgstr ""
11379
11380 #. type: textblock
11381 #: ../fish/guestfish-actions.pod:2976 ../src/guestfs-actions.pod:4572
11382 msgid ""
11383 "This command opens a block device which has been encrypted according to the "
11384 "Linux Unified Key Setup (LUKS) standard."
11385 msgstr ""
11386
11387 #. type: textblock
11388 #: ../fish/guestfish-actions.pod:2979 ../src/guestfs-actions.pod:4575
11389 msgid "C<device> is the encrypted block device or partition."
11390 msgstr ""
11391
11392 #. type: textblock
11393 #: ../fish/guestfish-actions.pod:2981 ../src/guestfs-actions.pod:4577
11394 msgid ""
11395 "The caller must supply one of the keys associated with the LUKS block "
11396 "device, in the C<key> parameter."
11397 msgstr ""
11398
11399 #. type: textblock
11400 #: ../fish/guestfish-actions.pod:2984 ../src/guestfs-actions.pod:4580
11401 msgid ""
11402 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
11403 "writes to this block device are decrypted from and encrypted to the "
11404 "underlying C<device> respectively."
11405 msgstr ""
11406
11407 #. type: textblock
11408 #: ../fish/guestfish-actions.pod:2988
11409 msgid ""
11410 "If this block device contains LVM volume groups, then calling L</vgscan> "
11411 "followed by L</vg-activate-all> will make them visible."
11412 msgstr ""
11413
11414 #. type: textblock
11415 #: ../fish/guestfish-actions.pod:2992
11416 msgid "Use L</list-dm-devices> to list all device mapper devices."
11417 msgstr ""
11418
11419 #. type: =head2
11420 #: ../fish/guestfish-actions.pod:2998
11421 msgid "luks-open-ro"
11422 msgstr ""
11423
11424 #. type: verbatim
11425 #: ../fish/guestfish-actions.pod:3000
11426 #, no-wrap
11427 msgid ""
11428 " luks-open-ro device mapname\n"
11429 "\n"
11430 msgstr ""
11431
11432 #. type: textblock
11433 #: ../fish/guestfish-actions.pod:3002
11434 msgid ""
11435 "This is the same as L</luks-open> except that a read-only mapping is "
11436 "created."
11437 msgstr ""
11438
11439 #. type: =head2
11440 #: ../fish/guestfish-actions.pod:3008
11441 msgid "lvcreate"
11442 msgstr ""
11443
11444 #. type: verbatim
11445 #: ../fish/guestfish-actions.pod:3010
11446 #, no-wrap
11447 msgid ""
11448 " lvcreate logvol volgroup mbytes\n"
11449 "\n"
11450 msgstr ""
11451
11452 #. type: textblock
11453 #: ../fish/guestfish-actions.pod:3012 ../src/guestfs-actions.pod:4626
11454 msgid ""
11455 "This creates an LVM logical volume called C<logvol> on the volume group "
11456 "C<volgroup>, with C<size> megabytes."
11457 msgstr ""
11458
11459 #. type: =head2
11460 #: ../fish/guestfish-actions.pod:3015
11461 msgid "lvm-canonical-lv-name"
11462 msgstr ""
11463
11464 #. type: verbatim
11465 #: ../fish/guestfish-actions.pod:3017
11466 #, no-wrap
11467 msgid ""
11468 " lvm-canonical-lv-name lvname\n"
11469 "\n"
11470 msgstr ""
11471
11472 #. type: textblock
11473 #: ../fish/guestfish-actions.pod:3019 ../src/guestfs-actions.pod:4639
11474 msgid ""
11475 "This converts alternative naming schemes for LVs that you might find to the "
11476 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
11477 "C</dev/VG/LV>."
11478 msgstr ""
11479
11480 #. type: textblock
11481 #: ../fish/guestfish-actions.pod:3023 ../src/guestfs-actions.pod:4643
11482 msgid ""
11483 "This command returns an error if the C<lvname> parameter does not refer to a "
11484 "logical volume."
11485 msgstr ""
11486
11487 #. type: textblock
11488 #: ../fish/guestfish-actions.pod:3026
11489 msgid "See also L</is-lv>."
11490 msgstr ""
11491
11492 #. type: =head2
11493 #: ../fish/guestfish-actions.pod:3028
11494 msgid "lvm-clear-filter"
11495 msgstr ""
11496
11497 #. type: verbatim
11498 #: ../fish/guestfish-actions.pod:3030
11499 #, no-wrap
11500 msgid ""
11501 " lvm-clear-filter\n"
11502 "\n"
11503 msgstr ""
11504
11505 #. type: textblock
11506 #: ../fish/guestfish-actions.pod:3032
11507 msgid ""
11508 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
11509 "block device."
11510 msgstr ""
11511
11512 #. type: textblock
11513 #: ../fish/guestfish-actions.pod:3035 ../fish/guestfish-actions.pod:3066 ../src/guestfs-actions.pod:4661 ../src/guestfs-actions.pod:4703
11514 msgid "This command also clears the LVM cache and performs a volume group scan."
11515 msgstr ""
11516
11517 #. type: =head2
11518 #: ../fish/guestfish-actions.pod:3038
11519 msgid "lvm-remove-all"
11520 msgstr ""
11521
11522 #. type: verbatim
11523 #: ../fish/guestfish-actions.pod:3040
11524 #, no-wrap
11525 msgid ""
11526 " lvm-remove-all\n"
11527 "\n"
11528 msgstr ""
11529
11530 #. type: textblock
11531 #: ../fish/guestfish-actions.pod:3042 ../src/guestfs-actions.pod:4673
11532 msgid ""
11533 "This command removes all LVM logical volumes, volume groups and physical "
11534 "volumes."
11535 msgstr ""
11536
11537 #. type: =head2
11538 #: ../fish/guestfish-actions.pod:3048
11539 msgid "lvm-set-filter"
11540 msgstr ""
11541
11542 #. type: verbatim
11543 #: ../fish/guestfish-actions.pod:3050
11544 #, no-wrap
11545 msgid ""
11546 " lvm-set-filter 'devices ...'\n"
11547 "\n"
11548 msgstr ""
11549
11550 #. type: textblock
11551 #: ../fish/guestfish-actions.pod:3052 ../src/guestfs-actions.pod:4689
11552 msgid ""
11553 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
11554 "block devices in the list C<devices>, and will ignore all other attached "
11555 "block devices."
11556 msgstr ""
11557
11558 #. type: textblock
11559 #: ../fish/guestfish-actions.pod:3056 ../src/guestfs-actions.pod:4693
11560 msgid ""
11561 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
11562 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
11563 "there are two types of duplication possible: either cloned PVs/VGs which "
11564 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
11565 "same name.  In normal operation you cannot create this situation, but you "
11566 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
11567 "inside the LVM metadata."
11568 msgstr ""
11569
11570 #. type: textblock
11571 #: ../fish/guestfish-actions.pod:3069 ../src/guestfs-actions.pod:4706
11572 msgid "You can filter whole block devices or individual partitions."
11573 msgstr ""
11574
11575 #. type: textblock
11576 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4708
11577 msgid ""
11578 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
11579 "filesystem), even if you are not filtering out that VG."
11580 msgstr ""
11581
11582 #. type: =head2
11583 #: ../fish/guestfish-actions.pod:3075
11584 msgid "lvremove"
11585 msgstr ""
11586
11587 #. type: verbatim
11588 #: ../fish/guestfish-actions.pod:3077
11589 #, no-wrap
11590 msgid ""
11591 " lvremove device\n"
11592 "\n"
11593 msgstr ""
11594
11595 #. type: textblock
11596 #: ../fish/guestfish-actions.pod:3079 ../src/guestfs-actions.pod:4722
11597 msgid ""
11598 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
11599 "LV, such as C</dev/VG/LV>."
11600 msgstr ""
11601
11602 #. type: textblock
11603 #: ../fish/guestfish-actions.pod:3082 ../src/guestfs-actions.pod:4725
11604 msgid ""
11605 "You can also remove all LVs in a volume group by specifying the VG name, "
11606 "C</dev/VG>."
11607 msgstr ""
11608
11609 #. type: =head2
11610 #: ../fish/guestfish-actions.pod:3085
11611 msgid "lvrename"
11612 msgstr ""
11613
11614 #. type: verbatim
11615 #: ../fish/guestfish-actions.pod:3087
11616 #, no-wrap
11617 msgid ""
11618 " lvrename logvol newlogvol\n"
11619 "\n"
11620 msgstr ""
11621
11622 #. type: textblock
11623 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4739
11624 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
11625 msgstr ""
11626
11627 #. type: =head2
11628 #: ../fish/guestfish-actions.pod:3091
11629 msgid "lvresize"
11630 msgstr ""
11631
11632 #. type: verbatim
11633 #: ../fish/guestfish-actions.pod:3093
11634 #, no-wrap
11635 msgid ""
11636 " lvresize device mbytes\n"
11637 "\n"
11638 msgstr ""
11639
11640 #. type: textblock
11641 #: ../fish/guestfish-actions.pod:3095 ../src/guestfs-actions.pod:4752
11642 msgid ""
11643 "This resizes (expands or shrinks) an existing LVM logical volume to "
11644 "C<mbytes>.  When reducing, data in the reduced part is lost."
11645 msgstr ""
11646
11647 #. type: =head2
11648 #: ../fish/guestfish-actions.pod:3099
11649 msgid "lvresize-free"
11650 msgstr ""
11651
11652 #. type: verbatim
11653 #: ../fish/guestfish-actions.pod:3101
11654 #, no-wrap
11655 msgid ""
11656 " lvresize-free lv percent\n"
11657 "\n"
11658 msgstr ""
11659
11660 #. type: textblock
11661 #: ../fish/guestfish-actions.pod:3103 ../src/guestfs-actions.pod:4767
11662 msgid ""
11663 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
11664 "remaining free space in the volume group.  Commonly you would call this with "
11665 "pc = 100 which expands the logical volume as much as possible, using all "
11666 "remaining free space in the volume group."
11667 msgstr ""
11668
11669 #. type: =head2
11670 #: ../fish/guestfish-actions.pod:3109
11671 msgid "lvs"
11672 msgstr ""
11673
11674 #. type: verbatim
11675 #: ../fish/guestfish-actions.pod:3111
11676 #, no-wrap
11677 msgid ""
11678 " lvs\n"
11679 "\n"
11680 msgstr ""
11681
11682 #. type: textblock
11683 #: ../fish/guestfish-actions.pod:3113 ../src/guestfs-actions.pod:4782
11684 msgid ""
11685 "List all the logical volumes detected.  This is the equivalent of the "
11686 "L<lvs(8)> command."
11687 msgstr ""
11688
11689 #. type: textblock
11690 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4785
11691 msgid ""
11692 "This returns a list of the logical volume device names "
11693 "(eg. C</dev/VolGroup00/LogVol00>)."
11694 msgstr ""
11695
11696 #. type: textblock
11697 #: ../fish/guestfish-actions.pod:3119
11698 msgid "See also L</lvs-full>, L</list-filesystems>."
11699 msgstr ""
11700
11701 #. type: =head2
11702 #: ../fish/guestfish-actions.pod:3121
11703 msgid "lvs-full"
11704 msgstr ""
11705
11706 #. type: verbatim
11707 #: ../fish/guestfish-actions.pod:3123
11708 #, no-wrap
11709 msgid ""
11710 " lvs-full\n"
11711 "\n"
11712 msgstr ""
11713
11714 #. type: textblock
11715 #: ../fish/guestfish-actions.pod:3125 ../src/guestfs-actions.pod:4801
11716 msgid ""
11717 "List all the logical volumes detected.  This is the equivalent of the "
11718 "L<lvs(8)> command.  The \"full\" version includes all fields."
11719 msgstr ""
11720
11721 #. type: =head2
11722 #: ../fish/guestfish-actions.pod:3128
11723 msgid "lvuuid"
11724 msgstr ""
11725
11726 #. type: verbatim
11727 #: ../fish/guestfish-actions.pod:3130
11728 #, no-wrap
11729 msgid ""
11730 " lvuuid device\n"
11731 "\n"
11732 msgstr ""
11733
11734 #. type: textblock
11735 #: ../fish/guestfish-actions.pod:3132 ../src/guestfs-actions.pod:4816
11736 msgid "This command returns the UUID of the LVM LV C<device>."
11737 msgstr ""
11738
11739 #. type: =head2
11740 #: ../fish/guestfish-actions.pod:3134
11741 msgid "lxattrlist"
11742 msgstr ""
11743
11744 #. type: verbatim
11745 #: ../fish/guestfish-actions.pod:3136
11746 #, no-wrap
11747 msgid ""
11748 " lxattrlist path 'names ...'\n"
11749 "\n"
11750 msgstr ""
11751
11752 #. type: textblock
11753 #: ../fish/guestfish-actions.pod:3138 ../src/guestfs-actions.pod:4830
11754 msgid ""
11755 "This call allows you to get the extended attributes of multiple files, where "
11756 "all files are in the directory C<path>.  C<names> is the list of files from "
11757 "this directory."
11758 msgstr ""
11759
11760 #. type: textblock
11761 #: ../fish/guestfish-actions.pod:3142 ../src/guestfs-actions.pod:4834
11762 msgid ""
11763 "On return you get a flat list of xattr structs which must be interpreted "
11764 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
11765 "C<attrval> in this struct is zero-length to indicate there was an error "
11766 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11767 "number (the number of following attributes for this file, which could be "
11768 "C<\"0\">).  Then after the first xattr struct are the zero or more "
11769 "attributes for the first named file.  This repeats for the second and "
11770 "subsequent files."
11771 msgstr ""
11772
11773 #. type: textblock
11774 #: ../fish/guestfish-actions.pod:3152
11775 msgid ""
11776 "This call is intended for programs that want to efficiently list a directory "
11777 "contents without making many round-trips.  See also L</lstatlist> for a "
11778 "similarly efficient call for getting standard stats.  Very long directory "
11779 "listings might cause the protocol message size to be exceeded, causing this "
11780 "call to fail.  The caller must split up such requests into smaller groups of "
11781 "names."
11782 msgstr ""
11783
11784 #. type: =head2
11785 #: ../fish/guestfish-actions.pod:3160
11786 msgid "mkdir"
11787 msgstr ""
11788
11789 #. type: verbatim
11790 #: ../fish/guestfish-actions.pod:3162
11791 #, no-wrap
11792 msgid ""
11793 " mkdir path\n"
11794 "\n"
11795 msgstr ""
11796
11797 #. type: textblock
11798 #: ../fish/guestfish-actions.pod:3164 ../src/guestfs-actions.pod:4864
11799 msgid "Create a directory named C<path>."
11800 msgstr ""
11801
11802 #. type: =head2
11803 #: ../fish/guestfish-actions.pod:3166
11804 msgid "mkdir-mode"
11805 msgstr ""
11806
11807 #. type: verbatim
11808 #: ../fish/guestfish-actions.pod:3168
11809 #, no-wrap
11810 msgid ""
11811 " mkdir-mode path mode\n"
11812 "\n"
11813 msgstr ""
11814
11815 #. type: textblock
11816 #: ../fish/guestfish-actions.pod:3170 ../src/guestfs-actions.pod:4877
11817 msgid ""
11818 "This command creates a directory, setting the initial permissions of the "
11819 "directory to C<mode>."
11820 msgstr ""
11821
11822 #. type: textblock
11823 #: ../fish/guestfish-actions.pod:3173 ../src/guestfs-actions.pod:4880
11824 msgid ""
11825 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11826 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11827 "other ways."
11828 msgstr ""
11829
11830 #. type: textblock
11831 #: ../fish/guestfish-actions.pod:3177
11832 msgid "See also L</mkdir>, L</umask>"
11833 msgstr ""
11834
11835 #. type: =head2
11836 #: ../fish/guestfish-actions.pod:3179
11837 msgid "mkdir-p"
11838 msgstr ""
11839
11840 #. type: verbatim
11841 #: ../fish/guestfish-actions.pod:3181
11842 #, no-wrap
11843 msgid ""
11844 " mkdir-p path\n"
11845 "\n"
11846 msgstr ""
11847
11848 #. type: textblock
11849 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4896
11850 msgid ""
11851 "Create a directory named C<path>, creating any parent directories as "
11852 "necessary.  This is like the C<mkdir -p> shell command."
11853 msgstr ""
11854
11855 #. type: =head2
11856 #: ../fish/guestfish-actions.pod:3186
11857 msgid "mkdtemp"
11858 msgstr ""
11859
11860 #. type: verbatim
11861 #: ../fish/guestfish-actions.pod:3188
11862 #, no-wrap
11863 msgid ""
11864 " mkdtemp template\n"
11865 "\n"
11866 msgstr ""
11867
11868 #. type: textblock
11869 #: ../fish/guestfish-actions.pod:3190 ../src/guestfs-actions.pod:4909
11870 msgid ""
11871 "This command creates a temporary directory.  The C<template> parameter "
11872 "should be a full pathname for the temporary directory name with the final "
11873 "six characters being \"XXXXXX\"."
11874 msgstr ""
11875
11876 #. type: textblock
11877 #: ../fish/guestfish-actions.pod:3195 ../src/guestfs-actions.pod:4914
11878 msgid ""
11879 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11880 "being suitable for Windows filesystems."
11881 msgstr ""
11882
11883 #. type: textblock
11884 #: ../fish/guestfish-actions.pod:3198 ../src/guestfs-actions.pod:4917
11885 msgid "The name of the temporary directory that was created is returned."
11886 msgstr ""
11887
11888 #. type: textblock
11889 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4920
11890 msgid "The temporary directory is created with mode 0700 and is owned by root."
11891 msgstr ""
11892
11893 #. type: textblock
11894 #: ../fish/guestfish-actions.pod:3204 ../src/guestfs-actions.pod:4923
11895 msgid ""
11896 "The caller is responsible for deleting the temporary directory and its "
11897 "contents after use."
11898 msgstr ""
11899
11900 #. type: textblock
11901 #: ../fish/guestfish-actions.pod:3207 ../src/guestfs-actions.pod:4926
11902 msgid "See also: L<mkdtemp(3)>"
11903 msgstr ""
11904
11905 #. type: =head2
11906 #: ../fish/guestfish-actions.pod:3209
11907 msgid "mke2fs-J"
11908 msgstr ""
11909
11910 #. type: verbatim
11911 #: ../fish/guestfish-actions.pod:3211
11912 #, no-wrap
11913 msgid ""
11914 " mke2fs-J fstype blocksize device journal\n"
11915 "\n"
11916 msgstr ""
11917
11918 #. type: textblock
11919 #: ../fish/guestfish-actions.pod:3213 ../src/guestfs-actions.pod:4942
11920 msgid ""
11921 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11922 "C<journal>.  It is equivalent to the command:"
11923 msgstr ""
11924
11925 #. type: verbatim
11926 #: ../fish/guestfish-actions.pod:3217 ../src/guestfs-actions.pod:4946
11927 #, no-wrap
11928 msgid ""
11929 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11930 "\n"
11931 msgstr ""
11932
11933 #. type: textblock
11934 #: ../fish/guestfish-actions.pod:3219
11935 msgid "See also L</mke2journal>."
11936 msgstr ""
11937
11938 #. type: =head2
11939 #: ../fish/guestfish-actions.pod:3221
11940 msgid "mke2fs-JL"
11941 msgstr ""
11942
11943 #. type: verbatim
11944 #: ../fish/guestfish-actions.pod:3223
11945 #, no-wrap
11946 msgid ""
11947 " mke2fs-JL fstype blocksize device label\n"
11948 "\n"
11949 msgstr ""
11950
11951 #. type: textblock
11952 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4963
11953 msgid ""
11954 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11955 "the journal labeled C<label>."
11956 msgstr ""
11957
11958 #. type: textblock
11959 #: ../fish/guestfish-actions.pod:3228
11960 msgid "See also L</mke2journal-L>."
11961 msgstr ""
11962
11963 #. type: =head2
11964 #: ../fish/guestfish-actions.pod:3230
11965 msgid "mke2fs-JU"
11966 msgstr ""
11967
11968 #. type: verbatim
11969 #: ../fish/guestfish-actions.pod:3232
11970 #, no-wrap
11971 msgid ""
11972 " mke2fs-JU fstype blocksize device uuid\n"
11973 "\n"
11974 msgstr ""
11975
11976 #. type: textblock
11977 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4981
11978 msgid ""
11979 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11980 "the journal with UUID C<uuid>."
11981 msgstr ""
11982
11983 #. type: textblock
11984 #: ../fish/guestfish-actions.pod:3237
11985 msgid "See also L</mke2journal-U>."
11986 msgstr ""
11987
11988 #. type: =head2
11989 #: ../fish/guestfish-actions.pod:3239
11990 msgid "mke2journal"
11991 msgstr ""
11992
11993 #. type: verbatim
11994 #: ../fish/guestfish-actions.pod:3241
11995 #, no-wrap
11996 msgid ""
11997 " mke2journal blocksize device\n"
11998 "\n"
11999 msgstr ""
12000
12001 #. type: textblock
12002 #: ../fish/guestfish-actions.pod:3243 ../src/guestfs-actions.pod:4997
12003 msgid ""
12004 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
12005 "command:"
12006 msgstr ""
12007
12008 #. type: verbatim
12009 #: ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:5000
12010 #, no-wrap
12011 msgid ""
12012 " mke2fs -O journal_dev -b blocksize device\n"
12013 "\n"
12014 msgstr ""
12015
12016 #. type: =head2
12017 #: ../fish/guestfish-actions.pod:3248
12018 msgid "mke2journal-L"
12019 msgstr ""
12020
12021 #. type: verbatim
12022 #: ../fish/guestfish-actions.pod:3250
12023 #, no-wrap
12024 msgid ""
12025 " mke2journal-L blocksize label device\n"
12026 "\n"
12027 msgstr ""
12028
12029 #. type: textblock
12030 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:5014
12031 msgid "This creates an ext2 external journal on C<device> with label C<label>."
12032 msgstr ""
12033
12034 #. type: =head2
12035 #: ../fish/guestfish-actions.pod:3254
12036 msgid "mke2journal-U"
12037 msgstr ""
12038
12039 #. type: verbatim
12040 #: ../fish/guestfish-actions.pod:3256
12041 #, no-wrap
12042 msgid ""
12043 " mke2journal-U blocksize uuid device\n"
12044 "\n"
12045 msgstr ""
12046
12047 #. type: textblock
12048 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:5028
12049 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
12050 msgstr ""
12051
12052 #. type: =head2
12053 #: ../fish/guestfish-actions.pod:3260
12054 msgid "mkfifo"
12055 msgstr ""
12056
12057 #. type: verbatim
12058 #: ../fish/guestfish-actions.pod:3262
12059 #, no-wrap
12060 msgid ""
12061 " mkfifo mode path\n"
12062 "\n"
12063 msgstr ""
12064
12065 #. type: textblock
12066 #: ../fish/guestfish-actions.pod:3264
12067 msgid ""
12068 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
12069 "is just a convenient wrapper around L</mknod>."
12070 msgstr ""
12071
12072 #. type: =head2
12073 #: ../fish/guestfish-actions.pod:3270
12074 msgid "mkfs"
12075 msgstr ""
12076
12077 #. type: verbatim
12078 #: ../fish/guestfish-actions.pod:3272
12079 #, no-wrap
12080 msgid ""
12081 " mkfs fstype device\n"
12082 "\n"
12083 msgstr ""
12084
12085 #. type: textblock
12086 #: ../fish/guestfish-actions.pod:3274 ../src/guestfs-actions.pod:5058
12087 msgid ""
12088 "This creates a filesystem on C<device> (usually a partition or LVM logical "
12089 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
12090 msgstr ""
12091
12092 #. type: =head2
12093 #: ../fish/guestfish-actions.pod:3278
12094 msgid "mkfs-b"
12095 msgstr ""
12096
12097 #. type: verbatim
12098 #: ../fish/guestfish-actions.pod:3280
12099 #, no-wrap
12100 msgid ""
12101 " mkfs-b fstype blocksize device\n"
12102 "\n"
12103 msgstr ""
12104
12105 #. type: textblock
12106 #: ../fish/guestfish-actions.pod:3282
12107 msgid ""
12108 "This call is similar to L</mkfs>, but it allows you to control the block "
12109 "size of the resulting filesystem.  Supported block sizes depend on the "
12110 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
12111 msgstr ""
12112
12113 #. type: textblock
12114 #: ../fish/guestfish-actions.pod:3287 ../fish/guestfish-actions.pod:3314 ../src/guestfs-actions.pod:5086 ../src/guestfs-actions.pod:5124
12115 msgid ""
12116 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
12117 "cluster size."
12118 msgstr ""
12119
12120 #. type: textblock
12121 #: ../fish/guestfish-actions.pod:3290
12122 msgid ""
12123 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
12124 "instead."
12125 msgstr ""
12126
12127 #. type: =head2
12128 #: ../fish/guestfish-actions.pod:3297
12129 msgid "mkfs-opts"
12130 msgstr ""
12131
12132 #. type: verbatim
12133 #: ../fish/guestfish-actions.pod:3299
12134 #, no-wrap
12135 msgid ""
12136 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] "
12137 "[sectorsize:..]\n"
12138 "\n"
12139 msgstr ""
12140
12141 #. type: textblock
12142 #: ../fish/guestfish-actions.pod:3301 ../src/guestfs-actions.pod:5111
12143 msgid ""
12144 "This function creates a filesystem on C<device>.  The filesystem type is "
12145 "C<fstype>, for example C<ext3>."
12146 msgstr ""
12147
12148 #. type: =item
12149 #: ../fish/guestfish-actions.pod:3308 ../src/guestfs-actions.pod:5118
12150 msgid "C<blocksize>"
12151 msgstr ""
12152
12153 #. type: textblock
12154 #: ../fish/guestfish-actions.pod:3310 ../src/guestfs-actions.pod:5120
12155 msgid ""
12156 "The filesystem block size.  Supported block sizes depend on the filesystem "
12157 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
12158 "filesystems."
12159 msgstr ""
12160
12161 #. type: textblock
12162 #: ../fish/guestfish-actions.pod:3317 ../src/guestfs-actions.pod:5127
12163 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
12164 msgstr ""
12165
12166 #. type: =item
12167 #: ../fish/guestfish-actions.pod:3319 ../src/guestfs-actions.pod:5129
12168 msgid "C<features>"
12169 msgstr ""
12170
12171 #. type: textblock
12172 #: ../fish/guestfish-actions.pod:3321 ../src/guestfs-actions.pod:5131
12173 msgid "This passes the I<-O> parameter to the external mkfs program."
12174 msgstr ""
12175
12176 #. type: textblock
12177 #: ../fish/guestfish-actions.pod:3323 ../src/guestfs-actions.pod:5133
12178 msgid ""
12179 "For certain filesystem types, this allows extra filesystem features to be "
12180 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
12181 msgstr ""
12182
12183 #. type: textblock
12184 #: ../fish/guestfish-actions.pod:3327 ../src/guestfs-actions.pod:5137
12185 msgid ""
12186 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
12187 "type."
12188 msgstr ""
12189
12190 #. type: =item
12191 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5140
12192 msgid "C<inode>"
12193 msgstr ""
12194
12195 #. type: textblock
12196 #: ../fish/guestfish-actions.pod:3332 ../src/guestfs-actions.pod:5142
12197 msgid ""
12198 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
12199 "sets the inode size (only for ext2/3/4 filesystems at present)."
12200 msgstr ""
12201
12202 #. type: =item
12203 #: ../fish/guestfish-actions.pod:3335 ../src/guestfs-actions.pod:5145
12204 msgid "C<sectorsize>"
12205 msgstr ""
12206
12207 #. type: textblock
12208 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5147
12209 msgid ""
12210 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
12211 "sets sector size for ufs filesystem."
12212 msgstr ""
12213
12214 #. type: =head2
12215 #: ../fish/guestfish-actions.pod:3344
12216 msgid "mkmountpoint"
12217 msgstr ""
12218
12219 #. type: verbatim
12220 #: ../fish/guestfish-actions.pod:3346
12221 #, no-wrap
12222 msgid ""
12223 " mkmountpoint exemptpath\n"
12224 "\n"
12225 msgstr ""
12226
12227 #. type: textblock
12228 #: ../fish/guestfish-actions.pod:3348
12229 msgid ""
12230 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
12231 "to create extra mountpoints before mounting the first filesystem."
12232 msgstr ""
12233
12234 #. type: textblock
12235 #: ../fish/guestfish-actions.pod:3352 ../src/guestfs-actions.pod:5190
12236 msgid ""
12237 "These calls are I<only> necessary in some very limited circumstances, mainly "
12238 "the case where you want to mount a mix of unrelated and/or read-only "
12239 "filesystems together."
12240 msgstr ""
12241
12242 #. type: textblock
12243 #: ../fish/guestfish-actions.pod:3356 ../src/guestfs-actions.pod:5194
12244 msgid ""
12245 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
12246 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
12247 "inside that.  You can unpack this as follows in guestfish:"
12248 msgstr ""
12249
12250 #. type: verbatim
12251 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5199
12252 #, no-wrap
12253 msgid ""
12254 " add-ro Fedora-11-i686-Live.iso\n"
12255 " run\n"
12256 " mkmountpoint /cd\n"
12257 " mkmountpoint /sqsh\n"
12258 " mkmountpoint /ext3fs\n"
12259 " mount /dev/sda /cd\n"
12260 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
12261 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
12262 "\n"
12263 msgstr ""
12264
12265 #. type: textblock
12266 #: ../fish/guestfish-actions.pod:3370 ../src/guestfs-actions.pod:5208
12267 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
12268 msgstr ""
12269
12270 #. type: textblock
12271 #: ../fish/guestfish-actions.pod:3372
12272 msgid ""
12273 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
12274 "unexpected errors if you try to mix these calls.  It is safest to manually "
12275 "unmount filesystems and remove mountpoints after use."
12276 msgstr ""
12277
12278 #. type: textblock
12279 #: ../fish/guestfish-actions.pod:3376
12280 msgid ""
12281 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
12282 "for this to work for manual mountpoints, you must ensure that the innermost "
12283 "mountpoints have the longest pathnames, as in the example code above."
12284 msgstr ""
12285
12286 #. type: textblock
12287 #: ../fish/guestfish-actions.pod:3381 ../src/guestfs-actions.pod:5219
12288 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
12289 msgstr ""
12290
12291 #. type: textblock
12292 #: ../fish/guestfish-actions.pod:3383
12293 msgid ""
12294 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
12295 "L</umount-all> to be called when the handle is closed which can also trigger "
12296 "these issues."
12297 msgstr ""
12298
12299 #. type: =head2
12300 #: ../fish/guestfish-actions.pod:3387
12301 msgid "mknod"
12302 msgstr ""
12303
12304 #. type: verbatim
12305 #: ../fish/guestfish-actions.pod:3389
12306 #, no-wrap
12307 msgid ""
12308 " mknod mode devmajor devminor path\n"
12309 "\n"
12310 msgstr ""
12311
12312 #. type: textblock
12313 #: ../fish/guestfish-actions.pod:3391 ../src/guestfs-actions.pod:5238
12314 msgid ""
12315 "This call creates block or character special devices, or named pipes "
12316 "(FIFOs)."
12317 msgstr ""
12318
12319 #. type: textblock
12320 #: ../fish/guestfish-actions.pod:3394 ../src/guestfs-actions.pod:5241
12321 msgid ""
12322 "The C<mode> parameter should be the mode, using the standard constants.  "
12323 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
12324 "used when creating block and character special devices."
12325 msgstr ""
12326
12327 #. type: textblock
12328 #: ../fish/guestfish-actions.pod:3399
12329 msgid ""
12330 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
12331 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
12332 "regular file).  These constants are available in the standard Linux header "
12333 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
12334 "wrappers around this command which bitwise OR in the appropriate constant "
12335 "for you."
12336 msgstr ""
12337
12338 #. type: =head2
12339 #: ../fish/guestfish-actions.pod:3409
12340 msgid "mknod-b"
12341 msgstr ""
12342
12343 #. type: verbatim
12344 #: ../fish/guestfish-actions.pod:3411
12345 #, no-wrap
12346 msgid ""
12347 " mknod-b mode devmajor devminor path\n"
12348 "\n"
12349 msgstr ""
12350
12351 #. type: textblock
12352 #: ../fish/guestfish-actions.pod:3413
12353 msgid ""
12354 "This call creates a block device node called C<path> with mode C<mode> and "
12355 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
12356 "wrapper around L</mknod>."
12357 msgstr ""
12358
12359 #. type: =head2
12360 #: ../fish/guestfish-actions.pod:3419
12361 msgid "mknod-c"
12362 msgstr ""
12363
12364 #. type: verbatim
12365 #: ../fish/guestfish-actions.pod:3421
12366 #, no-wrap
12367 msgid ""
12368 " mknod-c mode devmajor devminor path\n"
12369 "\n"
12370 msgstr ""
12371
12372 #. type: textblock
12373 #: ../fish/guestfish-actions.pod:3423
12374 msgid ""
12375 "This call creates a char device node called C<path> with mode C<mode> and "
12376 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
12377 "wrapper around L</mknod>."
12378 msgstr ""
12379
12380 #. type: =head2
12381 #: ../fish/guestfish-actions.pod:3429
12382 msgid "mkswap"
12383 msgstr ""
12384
12385 #. type: verbatim
12386 #: ../fish/guestfish-actions.pod:3431
12387 #, no-wrap
12388 msgid ""
12389 " mkswap device\n"
12390 "\n"
12391 msgstr ""
12392
12393 #. type: textblock
12394 #: ../fish/guestfish-actions.pod:3433 ../src/guestfs-actions.pod:5304
12395 msgid "Create a swap partition on C<device>."
12396 msgstr ""
12397
12398 #. type: =head2
12399 #: ../fish/guestfish-actions.pod:3435
12400 msgid "mkswap-L"
12401 msgstr ""
12402
12403 #. type: verbatim
12404 #: ../fish/guestfish-actions.pod:3437
12405 #, no-wrap
12406 msgid ""
12407 " mkswap-L label device\n"
12408 "\n"
12409 msgstr ""
12410
12411 #. type: textblock
12412 #: ../fish/guestfish-actions.pod:3439 ../src/guestfs-actions.pod:5317
12413 msgid "Create a swap partition on C<device> with label C<label>."
12414 msgstr ""
12415
12416 #. type: textblock
12417 #: ../fish/guestfish-actions.pod:3441 ../src/guestfs-actions.pod:5319
12418 msgid ""
12419 "Note that you cannot attach a swap label to a block device "
12420 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
12421 "the kernel or swap tools."
12422 msgstr ""
12423
12424 #. type: =head2
12425 #: ../fish/guestfish-actions.pod:3445
12426 msgid "mkswap-U"
12427 msgstr ""
12428
12429 #. type: verbatim
12430 #: ../fish/guestfish-actions.pod:3447
12431 #, no-wrap
12432 msgid ""
12433 " mkswap-U uuid device\n"
12434 "\n"
12435 msgstr ""
12436
12437 #. type: textblock
12438 #: ../fish/guestfish-actions.pod:3449 ../src/guestfs-actions.pod:5334
12439 msgid "Create a swap partition on C<device> with UUID C<uuid>."
12440 msgstr ""
12441
12442 #. type: =head2
12443 #: ../fish/guestfish-actions.pod:3451
12444 msgid "mkswap-file"
12445 msgstr ""
12446
12447 #. type: verbatim
12448 #: ../fish/guestfish-actions.pod:3453
12449 #, no-wrap
12450 msgid ""
12451 " mkswap-file path\n"
12452 "\n"
12453 msgstr ""
12454
12455 #. type: textblock
12456 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5346
12457 msgid "Create a swap file."
12458 msgstr ""
12459
12460 #. type: textblock
12461 #: ../fish/guestfish-actions.pod:3457
12462 msgid ""
12463 "This command just writes a swap file signature to an existing file.  To "
12464 "create the file itself, use something like L</fallocate>."
12465 msgstr ""
12466
12467 #. type: =head2
12468 #: ../fish/guestfish-actions.pod:3460
12469 msgid "modprobe"
12470 msgstr ""
12471
12472 #. type: verbatim
12473 #: ../fish/guestfish-actions.pod:3462
12474 #, no-wrap
12475 msgid ""
12476 " modprobe modulename\n"
12477 "\n"
12478 msgstr ""
12479
12480 #. type: textblock
12481 #: ../fish/guestfish-actions.pod:3464 ../src/guestfs-actions.pod:5361
12482 msgid "This loads a kernel module in the appliance."
12483 msgstr ""
12484
12485 #. type: textblock
12486 #: ../fish/guestfish-actions.pod:3466 ../src/guestfs-actions.pod:5363
12487 msgid ""
12488 "The kernel module must have been whitelisted when libguestfs was built (see "
12489 "C<appliance/kmod.whitelist.in> in the source)."
12490 msgstr ""
12491
12492 #. type: =head2
12493 #: ../fish/guestfish-actions.pod:3469
12494 msgid "mount"
12495 msgstr ""
12496
12497 #. type: verbatim
12498 #: ../fish/guestfish-actions.pod:3471
12499 #, no-wrap
12500 msgid ""
12501 " mount device mountpoint\n"
12502 "\n"
12503 msgstr ""
12504
12505 #. type: textblock
12506 #: ../fish/guestfish-actions.pod:3473 ../src/guestfs-actions.pod:5377
12507 msgid ""
12508 "Mount a guest disk at a position in the filesystem.  Block devices are named "
12509 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
12510 "those block devices contain partitions, they will have the usual names "
12511 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
12512 msgstr ""
12513
12514 #. type: textblock
12515 #: ../fish/guestfish-actions.pod:3479 ../src/guestfs-actions.pod:5383
12516 msgid ""
12517 "The rules are the same as for L<mount(2)>: A filesystem must first be "
12518 "mounted on C</> before others can be mounted.  Other filesystems can only be "
12519 "mounted on directories which already exist."
12520 msgstr ""
12521
12522 #. type: textblock
12523 #: ../fish/guestfish-actions.pod:3484 ../src/guestfs-actions.pod:5388
12524 msgid ""
12525 "The mounted filesystem is writable, if we have sufficient permissions on the "
12526 "underlying device."
12527 msgstr ""
12528
12529 #. type: textblock
12530 #: ../fish/guestfish-actions.pod:3487
12531 msgid ""
12532 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
12533 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
12534 "problems for users.  If your program might need to work with older versions "
12535 "of libguestfs, use L</mount-options> instead (using an empty string for the "
12536 "first parameter if you don't want any options)."
12537 msgstr ""
12538
12539 #. type: =head2
12540 #: ../fish/guestfish-actions.pod:3494
12541 msgid "mount-9p"
12542 msgstr ""
12543
12544 #. type: verbatim
12545 #: ../fish/guestfish-actions.pod:3496
12546 #, no-wrap
12547 msgid ""
12548 " mount-9p mounttag mountpoint [options:..]\n"
12549 "\n"
12550 msgstr ""
12551
12552 #. type: textblock
12553 #: ../fish/guestfish-actions.pod:3498 ../src/guestfs-actions.pod:5417
12554 msgid ""
12555 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
12556 "C<mountpoint>."
12557 msgstr ""
12558
12559 #. type: textblock
12560 #: ../fish/guestfish-actions.pod:3501 ../src/guestfs-actions.pod:5420
12561 msgid ""
12562 "If required, C<trans=virtio> will be automatically added to the options.  "
12563 "Any other options required can be passed in the optional C<options> "
12564 "parameter."
12565 msgstr ""
12566
12567 #. type: =head2
12568 #: ../fish/guestfish-actions.pod:3507
12569 msgid "mount-loop"
12570 msgstr ""
12571
12572 #. type: verbatim
12573 #: ../fish/guestfish-actions.pod:3509
12574 #, no-wrap
12575 msgid ""
12576 " mount-loop file mountpoint\n"
12577 "\n"
12578 msgstr ""
12579
12580 #. type: textblock
12581 #: ../fish/guestfish-actions.pod:3511 ../src/guestfs-actions.pod:5459
12582 msgid ""
12583 "This command lets you mount C<file> (a filesystem image in a file) on a "
12584 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
12585 "mountpoint>."
12586 msgstr ""
12587
12588 #. type: =head2
12589 #: ../fish/guestfish-actions.pod:3515
12590 msgid "mount-options"
12591 msgstr ""
12592
12593 #. type: verbatim
12594 #: ../fish/guestfish-actions.pod:3517
12595 #, no-wrap
12596 msgid ""
12597 " mount-options options device mountpoint\n"
12598 "\n"
12599 msgstr ""
12600
12601 #. type: textblock
12602 #: ../fish/guestfish-actions.pod:3519
12603 msgid ""
12604 "This is the same as the L</mount> command, but it allows you to set the "
12605 "mount options as for the L<mount(8)> I<-o> flag."
12606 msgstr ""
12607
12608 #. type: textblock
12609 #: ../fish/guestfish-actions.pod:3523 ../src/guestfs-actions.pod:5479
12610 msgid ""
12611 "If the C<options> parameter is an empty string, then no options are passed "
12612 "(all options default to whatever the filesystem uses)."
12613 msgstr ""
12614
12615 #. type: =head2
12616 #: ../fish/guestfish-actions.pod:3527
12617 msgid "mount-ro"
12618 msgstr ""
12619
12620 #. type: verbatim
12621 #: ../fish/guestfish-actions.pod:3529
12622 #, no-wrap
12623 msgid ""
12624 " mount-ro device mountpoint\n"
12625 "\n"
12626 msgstr ""
12627
12628 #. type: textblock
12629 #: ../fish/guestfish-actions.pod:3531
12630 msgid ""
12631 "This is the same as the L</mount> command, but it mounts the filesystem with "
12632 "the read-only (I<-o ro>) flag."
12633 msgstr ""
12634
12635 #. type: =head2
12636 #: ../fish/guestfish-actions.pod:3534
12637 msgid "mount-vfs"
12638 msgstr ""
12639
12640 #. type: verbatim
12641 #: ../fish/guestfish-actions.pod:3536
12642 #, no-wrap
12643 msgid ""
12644 " mount-vfs options vfstype device mountpoint\n"
12645 "\n"
12646 msgstr ""
12647
12648 #. type: textblock
12649 #: ../fish/guestfish-actions.pod:3538
12650 msgid ""
12651 "This is the same as the L</mount> command, but it allows you to set both the "
12652 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
12653 msgstr ""
12654
12655 #. type: =head2
12656 #: ../fish/guestfish-actions.pod:3542
12657 msgid "mountpoints"
12658 msgstr ""
12659
12660 #. type: verbatim
12661 #: ../fish/guestfish-actions.pod:3544
12662 #, no-wrap
12663 msgid ""
12664 " mountpoints\n"
12665 "\n"
12666 msgstr ""
12667
12668 #. type: textblock
12669 #: ../fish/guestfish-actions.pod:3546
12670 msgid ""
12671 "This call is similar to L</mounts>.  That call returns a list of devices.  "
12672 "This one returns a hash table (map) of device name to directory where the "
12673 "device is mounted."
12674 msgstr ""
12675
12676 #. type: =head2
12677 #: ../fish/guestfish-actions.pod:3550
12678 msgid "mounts"
12679 msgstr ""
12680
12681 #. type: verbatim
12682 #: ../fish/guestfish-actions.pod:3552
12683 #, no-wrap
12684 msgid ""
12685 " mounts\n"
12686 "\n"
12687 msgstr ""
12688
12689 #. type: textblock
12690 #: ../fish/guestfish-actions.pod:3554 ../src/guestfs-actions.pod:5540
12691 msgid ""
12692 "This returns the list of currently mounted filesystems.  It returns the list "
12693 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12694 msgstr ""
12695
12696 #. type: textblock
12697 #: ../fish/guestfish-actions.pod:3557 ../src/guestfs-actions.pod:5543
12698 msgid "Some internal mounts are not shown."
12699 msgstr ""
12700
12701 #. type: textblock
12702 #: ../fish/guestfish-actions.pod:3559
12703 msgid "See also: L</mountpoints>"
12704 msgstr ""
12705
12706 #. type: =head2
12707 #: ../fish/guestfish-actions.pod:3561
12708 msgid "mv"
12709 msgstr ""
12710
12711 #. type: verbatim
12712 #: ../fish/guestfish-actions.pod:3563
12713 #, no-wrap
12714 msgid ""
12715 " mv src dest\n"
12716 "\n"
12717 msgstr ""
12718
12719 #. type: textblock
12720 #: ../fish/guestfish-actions.pod:3565 ../src/guestfs-actions.pod:5560
12721 msgid ""
12722 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12723 "destination filename or destination directory."
12724 msgstr ""
12725
12726 #. type: =head2
12727 #: ../fish/guestfish-actions.pod:3568
12728 msgid "ntfs-3g-probe"
12729 msgstr ""
12730
12731 #. type: verbatim
12732 #: ../fish/guestfish-actions.pod:3570
12733 #, no-wrap
12734 msgid ""
12735 " ntfs-3g-probe true|false device\n"
12736 "\n"
12737 msgstr ""
12738
12739 #. type: textblock
12740 #: ../fish/guestfish-actions.pod:3572 ../src/guestfs-actions.pod:5574
12741 msgid ""
12742 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12743 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
12744 "read-write, and some cannot be mounted at all)."
12745 msgstr ""
12746
12747 #. type: textblock
12748 #: ../fish/guestfish-actions.pod:3576 ../src/guestfs-actions.pod:5578
12749 msgid ""
12750 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
12751 "can be mounted read-write.  Set it to false if you want to test if the "
12752 "volume can be mounted read-only."
12753 msgstr ""
12754
12755 #. type: textblock
12756 #: ../fish/guestfish-actions.pod:3580 ../src/guestfs-actions.pod:5582
12757 msgid ""
12758 "The return value is an integer which C<0> if the operation would succeed, or "
12759 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12760 msgstr ""
12761
12762 #. type: =head2
12763 #: ../fish/guestfish-actions.pod:3584
12764 msgid "ntfsresize"
12765 msgstr ""
12766
12767 #. type: verbatim
12768 #: ../fish/guestfish-actions.pod:3586
12769 #, no-wrap
12770 msgid ""
12771 " ntfsresize device\n"
12772 "\n"
12773 msgstr ""
12774
12775 #. type: textblock
12776 #: ../fish/guestfish-actions.pod:3588 ../fish/guestfish-actions.pod:3612 ../src/guestfs-actions.pod:5603 ../src/guestfs-actions.pod:5635
12777 msgid ""
12778 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12779 "size of the underlying device."
12780 msgstr ""
12781
12782 #. type: textblock
12783 #: ../fish/guestfish-actions.pod:3591 ../src/guestfs-actions.pod:5606
12784 msgid ""
12785 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
12786 "consistency check (for safety).  You have to boot into Windows to perform "
12787 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
12788 "resize filesystems which have been marked in this way.  So in effect it is "
12789 "not possible to call ntfsresize multiple times on a single filesystem "
12790 "without booting into Windows between each resize."
12791 msgstr ""
12792
12793 #. type: textblock
12794 #: ../fish/guestfish-actions.pod:3599 ../fish/guestfish-actions.pod:3638 ../src/guestfs-actions.pod:5614 ../src/guestfs-actions.pod:5661
12795 msgid "See also L<ntfsresize(8)>."
12796 msgstr ""
12797
12798 #. type: textblock
12799 #: ../fish/guestfish-actions.pod:3601 ../fish/guestfish-actions.pod:3649
12800 msgid ""
12801 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
12802 "call instead."
12803 msgstr ""
12804
12805 #. type: =head2
12806 #: ../fish/guestfish-actions.pod:3608
12807 msgid "ntfsresize-opts"
12808 msgstr ""
12809
12810 #. type: verbatim
12811 #: ../fish/guestfish-actions.pod:3610
12812 #, no-wrap
12813 msgid ""
12814 " ntfsresize-opts device [size:..] [force:..]\n"
12815 "\n"
12816 msgstr ""
12817
12818 #. type: textblock
12819 #: ../fish/guestfish-actions.pod:3621 ../src/guestfs-actions.pod:5644
12820 msgid ""
12821 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
12822 "resized to fit the container (eg. partition)."
12823 msgstr ""
12824
12825 #. type: =item
12826 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5647
12827 msgid "C<force>"
12828 msgstr ""
12829
12830 #. type: textblock
12831 #: ../fish/guestfish-actions.pod:3626 ../src/guestfs-actions.pod:5649
12832 msgid ""
12833 "If this option is true, then force the resize of the filesystem even if the "
12834 "filesystem is marked as requiring a consistency check."
12835 msgstr ""
12836
12837 #. type: textblock
12838 #: ../fish/guestfish-actions.pod:3629
12839 msgid ""
12840 "After the resize operation, the filesystem is always marked as requiring a "
12841 "consistency check (for safety).  You have to boot into Windows to perform "
12842 "this check and clear this condition.  If you I<don't> set the C<force> "
12843 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
12844 "a single filesystem without booting into Windows between each resize."
12845 msgstr ""
12846
12847 #. type: =head2
12848 #: ../fish/guestfish-actions.pod:3642
12849 msgid "ntfsresize-size"
12850 msgstr ""
12851
12852 #. type: verbatim
12853 #: ../fish/guestfish-actions.pod:3644
12854 #, no-wrap
12855 msgid ""
12856 " ntfsresize-size device size\n"
12857 "\n"
12858 msgstr ""
12859
12860 #. type: textblock
12861 #: ../fish/guestfish-actions.pod:3646
12862 msgid ""
12863 "This command is the same as L</ntfsresize> except that it allows you to "
12864 "specify the new size (in bytes) explicitly."
12865 msgstr ""
12866
12867 #. type: =head2
12868 #: ../fish/guestfish-actions.pod:3656
12869 msgid "part-add"
12870 msgstr ""
12871
12872 #. type: verbatim
12873 #: ../fish/guestfish-actions.pod:3658
12874 #, no-wrap
12875 msgid ""
12876 " part-add device prlogex startsect endsect\n"
12877 "\n"
12878 msgstr ""
12879
12880 #. type: textblock
12881 #: ../fish/guestfish-actions.pod:3660
12882 msgid ""
12883 "This command adds a partition to C<device>.  If there is no partition table "
12884 "on the device, call L</part-init> first."
12885 msgstr ""
12886
12887 #. type: textblock
12888 #: ../fish/guestfish-actions.pod:3663 ../src/guestfs-actions.pod:5722
12889 msgid ""
12890 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12891 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12892 "C<logical>) and C<e> (or C<extended>) partition types."
12893 msgstr ""
12894
12895 #. type: textblock
12896 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5727
12897 msgid ""
12898 "C<startsect> and C<endsect> are the start and end of the partition in "
12899 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12900 "from the end of the disk (C<-1> is the last sector)."
12901 msgstr ""
12902
12903 #. type: textblock
12904 #: ../fish/guestfish-actions.pod:3672
12905 msgid ""
12906 "Creating a partition which covers the whole disk is not so easy.  Use "
12907 "L</part-disk> to do that."
12908 msgstr ""
12909
12910 #. type: =head2
12911 #: ../fish/guestfish-actions.pod:3675
12912 msgid "part-del"
12913 msgstr ""
12914
12915 #. type: verbatim
12916 #: ../fish/guestfish-actions.pod:3677
12917 #, no-wrap
12918 msgid ""
12919 " part-del device partnum\n"
12920 "\n"
12921 msgstr ""
12922
12923 #. type: textblock
12924 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5745
12925 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12926 msgstr ""
12927
12928 #. type: textblock
12929 #: ../fish/guestfish-actions.pod:3681 ../src/guestfs-actions.pod:5747
12930 msgid ""
12931 "Note that in the case of MBR partitioning, deleting an extended partition "
12932 "also deletes any logical partitions it contains."
12933 msgstr ""
12934
12935 #. type: =head2
12936 #: ../fish/guestfish-actions.pod:3685
12937 msgid "part-disk"
12938 msgstr ""
12939
12940 #. type: verbatim
12941 #: ../fish/guestfish-actions.pod:3687
12942 #, no-wrap
12943 msgid ""
12944 " part-disk device parttype\n"
12945 "\n"
12946 msgstr ""
12947
12948 #. type: textblock
12949 #: ../fish/guestfish-actions.pod:3689
12950 msgid ""
12951 "This command is simply a combination of L</part-init> followed by "
12952 "L</part-add> to create a single primary partition covering the whole disk."
12953 msgstr ""
12954
12955 #. type: textblock
12956 #: ../fish/guestfish-actions.pod:3693
12957 msgid ""
12958 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12959 "possible values are described in L</part-init>."
12960 msgstr ""
12961
12962 #. type: =head2
12963 #: ../fish/guestfish-actions.pod:3699
12964 msgid "part-get-bootable"
12965 msgstr ""
12966
12967 #. type: verbatim
12968 #: ../fish/guestfish-actions.pod:3701
12969 #, no-wrap
12970 msgid ""
12971 " part-get-bootable device partnum\n"
12972 "\n"
12973 msgstr ""
12974
12975 #. type: textblock
12976 #: ../fish/guestfish-actions.pod:3703 ../src/guestfs-actions.pod:5783
12977 msgid ""
12978 "This command returns true if the partition C<partnum> on C<device> has the "
12979 "bootable flag set."
12980 msgstr ""
12981
12982 #. type: textblock
12983 #: ../fish/guestfish-actions.pod:3706
12984 msgid "See also L</part-set-bootable>."
12985 msgstr ""
12986
12987 #. type: =head2
12988 #: ../fish/guestfish-actions.pod:3708
12989 msgid "part-get-mbr-id"
12990 msgstr ""
12991
12992 #. type: verbatim
12993 #: ../fish/guestfish-actions.pod:3710
12994 #, no-wrap
12995 msgid ""
12996 " part-get-mbr-id device partnum\n"
12997 "\n"
12998 msgstr ""
12999
13000 #. type: textblock
13001 #: ../fish/guestfish-actions.pod:3712 ../src/guestfs-actions.pod:5799
13002 msgid ""
13003 "Returns the MBR type byte (also known as the ID byte) from the numbered "
13004 "partition C<partnum>."
13005 msgstr ""
13006
13007 #. type: textblock
13008 #: ../fish/guestfish-actions.pod:3715 ../fish/guestfish-actions.pod:3859
13009 msgid ""
13010 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
13011 "undefined results for other partition table types (see "
13012 "L</part-get-parttype>)."
13013 msgstr ""
13014
13015 #. type: =head2
13016 #: ../fish/guestfish-actions.pod:3719
13017 msgid "part-get-parttype"
13018 msgstr ""
13019
13020 #. type: verbatim
13021 #: ../fish/guestfish-actions.pod:3721
13022 #, no-wrap
13023 msgid ""
13024 " part-get-parttype device\n"
13025 "\n"
13026 msgstr ""
13027
13028 #. type: textblock
13029 #: ../fish/guestfish-actions.pod:3723 ../src/guestfs-actions.pod:5816
13030 msgid ""
13031 "This command examines the partition table on C<device> and returns the "
13032 "partition table type (format) being used."
13033 msgstr ""
13034
13035 #. type: textblock
13036 #: ../fish/guestfish-actions.pod:3726
13037 msgid ""
13038 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
13039 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
13040 "possible, although unusual.  See L</part-init> for a full list."
13041 msgstr ""
13042
13043 #. type: =head2
13044 #: ../fish/guestfish-actions.pod:3731
13045 msgid "part-init"
13046 msgstr ""
13047
13048 #. type: verbatim
13049 #: ../fish/guestfish-actions.pod:3733
13050 #, no-wrap
13051 msgid ""
13052 " part-init device parttype\n"
13053 "\n"
13054 msgstr ""
13055
13056 #. type: textblock
13057 #: ../fish/guestfish-actions.pod:3735 ../src/guestfs-actions.pod:5836
13058 msgid ""
13059 "This creates an empty partition table on C<device> of one of the partition "
13060 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
13061 "(for large disks)."
13062 msgstr ""
13063
13064 #. type: textblock
13065 #: ../fish/guestfish-actions.pod:3739
13066 msgid ""
13067 "Initially there are no partitions.  Following this, you should call "
13068 "L</part-add> for each partition required."
13069 msgstr ""
13070
13071 #. type: textblock
13072 #: ../fish/guestfish-actions.pod:3742 ../src/guestfs-actions.pod:5843
13073 msgid "Possible values for C<parttype> are:"
13074 msgstr ""
13075
13076 #. type: =item
13077 #: ../fish/guestfish-actions.pod:3746 ../src/guestfs-actions.pod:5847
13078 msgid "B<efi>"
13079 msgstr ""
13080
13081 #. type: =item
13082 #: ../fish/guestfish-actions.pod:3748 ../src/guestfs-actions.pod:5849
13083 msgid "B<gpt>"
13084 msgstr ""
13085
13086 #. type: textblock
13087 #: ../fish/guestfish-actions.pod:3750 ../src/guestfs-actions.pod:5851
13088 msgid "Intel EFI / GPT partition table."
13089 msgstr ""
13090
13091 #. type: textblock
13092 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5853
13093 msgid ""
13094 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
13095 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
13096 "the C<mbr> format."
13097 msgstr ""
13098
13099 #. type: =item
13100 #: ../fish/guestfish-actions.pod:3756 ../src/guestfs-actions.pod:5857
13101 msgid "B<mbr>"
13102 msgstr ""
13103
13104 #. type: =item
13105 #: ../fish/guestfish-actions.pod:3758 ../src/guestfs-actions.pod:5859
13106 msgid "B<msdos>"
13107 msgstr ""
13108
13109 #. type: textblock
13110 #: ../fish/guestfish-actions.pod:3760 ../src/guestfs-actions.pod:5861
13111 msgid ""
13112 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
13113 "Windows.  This partition type will B<only> work for device sizes up to 2 "
13114 "TB.  For large disks we recommend using C<gpt>."
13115 msgstr ""
13116
13117 #. type: textblock
13118 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5868
13119 msgid "Other partition table types that may work but are not supported include:"
13120 msgstr ""
13121
13122 #. type: =item
13123 #: ../fish/guestfish-actions.pod:3772 ../src/guestfs-actions.pod:5873
13124 msgid "B<aix>"
13125 msgstr ""
13126
13127 #. type: textblock
13128 #: ../fish/guestfish-actions.pod:3774 ../src/guestfs-actions.pod:5875
13129 msgid "AIX disk labels."
13130 msgstr ""
13131
13132 #. type: =item
13133 #: ../fish/guestfish-actions.pod:3776 ../src/guestfs-actions.pod:5877
13134 msgid "B<amiga>"
13135 msgstr ""
13136
13137 #. type: =item
13138 #: ../fish/guestfish-actions.pod:3778 ../src/guestfs-actions.pod:5879
13139 msgid "B<rdb>"
13140 msgstr ""
13141
13142 #. type: textblock
13143 #: ../fish/guestfish-actions.pod:3780 ../src/guestfs-actions.pod:5881
13144 msgid "Amiga \"Rigid Disk Block\" format."
13145 msgstr ""
13146
13147 #. type: =item
13148 #: ../fish/guestfish-actions.pod:3782 ../src/guestfs-actions.pod:5883
13149 msgid "B<bsd>"
13150 msgstr ""
13151
13152 #. type: textblock
13153 #: ../fish/guestfish-actions.pod:3784 ../src/guestfs-actions.pod:5885
13154 msgid "BSD disk labels."
13155 msgstr ""
13156
13157 #. type: =item
13158 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5887
13159 msgid "B<dasd>"
13160 msgstr ""
13161
13162 #. type: textblock
13163 #: ../fish/guestfish-actions.pod:3788 ../src/guestfs-actions.pod:5889
13164 msgid "DASD, used on IBM mainframes."
13165 msgstr ""
13166
13167 #. type: =item
13168 #: ../fish/guestfish-actions.pod:3790 ../src/guestfs-actions.pod:5891
13169 msgid "B<dvh>"
13170 msgstr ""
13171
13172 #. type: textblock
13173 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5893
13174 msgid "MIPS/SGI volumes."
13175 msgstr ""
13176
13177 #. type: =item
13178 #: ../fish/guestfish-actions.pod:3794 ../src/guestfs-actions.pod:5895
13179 msgid "B<mac>"
13180 msgstr ""
13181
13182 #. type: textblock
13183 #: ../fish/guestfish-actions.pod:3796 ../src/guestfs-actions.pod:5897
13184 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
13185 msgstr ""
13186
13187 #. type: =item
13188 #: ../fish/guestfish-actions.pod:3798 ../src/guestfs-actions.pod:5899
13189 msgid "B<pc98>"
13190 msgstr ""
13191
13192 #. type: textblock
13193 #: ../fish/guestfish-actions.pod:3800 ../src/guestfs-actions.pod:5901
13194 msgid "NEC PC-98 format, common in Japan apparently."
13195 msgstr ""
13196
13197 #. type: =item
13198 #: ../fish/guestfish-actions.pod:3802 ../src/guestfs-actions.pod:5903
13199 msgid "B<sun>"
13200 msgstr ""
13201
13202 #. type: textblock
13203 #: ../fish/guestfish-actions.pod:3804 ../src/guestfs-actions.pod:5905
13204 msgid "Sun disk labels."
13205 msgstr ""
13206
13207 #. type: =head2
13208 #: ../fish/guestfish-actions.pod:3808
13209 msgid "part-list"
13210 msgstr ""
13211
13212 #. type: verbatim
13213 #: ../fish/guestfish-actions.pod:3810
13214 #, no-wrap
13215 msgid ""
13216 " part-list device\n"
13217 "\n"
13218 msgstr ""
13219
13220 #. type: textblock
13221 #: ../fish/guestfish-actions.pod:3812 ../src/guestfs-actions.pod:5919
13222 msgid ""
13223 "This command parses the partition table on C<device> and returns the list of "
13224 "partitions found."
13225 msgstr ""
13226
13227 #. type: textblock
13228 #: ../fish/guestfish-actions.pod:3815 ../src/guestfs-actions.pod:5922
13229 msgid "The fields in the returned structure are:"
13230 msgstr ""
13231
13232 #. type: =item
13233 #: ../fish/guestfish-actions.pod:3819 ../src/guestfs-actions.pod:5926
13234 msgid "B<part_num>"
13235 msgstr ""
13236
13237 #. type: textblock
13238 #: ../fish/guestfish-actions.pod:3821 ../src/guestfs-actions.pod:5928
13239 msgid "Partition number, counting from 1."
13240 msgstr ""
13241
13242 #. type: =item
13243 #: ../fish/guestfish-actions.pod:3823 ../src/guestfs-actions.pod:5930
13244 msgid "B<part_start>"
13245 msgstr ""
13246
13247 #. type: textblock
13248 #: ../fish/guestfish-actions.pod:3825
13249 msgid ""
13250 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
13251 "the device's sector size, see L</blockdev-getss>."
13252 msgstr ""
13253
13254 #. type: =item
13255 #: ../fish/guestfish-actions.pod:3828 ../src/guestfs-actions.pod:5935
13256 msgid "B<part_end>"
13257 msgstr ""
13258
13259 #. type: textblock
13260 #: ../fish/guestfish-actions.pod:3830 ../src/guestfs-actions.pod:5937
13261 msgid "End of the partition in bytes."
13262 msgstr ""
13263
13264 #. type: =item
13265 #: ../fish/guestfish-actions.pod:3832 ../src/guestfs-actions.pod:5939
13266 msgid "B<part_size>"
13267 msgstr ""
13268
13269 #. type: textblock
13270 #: ../fish/guestfish-actions.pod:3834 ../src/guestfs-actions.pod:5941
13271 msgid "Size of the partition in bytes."
13272 msgstr ""
13273
13274 #. type: =head2
13275 #: ../fish/guestfish-actions.pod:3838
13276 msgid "part-set-bootable"
13277 msgstr ""
13278
13279 #. type: verbatim
13280 #: ../fish/guestfish-actions.pod:3840
13281 #, no-wrap
13282 msgid ""
13283 " part-set-bootable device partnum true|false\n"
13284 "\n"
13285 msgstr ""
13286
13287 #. type: textblock
13288 #: ../fish/guestfish-actions.pod:3842 ../src/guestfs-actions.pod:5959
13289 msgid ""
13290 "This sets the bootable flag on partition numbered C<partnum> on device "
13291 "C<device>.  Note that partitions are numbered from 1."
13292 msgstr ""
13293
13294 #. type: textblock
13295 #: ../fish/guestfish-actions.pod:3845 ../src/guestfs-actions.pod:5962
13296 msgid ""
13297 "The bootable flag is used by some operating systems (notably Windows) to "
13298 "determine which partition to boot from.  It is by no means universally "
13299 "recognized."
13300 msgstr ""
13301
13302 #. type: =head2
13303 #: ../fish/guestfish-actions.pod:3849
13304 msgid "part-set-mbr-id"
13305 msgstr ""
13306
13307 #. type: verbatim
13308 #: ../fish/guestfish-actions.pod:3851
13309 #, no-wrap
13310 msgid ""
13311 " part-set-mbr-id device partnum idbyte\n"
13312 "\n"
13313 msgstr ""
13314
13315 #. type: textblock
13316 #: ../fish/guestfish-actions.pod:3853 ../src/guestfs-actions.pod:5978
13317 msgid ""
13318 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
13319 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
13320 "documentation are in fact hexadecimal numbers, but usually documented "
13321 "without any leading \"0x\" which might be confusing."
13322 msgstr ""
13323
13324 #. type: =head2
13325 #: ../fish/guestfish-actions.pod:3863
13326 msgid "part-set-name"
13327 msgstr ""
13328
13329 #. type: verbatim
13330 #: ../fish/guestfish-actions.pod:3865
13331 #, no-wrap
13332 msgid ""
13333 " part-set-name device partnum name\n"
13334 "\n"
13335 msgstr ""
13336
13337 #. type: textblock
13338 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:6000
13339 msgid ""
13340 "This sets the partition name on partition numbered C<partnum> on device "
13341 "C<device>.  Note that partitions are numbered from 1."
13342 msgstr ""
13343
13344 #. type: textblock
13345 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:6003
13346 msgid ""
13347 "The partition name can only be set on certain types of partition table.  "
13348 "This works on C<gpt> but not on C<mbr> partitions."
13349 msgstr ""
13350
13351 #. type: =head2
13352 #: ../fish/guestfish-actions.pod:3873
13353 msgid "part-to-dev"
13354 msgstr ""
13355
13356 #. type: verbatim
13357 #: ../fish/guestfish-actions.pod:3875
13358 #, no-wrap
13359 msgid ""
13360 " part-to-dev partition\n"
13361 "\n"
13362 msgstr ""
13363
13364 #. type: textblock
13365 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:6016
13366 msgid ""
13367 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
13368 "partition number, returning the device name (eg. \"/dev/sdb\")."
13369 msgstr ""
13370
13371 #. type: textblock
13372 #: ../fish/guestfish-actions.pod:3881 ../fish/guestfish-actions.pod:3893
13373 msgid ""
13374 "The named partition must exist, for example as a string returned from "
13375 "L</list-partitions>."
13376 msgstr ""
13377
13378 #. type: textblock
13379 #: ../fish/guestfish-actions.pod:3884
13380 msgid "See also L</part-to-partnum>."
13381 msgstr ""
13382
13383 #. type: =head2
13384 #: ../fish/guestfish-actions.pod:3886
13385 msgid "part-to-partnum"
13386 msgstr ""
13387
13388 #. type: verbatim
13389 #: ../fish/guestfish-actions.pod:3888
13390 #, no-wrap
13391 msgid ""
13392 " part-to-partnum partition\n"
13393 "\n"
13394 msgstr ""
13395
13396 #. type: textblock
13397 #: ../fish/guestfish-actions.pod:3890 ../src/guestfs-actions.pod:6036
13398 msgid ""
13399 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
13400 "partition number (eg. C<1>)."
13401 msgstr ""
13402
13403 #. type: textblock
13404 #: ../fish/guestfish-actions.pod:3896
13405 msgid "See also L</part-to-dev>."
13406 msgstr ""
13407
13408 #. type: =head2
13409 #: ../fish/guestfish-actions.pod:3898
13410 msgid "ping-daemon"
13411 msgstr ""
13412
13413 #. type: verbatim
13414 #: ../fish/guestfish-actions.pod:3900
13415 #, no-wrap
13416 msgid ""
13417 " ping-daemon\n"
13418 "\n"
13419 msgstr ""
13420
13421 #. type: textblock
13422 #: ../fish/guestfish-actions.pod:3902 ../src/guestfs-actions.pod:6051
13423 msgid ""
13424 "This is a test probe into the guestfs daemon running inside the qemu "
13425 "subprocess.  Calling this function checks that the daemon responds to the "
13426 "ping message, without affecting the daemon or attached block device(s) in "
13427 "any other way."
13428 msgstr ""
13429
13430 #. type: =head2
13431 #: ../fish/guestfish-actions.pod:3907
13432 msgid "pread"
13433 msgstr ""
13434
13435 #. type: verbatim
13436 #: ../fish/guestfish-actions.pod:3909
13437 #, no-wrap
13438 msgid ""
13439 " pread path count offset\n"
13440 "\n"
13441 msgstr ""
13442
13443 #. type: textblock
13444 #: ../fish/guestfish-actions.pod:3911 ../src/guestfs-actions.pod:6069
13445 msgid ""
13446 "This command lets you read part of a file.  It reads C<count> bytes of the "
13447 "file, starting at C<offset>, from file C<path>."
13448 msgstr ""
13449
13450 #. type: textblock
13451 #: ../fish/guestfish-actions.pod:3914 ../fish/guestfish-actions.pod:3929 ../src/guestfs-actions.pod:6072 ../src/guestfs-actions.pod:6098
13452 msgid ""
13453 "This may read fewer bytes than requested.  For further details see the "
13454 "L<pread(2)> system call."
13455 msgstr ""
13456
13457 #. type: textblock
13458 #: ../fish/guestfish-actions.pod:3917
13459 msgid "See also L</pwrite>, L</pread-device>."
13460 msgstr ""
13461
13462 #. type: =head2
13463 #: ../fish/guestfish-actions.pod:3922
13464 msgid "pread-device"
13465 msgstr ""
13466
13467 #. type: verbatim
13468 #: ../fish/guestfish-actions.pod:3924
13469 #, no-wrap
13470 msgid ""
13471 " pread-device device count offset\n"
13472 "\n"
13473 msgstr ""
13474
13475 #. type: textblock
13476 #: ../fish/guestfish-actions.pod:3926 ../src/guestfs-actions.pod:6095
13477 msgid ""
13478 "This command lets you read part of a file.  It reads C<count> bytes of "
13479 "C<device>, starting at C<offset>."
13480 msgstr ""
13481
13482 #. type: textblock
13483 #: ../fish/guestfish-actions.pod:3932
13484 msgid "See also L</pread>."
13485 msgstr ""
13486
13487 #. type: =head2
13488 #: ../fish/guestfish-actions.pod:3937
13489 msgid "pvcreate"
13490 msgstr ""
13491
13492 #. type: verbatim
13493 #: ../fish/guestfish-actions.pod:3939
13494 #, no-wrap
13495 msgid ""
13496 " pvcreate device\n"
13497 "\n"
13498 msgstr ""
13499
13500 #. type: textblock
13501 #: ../fish/guestfish-actions.pod:3941 ../src/guestfs-actions.pod:6118
13502 msgid ""
13503 "This creates an LVM physical volume on the named C<device>, where C<device> "
13504 "should usually be a partition name such as C</dev/sda1>."
13505 msgstr ""
13506
13507 #. type: =head2
13508 #: ../fish/guestfish-actions.pod:3945
13509 msgid "pvremove"
13510 msgstr ""
13511
13512 #. type: verbatim
13513 #: ../fish/guestfish-actions.pod:3947
13514 #, no-wrap
13515 msgid ""
13516 " pvremove device\n"
13517 "\n"
13518 msgstr ""
13519
13520 #. type: textblock
13521 #: ../fish/guestfish-actions.pod:3949 ../src/guestfs-actions.pod:6132
13522 msgid ""
13523 "This wipes a physical volume C<device> so that LVM will no longer recognise "
13524 "it."
13525 msgstr ""
13526
13527 #. type: textblock
13528 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6135
13529 msgid ""
13530 "The implementation uses the C<pvremove> command which refuses to wipe "
13531 "physical volumes that contain any volume groups, so you have to remove those "
13532 "first."
13533 msgstr ""
13534
13535 #. type: =head2
13536 #: ../fish/guestfish-actions.pod:3956
13537 msgid "pvresize"
13538 msgstr ""
13539
13540 #. type: verbatim
13541 #: ../fish/guestfish-actions.pod:3958
13542 #, no-wrap
13543 msgid ""
13544 " pvresize device\n"
13545 "\n"
13546 msgstr ""
13547
13548 #. type: textblock
13549 #: ../fish/guestfish-actions.pod:3960 ../src/guestfs-actions.pod:6149
13550 msgid ""
13551 "This resizes (expands or shrinks) an existing LVM physical volume to match "
13552 "the new size of the underlying device."
13553 msgstr ""
13554
13555 #. type: =head2
13556 #: ../fish/guestfish-actions.pod:3963
13557 msgid "pvresize-size"
13558 msgstr ""
13559
13560 #. type: verbatim
13561 #: ../fish/guestfish-actions.pod:3965
13562 #, no-wrap
13563 msgid ""
13564 " pvresize-size device size\n"
13565 "\n"
13566 msgstr ""
13567
13568 #. type: textblock
13569 #: ../fish/guestfish-actions.pod:3967
13570 msgid ""
13571 "This command is the same as L</pvresize> except that it allows you to "
13572 "specify the new size (in bytes) explicitly."
13573 msgstr ""
13574
13575 #. type: =head2
13576 #: ../fish/guestfish-actions.pod:3970
13577 msgid "pvs"
13578 msgstr ""
13579
13580 #. type: verbatim
13581 #: ../fish/guestfish-actions.pod:3972
13582 #, no-wrap
13583 msgid ""
13584 " pvs\n"
13585 "\n"
13586 msgstr ""
13587
13588 #. type: textblock
13589 #: ../fish/guestfish-actions.pod:3974 ../src/guestfs-actions.pod:6175
13590 msgid ""
13591 "List all the physical volumes detected.  This is the equivalent of the "
13592 "L<pvs(8)> command."
13593 msgstr ""
13594
13595 #. type: textblock
13596 #: ../fish/guestfish-actions.pod:3977 ../src/guestfs-actions.pod:6178
13597 msgid ""
13598 "This returns a list of just the device names that contain PVs "
13599 "(eg. C</dev/sda2>)."
13600 msgstr ""
13601
13602 #. type: textblock
13603 #: ../fish/guestfish-actions.pod:3980
13604 msgid "See also L</pvs-full>."
13605 msgstr ""
13606
13607 #. type: =head2
13608 #: ../fish/guestfish-actions.pod:3982
13609 msgid "pvs-full"
13610 msgstr ""
13611
13612 #. type: verbatim
13613 #: ../fish/guestfish-actions.pod:3984
13614 #, no-wrap
13615 msgid ""
13616 " pvs-full\n"
13617 "\n"
13618 msgstr ""
13619
13620 #. type: textblock
13621 #: ../fish/guestfish-actions.pod:3986 ../src/guestfs-actions.pod:6194
13622 msgid ""
13623 "List all the physical volumes detected.  This is the equivalent of the "
13624 "L<pvs(8)> command.  The \"full\" version includes all fields."
13625 msgstr ""
13626
13627 #. type: =head2
13628 #: ../fish/guestfish-actions.pod:3989
13629 msgid "pvuuid"
13630 msgstr ""
13631
13632 #. type: verbatim
13633 #: ../fish/guestfish-actions.pod:3991
13634 #, no-wrap
13635 msgid ""
13636 " pvuuid device\n"
13637 "\n"
13638 msgstr ""
13639
13640 #. type: textblock
13641 #: ../fish/guestfish-actions.pod:3993 ../src/guestfs-actions.pod:6209
13642 msgid "This command returns the UUID of the LVM PV C<device>."
13643 msgstr ""
13644
13645 #. type: =head2
13646 #: ../fish/guestfish-actions.pod:3995
13647 msgid "pwrite"
13648 msgstr ""
13649
13650 #. type: verbatim
13651 #: ../fish/guestfish-actions.pod:3997
13652 #, no-wrap
13653 msgid ""
13654 " pwrite path content offset\n"
13655 "\n"
13656 msgstr ""
13657
13658 #. type: textblock
13659 #: ../fish/guestfish-actions.pod:3999 ../src/guestfs-actions.pod:6225
13660 msgid ""
13661 "This command writes to part of a file.  It writes the data buffer C<content> "
13662 "to the file C<path> starting at offset C<offset>."
13663 msgstr ""
13664
13665 #. type: textblock
13666 #: ../fish/guestfish-actions.pod:4002 ../src/guestfs-actions.pod:6228
13667 msgid ""
13668 "This command implements the L<pwrite(2)> system call, and like that system "
13669 "call it may not write the full data requested.  The return value is the "
13670 "number of bytes that were actually written to the file.  This could even be "
13671 "0, although short writes are unlikely for regular files in ordinary "
13672 "circumstances."
13673 msgstr ""
13674
13675 #. type: textblock
13676 #: ../fish/guestfish-actions.pod:4008
13677 msgid "See also L</pread>, L</pwrite-device>."
13678 msgstr ""
13679
13680 #. type: =head2
13681 #: ../fish/guestfish-actions.pod:4013
13682 msgid "pwrite-device"
13683 msgstr ""
13684
13685 #. type: verbatim
13686 #: ../fish/guestfish-actions.pod:4015
13687 #, no-wrap
13688 msgid ""
13689 " pwrite-device device content offset\n"
13690 "\n"
13691 msgstr ""
13692
13693 #. type: textblock
13694 #: ../fish/guestfish-actions.pod:4017 ../src/guestfs-actions.pod:6252
13695 msgid ""
13696 "This command writes to part of a device.  It writes the data buffer "
13697 "C<content> to C<device> starting at offset C<offset>."
13698 msgstr ""
13699
13700 #. type: textblock
13701 #: ../fish/guestfish-actions.pod:4020 ../src/guestfs-actions.pod:6255
13702 msgid ""
13703 "This command implements the L<pwrite(2)> system call, and like that system "
13704 "call it may not write the full data requested (although short writes to disk "
13705 "devices and partitions are probably impossible with standard Linux kernels)."
13706 msgstr ""
13707
13708 #. type: textblock
13709 #: ../fish/guestfish-actions.pod:4025
13710 msgid "See also L</pwrite>."
13711 msgstr ""
13712
13713 #. type: =head2
13714 #: ../fish/guestfish-actions.pod:4030
13715 msgid "read-file"
13716 msgstr ""
13717
13718 #. type: verbatim
13719 #: ../fish/guestfish-actions.pod:4032
13720 #, no-wrap
13721 msgid ""
13722 " read-file path\n"
13723 "\n"
13724 msgstr ""
13725
13726 #. type: textblock
13727 #: ../fish/guestfish-actions.pod:4034 ../src/guestfs-actions.pod:6276
13728 msgid "This calls returns the contents of the file C<path> as a buffer."
13729 msgstr ""
13730
13731 #. type: textblock
13732 #: ../fish/guestfish-actions.pod:4037
13733 msgid ""
13734 "Unlike L</cat>, this function can correctly handle files that contain "
13735 "embedded ASCII NUL characters.  However unlike L</download>, this function "
13736 "is limited in the total size of file that can be handled."
13737 msgstr ""
13738
13739 #. type: =head2
13740 #: ../fish/guestfish-actions.pod:4045
13741 msgid "read-lines"
13742 msgstr ""
13743
13744 #. type: verbatim
13745 #: ../fish/guestfish-actions.pod:4047
13746 #, no-wrap
13747 msgid ""
13748 " read-lines path\n"
13749 "\n"
13750 msgstr ""
13751
13752 #. type: textblock
13753 #: ../fish/guestfish-actions.pod:4051 ../src/guestfs-actions.pod:6301
13754 msgid ""
13755 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13756 "C<CRLF> character sequences are I<not> returned."
13757 msgstr ""
13758
13759 #. type: textblock
13760 #: ../fish/guestfish-actions.pod:4054
13761 msgid ""
13762 "Note that this function cannot correctly handle binary files (specifically, "
13763 "files containing C<\\0> character which is treated as end of line).  For "
13764 "those you need to use the L</read-file> function which has a more complex "
13765 "interface."
13766 msgstr ""
13767
13768 #. type: =head2
13769 #: ../fish/guestfish-actions.pod:4059
13770 msgid "readdir"
13771 msgstr ""
13772
13773 #. type: verbatim
13774 #: ../fish/guestfish-actions.pod:4061
13775 #, no-wrap
13776 msgid ""
13777 " readdir dir\n"
13778 "\n"
13779 msgstr ""
13780
13781 #. type: textblock
13782 #: ../fish/guestfish-actions.pod:4063 ../src/guestfs-actions.pod:6321
13783 msgid "This returns the list of directory entries in directory C<dir>."
13784 msgstr ""
13785
13786 #. type: textblock
13787 #: ../fish/guestfish-actions.pod:4065 ../src/guestfs-actions.pod:6323
13788 msgid ""
13789 "All entries in the directory are returned, including C<.> and C<..>.  The "
13790 "entries are I<not> sorted, but returned in the same order as the underlying "
13791 "filesystem."
13792 msgstr ""
13793
13794 #. type: textblock
13795 #: ../fish/guestfish-actions.pod:4069 ../src/guestfs-actions.pod:6327
13796 msgid ""
13797 "Also this call returns basic file type information about each file.  The "
13798 "C<ftyp> field will contain one of the following characters:"
13799 msgstr ""
13800
13801 #. type: =item
13802 #: ../fish/guestfish-actions.pod:4074 ../src/guestfs-actions.pod:6332
13803 msgid "'b'"
13804 msgstr ""
13805
13806 #. type: textblock
13807 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6334
13808 msgid "Block special"
13809 msgstr ""
13810
13811 #. type: =item
13812 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6336
13813 msgid "'c'"
13814 msgstr ""
13815
13816 #. type: textblock
13817 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6338
13818 msgid "Char special"
13819 msgstr ""
13820
13821 #. type: =item
13822 #: ../fish/guestfish-actions.pod:4082 ../src/guestfs-actions.pod:6340
13823 msgid "'d'"
13824 msgstr ""
13825
13826 #. type: textblock
13827 #: ../fish/guestfish-actions.pod:4084 ../src/guestfs-actions.pod:6342
13828 msgid "Directory"
13829 msgstr ""
13830
13831 #. type: =item
13832 #: ../fish/guestfish-actions.pod:4086 ../src/guestfs-actions.pod:6344
13833 msgid "'f'"
13834 msgstr ""
13835
13836 #. type: textblock
13837 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6346
13838 msgid "FIFO (named pipe)"
13839 msgstr ""
13840
13841 #. type: =item
13842 #: ../fish/guestfish-actions.pod:4090 ../src/guestfs-actions.pod:6348
13843 msgid "'l'"
13844 msgstr ""
13845
13846 #. type: textblock
13847 #: ../fish/guestfish-actions.pod:4092 ../src/guestfs-actions.pod:6350
13848 msgid "Symbolic link"
13849 msgstr ""
13850
13851 #. type: =item
13852 #: ../fish/guestfish-actions.pod:4094 ../src/guestfs-actions.pod:6352
13853 msgid "'r'"
13854 msgstr ""
13855
13856 #. type: textblock
13857 #: ../fish/guestfish-actions.pod:4096 ../src/guestfs-actions.pod:6354
13858 msgid "Regular file"
13859 msgstr ""
13860
13861 #. type: =item
13862 #: ../fish/guestfish-actions.pod:4098 ../src/guestfs-actions.pod:6356
13863 msgid "'s'"
13864 msgstr ""
13865
13866 #. type: textblock
13867 #: ../fish/guestfish-actions.pod:4100 ../src/guestfs-actions.pod:6358
13868 msgid "Socket"
13869 msgstr ""
13870
13871 #. type: =item
13872 #: ../fish/guestfish-actions.pod:4102 ../src/guestfs-actions.pod:6360
13873 msgid "'u'"
13874 msgstr ""
13875
13876 #. type: textblock
13877 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6362
13878 msgid "Unknown file type"
13879 msgstr ""
13880
13881 #. type: =item
13882 #: ../fish/guestfish-actions.pod:4106 ../src/guestfs-actions.pod:6364
13883 msgid "'?'"
13884 msgstr ""
13885
13886 #. type: textblock
13887 #: ../fish/guestfish-actions.pod:4108 ../src/guestfs-actions.pod:6366
13888 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13889 msgstr ""
13890
13891 #. type: textblock
13892 #: ../fish/guestfish-actions.pod:4113
13893 msgid ""
13894 "This function is primarily intended for use by programs.  To get a simple "
13895 "list of names, use L</ls>.  To get a printable directory for human "
13896 "consumption, use L</ll>."
13897 msgstr ""
13898
13899 #. type: =head2
13900 #: ../fish/guestfish-actions.pod:4117
13901 msgid "readlink"
13902 msgstr ""
13903
13904 #. type: verbatim
13905 #: ../fish/guestfish-actions.pod:4119
13906 #, no-wrap
13907 msgid ""
13908 " readlink path\n"
13909 "\n"
13910 msgstr ""
13911
13912 #. type: textblock
13913 #: ../fish/guestfish-actions.pod:4121 ../src/guestfs-actions.pod:6387
13914 msgid "This command reads the target of a symbolic link."
13915 msgstr ""
13916
13917 #. type: =head2
13918 #: ../fish/guestfish-actions.pod:4123
13919 msgid "readlinklist"
13920 msgstr ""
13921
13922 #. type: verbatim
13923 #: ../fish/guestfish-actions.pod:4125
13924 #, no-wrap
13925 msgid ""
13926 " readlinklist path 'names ...'\n"
13927 "\n"
13928 msgstr ""
13929
13930 #. type: textblock
13931 #: ../fish/guestfish-actions.pod:4127 ../src/guestfs-actions.pod:6401
13932 msgid ""
13933 "This call allows you to do a C<readlink> operation on multiple files, where "
13934 "all files are in the directory C<path>.  C<names> is the list of files from "
13935 "this directory."
13936 msgstr ""
13937
13938 #. type: textblock
13939 #: ../fish/guestfish-actions.pod:4131 ../src/guestfs-actions.pod:6405
13940 msgid ""
13941 "On return you get a list of strings, with a one-to-one correspondence to the "
13942 "C<names> list.  Each string is the value of the symbolic link."
13943 msgstr ""
13944
13945 #. type: textblock
13946 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6409
13947 msgid ""
13948 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13949 "result string is the empty string C<\"\">.  However the whole operation is "
13950 "completed even if there were C<readlink(2)> errors, and so you can call this "
13951 "function with names where you don't know if they are symbolic links already "
13952 "(albeit slightly less efficient)."
13953 msgstr ""
13954
13955 #. type: textblock
13956 #: ../fish/guestfish-actions.pod:4142 ../src/guestfs-actions.pod:6416
13957 msgid ""
13958 "This call is intended for programs that want to efficiently list a directory "
13959 "contents without making many round-trips.  Very long directory listings "
13960 "might cause the protocol message size to be exceeded, causing this call to "
13961 "fail.  The caller must split up such requests into smaller groups of names."
13962 msgstr ""
13963
13964 #. type: =head2
13965 #: ../fish/guestfish-actions.pod:4149
13966 msgid "realpath"
13967 msgstr ""
13968
13969 #. type: verbatim
13970 #: ../fish/guestfish-actions.pod:4151
13971 #, no-wrap
13972 msgid ""
13973 " realpath path\n"
13974 "\n"
13975 msgstr ""
13976
13977 #. type: textblock
13978 #: ../fish/guestfish-actions.pod:4153 ../src/guestfs-actions.pod:6435
13979 msgid ""
13980 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13981 "has no C<.>, C<..> or symbolic link path elements."
13982 msgstr ""
13983
13984 #. type: =head2
13985 #: ../fish/guestfish-actions.pod:4156
13986 msgid "removexattr"
13987 msgstr ""
13988
13989 #. type: verbatim
13990 #: ../fish/guestfish-actions.pod:4158
13991 #, no-wrap
13992 msgid ""
13993 " removexattr xattr path\n"
13994 "\n"
13995 msgstr ""
13996
13997 #. type: textblock
13998 #: ../fish/guestfish-actions.pod:4160 ../src/guestfs-actions.pod:6450
13999 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
14000 msgstr ""
14001
14002 #. type: textblock
14003 #: ../fish/guestfish-actions.pod:4163
14004 msgid "See also: L</lremovexattr>, L<attr(5)>."
14005 msgstr ""
14006
14007 #. type: =head2
14008 #: ../fish/guestfish-actions.pod:4165
14009 msgid "resize2fs"
14010 msgstr ""
14011
14012 #. type: verbatim
14013 #: ../fish/guestfish-actions.pod:4167
14014 #, no-wrap
14015 msgid ""
14016 " resize2fs device\n"
14017 "\n"
14018 msgstr ""
14019
14020 #. type: textblock
14021 #: ../fish/guestfish-actions.pod:4169 ../src/guestfs-actions.pod:6465
14022 msgid ""
14023 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
14024 "underlying device."
14025 msgstr ""
14026
14027 #. type: textblock
14028 #: ../fish/guestfish-actions.pod:4172
14029 msgid ""
14030 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
14031 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
14032 "gives an error about this and sometimes not.  In any case, it is always safe "
14033 "to call L</e2fsck-f> before calling this function."
14034 msgstr ""
14035
14036 #. type: =head2
14037 #: ../fish/guestfish-actions.pod:4178
14038 msgid "resize2fs-M"
14039 msgstr ""
14040
14041 #. type: verbatim
14042 #: ../fish/guestfish-actions.pod:4180
14043 #, no-wrap
14044 msgid ""
14045 " resize2fs-M device\n"
14046 "\n"
14047 msgstr ""
14048
14049 #. type: textblock
14050 #: ../fish/guestfish-actions.pod:4182
14051 msgid ""
14052 "This command is the same as L</resize2fs>, but the filesystem is resized to "
14053 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
14054 "command."
14055 msgstr ""
14056
14057 #. type: textblock
14058 #: ../fish/guestfish-actions.pod:4186
14059 msgid ""
14060 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
14061 "and read the C<Block size> and C<Block count> values.  These two numbers, "
14062 "multiplied together, give the resulting size of the minimal filesystem in "
14063 "bytes."
14064 msgstr ""
14065
14066 #. type: =head2
14067 #: ../fish/guestfish-actions.pod:4191
14068 msgid "resize2fs-size"
14069 msgstr ""
14070
14071 #. type: verbatim
14072 #: ../fish/guestfish-actions.pod:4193
14073 #, no-wrap
14074 msgid ""
14075 " resize2fs-size device size\n"
14076 "\n"
14077 msgstr ""
14078
14079 #. type: textblock
14080 #: ../fish/guestfish-actions.pod:4195
14081 msgid ""
14082 "This command is the same as L</resize2fs> except that it allows you to "
14083 "specify the new size (in bytes) explicitly."
14084 msgstr ""
14085
14086 #. type: =head2
14087 #: ../fish/guestfish-actions.pod:4198
14088 msgid "rm"
14089 msgstr ""
14090
14091 #. type: verbatim
14092 #: ../fish/guestfish-actions.pod:4200
14093 #, no-wrap
14094 msgid ""
14095 " rm path\n"
14096 "\n"
14097 msgstr ""
14098
14099 #. type: textblock
14100 #: ../fish/guestfish-actions.pod:4202 ../src/guestfs-actions.pod:6517
14101 msgid "Remove the single file C<path>."
14102 msgstr ""
14103
14104 #. type: =head2
14105 #: ../fish/guestfish-actions.pod:4204
14106 msgid "rm-rf"
14107 msgstr ""
14108
14109 #. type: verbatim
14110 #: ../fish/guestfish-actions.pod:4206
14111 #, no-wrap
14112 msgid ""
14113 " rm-rf path\n"
14114 "\n"
14115 msgstr ""
14116
14117 #. type: textblock
14118 #: ../fish/guestfish-actions.pod:4208 ../src/guestfs-actions.pod:6529
14119 msgid ""
14120 "Remove the file or directory C<path>, recursively removing the contents if "
14121 "its a directory.  This is like the C<rm -rf> shell command."
14122 msgstr ""
14123
14124 #. type: =head2
14125 #: ../fish/guestfish-actions.pod:4212
14126 msgid "rmdir"
14127 msgstr ""
14128
14129 #. type: verbatim
14130 #: ../fish/guestfish-actions.pod:4214
14131 #, no-wrap
14132 msgid ""
14133 " rmdir path\n"
14134 "\n"
14135 msgstr ""
14136
14137 #. type: textblock
14138 #: ../fish/guestfish-actions.pod:4216 ../src/guestfs-actions.pod:6543
14139 msgid "Remove the single directory C<path>."
14140 msgstr ""
14141
14142 #. type: =head2
14143 #: ../fish/guestfish-actions.pod:4218
14144 msgid "rmmountpoint"
14145 msgstr ""
14146
14147 #. type: verbatim
14148 #: ../fish/guestfish-actions.pod:4220
14149 #, no-wrap
14150 msgid ""
14151 " rmmountpoint exemptpath\n"
14152 "\n"
14153 msgstr ""
14154
14155 #. type: textblock
14156 #: ../fish/guestfish-actions.pod:4222
14157 msgid ""
14158 "This calls removes a mountpoint that was previously created with "
14159 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
14160 msgstr ""
14161
14162 #. type: =head2
14163 #: ../fish/guestfish-actions.pod:4226
14164 msgid "scrub-device"
14165 msgstr ""
14166
14167 #. type: verbatim
14168 #: ../fish/guestfish-actions.pod:4228
14169 #, no-wrap
14170 msgid ""
14171 " scrub-device device\n"
14172 "\n"
14173 msgstr ""
14174
14175 #. type: textblock
14176 #: ../fish/guestfish-actions.pod:4230 ../src/guestfs-actions.pod:6569
14177 msgid ""
14178 "This command writes patterns over C<device> to make data retrieval more "
14179 "difficult."
14180 msgstr ""
14181
14182 #. type: textblock
14183 #: ../fish/guestfish-actions.pod:4233 ../fish/guestfish-actions.pod:4248 ../fish/guestfish-actions.pod:4261 ../src/guestfs-actions.pod:6572 ../src/guestfs-actions.pod:6593 ../src/guestfs-actions.pod:6612
14184 msgid ""
14185 "It is an interface to the L<scrub(1)> program.  See that manual page for "
14186 "more details."
14187 msgstr ""
14188
14189 #. type: =head2
14190 #: ../fish/guestfish-actions.pod:4239
14191 msgid "scrub-file"
14192 msgstr ""
14193
14194 #. type: verbatim
14195 #: ../fish/guestfish-actions.pod:4241
14196 #, no-wrap
14197 msgid ""
14198 " scrub-file file\n"
14199 "\n"
14200 msgstr ""
14201
14202 #. type: textblock
14203 #: ../fish/guestfish-actions.pod:4243 ../src/guestfs-actions.pod:6588
14204 msgid ""
14205 "This command writes patterns over a file to make data retrieval more "
14206 "difficult."
14207 msgstr ""
14208
14209 #. type: textblock
14210 #: ../fish/guestfish-actions.pod:4246 ../src/guestfs-actions.pod:6591
14211 msgid "The file is I<removed> after scrubbing."
14212 msgstr ""
14213
14214 #. type: =head2
14215 #: ../fish/guestfish-actions.pod:4251
14216 msgid "scrub-freespace"
14217 msgstr ""
14218
14219 #. type: verbatim
14220 #: ../fish/guestfish-actions.pod:4253
14221 #, no-wrap
14222 msgid ""
14223 " scrub-freespace dir\n"
14224 "\n"
14225 msgstr ""
14226
14227 #. type: textblock
14228 #: ../fish/guestfish-actions.pod:4255
14229 msgid ""
14230 "This command creates the directory C<dir> and then fills it with files until "
14231 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
14232 "deletes them.  The intention is to scrub any free space on the partition "
14233 "containing C<dir>."
14234 msgstr ""
14235
14236 #. type: =head2
14237 #: ../fish/guestfish-actions.pod:4264
14238 msgid "set-append"
14239 msgstr ""
14240
14241 #. type: =head2
14242 #: ../fish/guestfish-actions.pod:4266
14243 msgid "append"
14244 msgstr ""
14245
14246 #. type: verbatim
14247 #: ../fish/guestfish-actions.pod:4268
14248 #, no-wrap
14249 msgid ""
14250 " set-append append\n"
14251 "\n"
14252 msgstr ""
14253
14254 #. type: textblock
14255 #: ../fish/guestfish-actions.pod:4270 ../src/guestfs-actions.pod:6625
14256 msgid ""
14257 "This function is used to add additional options to the guest kernel command "
14258 "line."
14259 msgstr ""
14260
14261 #. type: textblock
14262 #: ../fish/guestfish-actions.pod:4273 ../src/guestfs-actions.pod:6628
14263 msgid ""
14264 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
14265 "environment variable."
14266 msgstr ""
14267
14268 #. type: textblock
14269 #: ../fish/guestfish-actions.pod:4276 ../src/guestfs-actions.pod:6631
14270 msgid ""
14271 "Setting C<append> to C<NULL> means I<no> additional options are passed "
14272 "(libguestfs always adds a few of its own)."
14273 msgstr ""
14274
14275 #. type: =head2
14276 #: ../fish/guestfish-actions.pod:4279
14277 msgid "set-attach-method"
14278 msgstr ""
14279
14280 #. type: =head2
14281 #: ../fish/guestfish-actions.pod:4281
14282 msgid "attach-method"
14283 msgstr ""
14284
14285 #. type: verbatim
14286 #: ../fish/guestfish-actions.pod:4283
14287 #, no-wrap
14288 msgid ""
14289 " set-attach-method attachmethod\n"
14290 "\n"
14291 msgstr ""
14292
14293 #. type: textblock
14294 #: ../fish/guestfish-actions.pod:4285 ../src/guestfs-actions.pod:6644
14295 msgid ""
14296 "Set the method that libguestfs uses to connect to the back end guestfsd "
14297 "daemon.  Possible methods are:"
14298 msgstr ""
14299
14300 #. type: =item
14301 #: ../fish/guestfish-actions.pod:4290 ../src/guestfs-actions.pod:6649 ../src/guestfs.pod:2916
14302 msgid "C<appliance>"
14303 msgstr ""
14304
14305 #. type: textblock
14306 #: ../fish/guestfish-actions.pod:4292 ../src/guestfs-actions.pod:6651
14307 msgid ""
14308 "Launch an appliance and connect to it.  This is the ordinary method and the "
14309 "default."
14310 msgstr ""
14311
14312 #. type: =item
14313 #: ../fish/guestfish-actions.pod:4295 ../src/guestfs-actions.pod:6654
14314 msgid "C<unix:I<path>>"
14315 msgstr ""
14316
14317 #. type: textblock
14318 #: ../fish/guestfish-actions.pod:4297 ../src/guestfs-actions.pod:6656
14319 msgid "Connect to the Unix domain socket I<path>."
14320 msgstr ""
14321
14322 #. type: textblock
14323 #: ../fish/guestfish-actions.pod:4299 ../src/guestfs-actions.pod:6658
14324 msgid ""
14325 "This method lets you connect to an existing daemon or (using virtio-serial) "
14326 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
14327 "RUNNING DAEMONS>."
14328 msgstr ""
14329
14330 #. type: =head2
14331 #: ../fish/guestfish-actions.pod:4305
14332 msgid "set-autosync"
14333 msgstr ""
14334
14335 #. type: =head2
14336 #: ../fish/guestfish-actions.pod:4307
14337 msgid "autosync"
14338 msgstr ""
14339
14340 #. type: verbatim
14341 #: ../fish/guestfish-actions.pod:4309
14342 #, no-wrap
14343 msgid ""
14344 " set-autosync true|false\n"
14345 "\n"
14346 msgstr ""
14347
14348 #. type: textblock
14349 #: ../fish/guestfish-actions.pod:4311 ../src/guestfs-actions.pod:6674
14350 msgid ""
14351 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
14352 "effort attempt to make filesystems consistent and synchronized when the "
14353 "handle is closed (also if the program exits without closing handles)."
14354 msgstr ""
14355
14356 #. type: textblock
14357 #: ../fish/guestfish-actions.pod:4316 ../src/guestfs-actions.pod:6679
14358 msgid ""
14359 "This is enabled by default (since libguestfs 1.5.24, previously it was "
14360 "disabled by default)."
14361 msgstr ""
14362
14363 #. type: =head2
14364 #: ../fish/guestfish-actions.pod:4319
14365 msgid "set-direct"
14366 msgstr ""
14367
14368 #. type: =head2
14369 #: ../fish/guestfish-actions.pod:4321
14370 msgid "direct"
14371 msgstr ""
14372
14373 #. type: verbatim
14374 #: ../fish/guestfish-actions.pod:4323
14375 #, no-wrap
14376 msgid ""
14377 " set-direct true|false\n"
14378 "\n"
14379 msgstr ""
14380
14381 #. type: textblock
14382 #: ../fish/guestfish-actions.pod:4325 ../src/guestfs-actions.pod:6692
14383 msgid ""
14384 "If the direct appliance mode flag is enabled, then stdin and stdout are "
14385 "passed directly through to the appliance once it is launched."
14386 msgstr ""
14387
14388 #. type: textblock
14389 #: ../fish/guestfish-actions.pod:4329
14390 msgid ""
14391 "One consequence of this is that log messages aren't caught by the library "
14392 "and handled by L</set-log-message-callback>, but go straight to stdout."
14393 msgstr ""
14394
14395 #. type: textblock
14396 #: ../fish/guestfish-actions.pod:4333 ../src/guestfs-actions.pod:6700
14397 msgid "You probably don't want to use this unless you know what you are doing."
14398 msgstr ""
14399
14400 #. type: textblock
14401 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6703
14402 msgid "The default is disabled."
14403 msgstr ""
14404
14405 #. type: =head2
14406 #: ../fish/guestfish-actions.pod:4338
14407 msgid "set-e2label"
14408 msgstr ""
14409
14410 #. type: verbatim
14411 #: ../fish/guestfish-actions.pod:4340
14412 #, no-wrap
14413 msgid ""
14414 " set-e2label device label\n"
14415 "\n"
14416 msgstr ""
14417
14418 #. type: textblock
14419 #: ../fish/guestfish-actions.pod:4342 ../src/guestfs-actions.pod:6716
14420 msgid ""
14421 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
14422 "C<label>.  Filesystem labels are limited to 16 characters."
14423 msgstr ""
14424
14425 #. type: textblock
14426 #: ../fish/guestfish-actions.pod:4346
14427 msgid ""
14428 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
14429 "label on a filesystem."
14430 msgstr ""
14431
14432 #. type: =head2
14433 #: ../fish/guestfish-actions.pod:4349
14434 msgid "set-e2uuid"
14435 msgstr ""
14436
14437 #. type: verbatim
14438 #: ../fish/guestfish-actions.pod:4351
14439 #, no-wrap
14440 msgid ""
14441 " set-e2uuid device uuid\n"
14442 "\n"
14443 msgstr ""
14444
14445 #. type: textblock
14446 #: ../fish/guestfish-actions.pod:4353 ../src/guestfs-actions.pod:6734
14447 msgid ""
14448 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
14449 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
14450 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
14451 msgstr ""
14452
14453 #. type: textblock
14454 #: ../fish/guestfish-actions.pod:4358
14455 msgid ""
14456 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
14457 "UUID of a filesystem."
14458 msgstr ""
14459
14460 #. type: =head2
14461 #: ../fish/guestfish-actions.pod:4361
14462 msgid "set-memsize"
14463 msgstr ""
14464
14465 #. type: =head2
14466 #: ../fish/guestfish-actions.pod:4363
14467 msgid "memsize"
14468 msgstr ""
14469
14470 #. type: verbatim
14471 #: ../fish/guestfish-actions.pod:4365
14472 #, no-wrap
14473 msgid ""
14474 " set-memsize memsize\n"
14475 "\n"
14476 msgstr ""
14477
14478 #. type: textblock
14479 #: ../fish/guestfish-actions.pod:4367
14480 msgid ""
14481 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
14482 "This only has any effect if called before L</launch>."
14483 msgstr ""
14484
14485 #. type: textblock
14486 #: ../fish/guestfish-actions.pod:4371 ../src/guestfs-actions.pod:6756
14487 msgid ""
14488 "You can also change this by setting the environment variable "
14489 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
14490 msgstr ""
14491
14492 #. type: =head2
14493 #: ../fish/guestfish-actions.pod:4378
14494 msgid "set-network"
14495 msgstr ""
14496
14497 #. type: =head2
14498 #: ../fish/guestfish-actions.pod:4380
14499 msgid "network"
14500 msgstr ""
14501
14502 #. type: verbatim
14503 #: ../fish/guestfish-actions.pod:4382
14504 #, no-wrap
14505 msgid ""
14506 " set-network true|false\n"
14507 "\n"
14508 msgstr ""
14509
14510 #. type: textblock
14511 #: ../fish/guestfish-actions.pod:4384 ../src/guestfs-actions.pod:6773
14512 msgid ""
14513 "If C<network> is true, then the network is enabled in the libguestfs "
14514 "appliance.  The default is false."
14515 msgstr ""
14516
14517 #. type: textblock
14518 #: ../fish/guestfish-actions.pod:4387 ../src/guestfs-actions.pod:6776
14519 msgid ""
14520 "This affects whether commands are able to access the network (see "
14521 "L<guestfs(3)/RUNNING COMMANDS>)."
14522 msgstr ""
14523
14524 #. type: textblock
14525 #: ../fish/guestfish-actions.pod:4390
14526 msgid "You must call this before calling L</launch>, otherwise it has no effect."
14527 msgstr ""
14528
14529 #. type: =head2
14530 #: ../fish/guestfish-actions.pod:4393
14531 msgid "set-path"
14532 msgstr ""
14533
14534 #. type: verbatim
14535 #: ../fish/guestfish-actions.pod:4397
14536 #, no-wrap
14537 msgid ""
14538 " set-path searchpath\n"
14539 "\n"
14540 msgstr ""
14541
14542 #. type: textblock
14543 #: ../fish/guestfish-actions.pod:4399 ../src/guestfs-actions.pod:6792
14544 msgid "Set the path that libguestfs searches for kernel and initrd.img."
14545 msgstr ""
14546
14547 #. type: textblock
14548 #: ../fish/guestfish-actions.pod:4401 ../src/guestfs-actions.pod:6794
14549 msgid ""
14550 "The default is C<$libdir/guestfs> unless overridden by setting "
14551 "C<LIBGUESTFS_PATH> environment variable."
14552 msgstr ""
14553
14554 #. type: textblock
14555 #: ../fish/guestfish-actions.pod:4404 ../src/guestfs-actions.pod:6797
14556 msgid "Setting C<path> to C<NULL> restores the default path."
14557 msgstr ""
14558
14559 #. type: =head2
14560 #: ../fish/guestfish-actions.pod:4406
14561 msgid "set-pgroup"
14562 msgstr ""
14563
14564 #. type: =head2
14565 #: ../fish/guestfish-actions.pod:4408
14566 msgid "pgroup"
14567 msgstr ""
14568
14569 #. type: verbatim
14570 #: ../fish/guestfish-actions.pod:4410
14571 #, no-wrap
14572 msgid ""
14573 " set-pgroup true|false\n"
14574 "\n"
14575 msgstr ""
14576
14577 #. type: textblock
14578 #: ../fish/guestfish-actions.pod:4412 ../src/guestfs-actions.pod:6809
14579 msgid ""
14580 "If C<pgroup> is true, child processes are placed into their own process "
14581 "group."
14582 msgstr ""
14583
14584 #. type: textblock
14585 #: ../fish/guestfish-actions.pod:4415 ../src/guestfs-actions.pod:6812
14586 msgid ""
14587 "The practical upshot of this is that signals like C<SIGINT> (from users "
14588 "pressing C<^C>) won't be received by the child process."
14589 msgstr ""
14590
14591 #. type: textblock
14592 #: ../fish/guestfish-actions.pod:4418 ../src/guestfs-actions.pod:6815
14593 msgid ""
14594 "The default for this flag is false, because usually you want C<^C> to kill "
14595 "the subprocess."
14596 msgstr ""
14597
14598 #. type: =head2
14599 #: ../fish/guestfish-actions.pod:4421
14600 msgid "set-qemu"
14601 msgstr ""
14602
14603 #. type: =head2
14604 #: ../fish/guestfish-actions.pod:4423
14605 msgid "qemu"
14606 msgstr ""
14607
14608 #. type: verbatim
14609 #: ../fish/guestfish-actions.pod:4425
14610 #, no-wrap
14611 msgid ""
14612 " set-qemu qemu\n"
14613 "\n"
14614 msgstr ""
14615
14616 #. type: textblock
14617 #: ../fish/guestfish-actions.pod:4427 ../src/guestfs-actions.pod:6828
14618 msgid "Set the qemu binary that we will use."
14619 msgstr ""
14620
14621 #. type: textblock
14622 #: ../fish/guestfish-actions.pod:4429 ../src/guestfs-actions.pod:6830
14623 msgid "The default is chosen when the library was compiled by the configure script."
14624 msgstr ""
14625
14626 #. type: textblock
14627 #: ../fish/guestfish-actions.pod:4432 ../src/guestfs-actions.pod:6833
14628 msgid ""
14629 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
14630 "variable."
14631 msgstr ""
14632
14633 #. type: textblock
14634 #: ../fish/guestfish-actions.pod:4435 ../src/guestfs-actions.pod:6836
14635 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
14636 msgstr ""
14637
14638 #. type: textblock
14639 #: ../fish/guestfish-actions.pod:4437 ../src/guestfs-actions.pod:6838
14640 msgid ""
14641 "Note that you should call this function as early as possible after creating "
14642 "the handle.  This is because some pre-launch operations depend on testing "
14643 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
14644 "don't retest features, and so you might see inconsistent results.  Using the "
14645 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
14646 "the qemu binary at the same time as the handle is created."
14647 msgstr ""
14648
14649 #. type: =head2
14650 #: ../fish/guestfish-actions.pod:4445
14651 msgid "set-recovery-proc"
14652 msgstr ""
14653
14654 #. type: =head2
14655 #: ../fish/guestfish-actions.pod:4447
14656 msgid "recovery-proc"
14657 msgstr ""
14658
14659 #. type: verbatim
14660 #: ../fish/guestfish-actions.pod:4449
14661 #, no-wrap
14662 msgid ""
14663 " set-recovery-proc true|false\n"
14664 "\n"
14665 msgstr ""
14666
14667 #. type: textblock
14668 #: ../fish/guestfish-actions.pod:4451
14669 msgid ""
14670 "If this is called with the parameter C<false> then L</launch> does not "
14671 "create a recovery process.  The purpose of the recovery process is to stop "
14672 "runaway qemu processes in the case where the main program aborts abruptly."
14673 msgstr ""
14674
14675 #. type: textblock
14676 #: ../fish/guestfish-actions.pod:4456
14677 msgid ""
14678 "This only has any effect if called before L</launch>, and the default is "
14679 "true."
14680 msgstr ""
14681
14682 #. type: textblock
14683 #: ../fish/guestfish-actions.pod:4459 ../src/guestfs-actions.pod:6864
14684 msgid ""
14685 "About the only time when you would want to disable this is if the main "
14686 "process will fork itself into the background (\"daemonize\" itself).  In "
14687 "this case the recovery process thinks that the main program has disappeared "
14688 "and so kills qemu, which is not very helpful."
14689 msgstr ""
14690
14691 #. type: =head2
14692 #: ../fish/guestfish-actions.pod:4465
14693 msgid "set-selinux"
14694 msgstr ""
14695
14696 #. type: =head2
14697 #: ../fish/guestfish-actions.pod:4467
14698 msgid "selinux"
14699 msgstr ""
14700
14701 #. type: verbatim
14702 #: ../fish/guestfish-actions.pod:4469
14703 #, no-wrap
14704 msgid ""
14705 " set-selinux true|false\n"
14706 "\n"
14707 msgstr ""
14708
14709 #. type: textblock
14710 #: ../fish/guestfish-actions.pod:4471 ../src/guestfs-actions.pod:6880
14711 msgid ""
14712 "This sets the selinux flag that is passed to the appliance at boot time.  "
14713 "The default is C<selinux=0> (disabled)."
14714 msgstr ""
14715
14716 #. type: textblock
14717 #: ../fish/guestfish-actions.pod:4474 ../src/guestfs-actions.pod:6883
14718 msgid ""
14719 "Note that if SELinux is enabled, it is always in Permissive mode "
14720 "(C<enforcing=0>)."
14721 msgstr ""
14722
14723 #. type: =head2
14724 #: ../fish/guestfish-actions.pod:4480
14725 msgid "set-smp"
14726 msgstr ""
14727
14728 #. type: =head2
14729 #: ../fish/guestfish-actions.pod:4482
14730 msgid "smp"
14731 msgstr ""
14732
14733 #. type: verbatim
14734 #: ../fish/guestfish-actions.pod:4484
14735 #, no-wrap
14736 msgid ""
14737 " set-smp smp\n"
14738 "\n"
14739 msgstr ""
14740
14741 #. type: textblock
14742 #: ../fish/guestfish-actions.pod:4486 ../src/guestfs-actions.pod:6899
14743 msgid ""
14744 "Change the number of virtual CPUs assigned to the appliance.  The default is "
14745 "C<1>.  Increasing this may improve performance, though often it has no "
14746 "effect."
14747 msgstr ""
14748
14749 #. type: textblock
14750 #: ../fish/guestfish-actions.pod:4490
14751 msgid "This function must be called before L</launch>."
14752 msgstr ""
14753
14754 #. type: =head2
14755 #: ../fish/guestfish-actions.pod:4492
14756 msgid "set-trace"
14757 msgstr ""
14758
14759 #. type: =head2
14760 #: ../fish/guestfish-actions.pod:4494
14761 msgid "trace"
14762 msgstr ""
14763
14764 #. type: verbatim
14765 #: ../fish/guestfish-actions.pod:4496
14766 #, no-wrap
14767 msgid ""
14768 " set-trace true|false\n"
14769 "\n"
14770 msgstr ""
14771
14772 #. type: textblock
14773 #: ../fish/guestfish-actions.pod:4498 ../src/guestfs-actions.pod:6915
14774 msgid ""
14775 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
14776 "return values are traced."
14777 msgstr ""
14778
14779 #. type: textblock
14780 #: ../fish/guestfish-actions.pod:4501 ../src/guestfs-actions.pod:6918
14781 msgid ""
14782 "If you want to trace C API calls into libguestfs (and other libraries) then "
14783 "possibly a better way is to use the external ltrace(1) command."
14784 msgstr ""
14785
14786 #. type: textblock
14787 #: ../fish/guestfish-actions.pod:4505 ../src/guestfs-actions.pod:6922
14788 msgid ""
14789 "Command traces are disabled unless the environment variable "
14790 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14791 msgstr ""
14792
14793 #. type: textblock
14794 #: ../fish/guestfish-actions.pod:4508
14795 msgid ""
14796 "Trace messages are normally sent to C<stderr>, unless you register a "
14797 "callback to send them somewhere else (see L</set-event-callback>)."
14798 msgstr ""
14799
14800 #. type: =head2
14801 #: ../fish/guestfish-actions.pod:4512
14802 msgid "set-verbose"
14803 msgstr ""
14804
14805 #. type: =head2
14806 #: ../fish/guestfish-actions.pod:4514
14807 msgid "verbose"
14808 msgstr ""
14809
14810 #. type: verbatim
14811 #: ../fish/guestfish-actions.pod:4516
14812 #, no-wrap
14813 msgid ""
14814 " set-verbose true|false\n"
14815 "\n"
14816 msgstr ""
14817
14818 #. type: textblock
14819 #: ../fish/guestfish-actions.pod:4518 ../src/guestfs-actions.pod:6939
14820 msgid "If C<verbose> is true, this turns on verbose messages."
14821 msgstr ""
14822
14823 #. type: textblock
14824 #: ../fish/guestfish-actions.pod:4520 ../src/guestfs-actions.pod:6941
14825 msgid ""
14826 "Verbose messages are disabled unless the environment variable "
14827 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14828 msgstr ""
14829
14830 #. type: textblock
14831 #: ../fish/guestfish-actions.pod:4523
14832 msgid ""
14833 "Verbose messages are normally sent to C<stderr>, unless you register a "
14834 "callback to send them somewhere else (see L</set-event-callback>)."
14835 msgstr ""
14836
14837 #. type: =head2
14838 #: ../fish/guestfish-actions.pod:4527
14839 msgid "setcon"
14840 msgstr ""
14841
14842 #. type: verbatim
14843 #: ../fish/guestfish-actions.pod:4529
14844 #, no-wrap
14845 msgid ""
14846 " setcon context\n"
14847 "\n"
14848 msgstr ""
14849
14850 #. type: textblock
14851 #: ../fish/guestfish-actions.pod:4531 ../src/guestfs-actions.pod:6958
14852 msgid ""
14853 "This sets the SELinux security context of the daemon to the string "
14854 "C<context>."
14855 msgstr ""
14856
14857 #. type: textblock
14858 #: ../fish/guestfish-actions.pod:4534 ../src/guestfs-actions.pod:6961
14859 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14860 msgstr ""
14861
14862 #. type: =head2
14863 #: ../fish/guestfish-actions.pod:4536
14864 msgid "setxattr"
14865 msgstr ""
14866
14867 #. type: verbatim
14868 #: ../fish/guestfish-actions.pod:4538
14869 #, no-wrap
14870 msgid ""
14871 " setxattr xattr val vallen path\n"
14872 "\n"
14873 msgstr ""
14874
14875 #. type: textblock
14876 #: ../fish/guestfish-actions.pod:4540 ../src/guestfs-actions.pod:6976
14877 msgid ""
14878 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14879 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
14880 msgstr ""
14881
14882 #. type: textblock
14883 #: ../fish/guestfish-actions.pod:4544
14884 msgid "See also: L</lsetxattr>, L<attr(5)>."
14885 msgstr ""
14886
14887 #. type: =head2
14888 #: ../fish/guestfish-actions.pod:4546
14889 msgid "sfdisk"
14890 msgstr ""
14891
14892 #. type: verbatim
14893 #: ../fish/guestfish-actions.pod:4548
14894 #, no-wrap
14895 msgid ""
14896 " sfdisk device cyls heads sectors 'lines ...'\n"
14897 "\n"
14898 msgstr ""
14899
14900 #. type: textblock
14901 #: ../fish/guestfish-actions.pod:4550 ../src/guestfs-actions.pod:7003
14902 msgid ""
14903 "This is a direct interface to the L<sfdisk(8)> program for creating "
14904 "partitions on block devices."
14905 msgstr ""
14906
14907 #. type: textblock
14908 #: ../fish/guestfish-actions.pod:4553 ../src/guestfs-actions.pod:7006
14909 msgid "C<device> should be a block device, for example C</dev/sda>."
14910 msgstr ""
14911
14912 #. type: textblock
14913 #: ../fish/guestfish-actions.pod:4555 ../src/guestfs-actions.pod:7008
14914 msgid ""
14915 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14916 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
14917 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
14918 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
14919 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14920 "the kernel) cannot work out the right geometry and you will need to tell it."
14921 msgstr ""
14922
14923 #. type: textblock
14924 #: ../fish/guestfish-actions.pod:4563 ../src/guestfs-actions.pod:7016
14925 msgid ""
14926 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
14927 "refer to the L<sfdisk(8)> manpage."
14928 msgstr ""
14929
14930 #. type: textblock
14931 #: ../fish/guestfish-actions.pod:4566 ../src/guestfs-actions.pod:7019
14932 msgid ""
14933 "To create a single partition occupying the whole disk, you would pass "
14934 "C<lines> as a single element list, when the single element being the string "
14935 "C<,> (comma)."
14936 msgstr ""
14937
14938 #. type: textblock
14939 #: ../fish/guestfish-actions.pod:4570
14940 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14941 msgstr ""
14942
14943 #. type: textblock
14944 #: ../fish/guestfish-actions.pod:4576 ../fish/guestfish-actions.pod:4599 ../fish/guestfish-actions.pod:4621
14945 msgid ""
14946 "I<This function is deprecated.> In new code, use the L</part_add> call "
14947 "instead."
14948 msgstr ""
14949
14950 #. type: =head2
14951 #: ../fish/guestfish-actions.pod:4583
14952 msgid "sfdiskM"
14953 msgstr ""
14954
14955 #. type: verbatim
14956 #: ../fish/guestfish-actions.pod:4585
14957 #, no-wrap
14958 msgid ""
14959 " sfdiskM device 'lines ...'\n"
14960 "\n"
14961 msgstr ""
14962
14963 #. type: textblock
14964 #: ../fish/guestfish-actions.pod:4587
14965 msgid ""
14966 "This is a simplified interface to the L</sfdisk> command, where partition "
14967 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
14968 "you don't need to specify the cyls, heads and sectors parameters which were "
14969 "rarely if ever used anyway."
14970 msgstr ""
14971
14972 #. type: textblock
14973 #: ../fish/guestfish-actions.pod:4593
14974 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
14975 msgstr ""
14976
14977 #. type: =head2
14978 #: ../fish/guestfish-actions.pod:4606
14979 msgid "sfdisk-N"
14980 msgstr ""
14981
14982 #. type: verbatim
14983 #: ../fish/guestfish-actions.pod:4608
14984 #, no-wrap
14985 msgid ""
14986 " sfdisk-N device partnum cyls heads sectors line\n"
14987 "\n"
14988 msgstr ""
14989
14990 #. type: textblock
14991 #: ../fish/guestfish-actions.pod:4610 ../src/guestfs-actions.pod:7081
14992 msgid ""
14993 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14994 "(note: C<n> counts from 1)."
14995 msgstr ""
14996
14997 #. type: textblock
14998 #: ../fish/guestfish-actions.pod:4613
14999 msgid ""
15000 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
15001 "cyls/heads/sectors parameters."
15002 msgstr ""
15003
15004 #. type: textblock
15005 #: ../fish/guestfish-actions.pod:4616
15006 msgid "See also: L</part-add>"
15007 msgstr ""
15008
15009 #. type: =head2
15010 #: ../fish/guestfish-actions.pod:4628
15011 msgid "sfdisk-disk-geometry"
15012 msgstr ""
15013
15014 #. type: verbatim
15015 #: ../fish/guestfish-actions.pod:4630
15016 #, no-wrap
15017 msgid ""
15018 " sfdisk-disk-geometry device\n"
15019 "\n"
15020 msgstr ""
15021
15022 #. type: textblock
15023 #: ../fish/guestfish-actions.pod:4632
15024 msgid ""
15025 "This displays the disk geometry of C<device> read from the partition table.  "
15026 "Especially in the case where the underlying block device has been resized, "
15027 "this can be different from the kernel's idea of the geometry (see "
15028 "L</sfdisk-kernel-geometry>)."
15029 msgstr ""
15030
15031 #. type: textblock
15032 #: ../fish/guestfish-actions.pod:4637 ../fish/guestfish-actions.pod:4646 ../src/guestfs-actions.pod:7107 ../src/guestfs-actions.pod:7123
15033 msgid "The result is in human-readable format, and not designed to be parsed."
15034 msgstr ""
15035
15036 #. type: =head2
15037 #: ../fish/guestfish-actions.pod:4640
15038 msgid "sfdisk-kernel-geometry"
15039 msgstr ""
15040
15041 #. type: verbatim
15042 #: ../fish/guestfish-actions.pod:4642
15043 #, no-wrap
15044 msgid ""
15045 " sfdisk-kernel-geometry device\n"
15046 "\n"
15047 msgstr ""
15048
15049 #. type: textblock
15050 #: ../fish/guestfish-actions.pod:4644 ../src/guestfs-actions.pod:7121
15051 msgid "This displays the kernel's idea of the geometry of C<device>."
15052 msgstr ""
15053
15054 #. type: =head2
15055 #: ../fish/guestfish-actions.pod:4649
15056 msgid "sfdisk-l"
15057 msgstr ""
15058
15059 #. type: verbatim
15060 #: ../fish/guestfish-actions.pod:4651
15061 #, no-wrap
15062 msgid ""
15063 " sfdisk-l device\n"
15064 "\n"
15065 msgstr ""
15066
15067 #. type: textblock
15068 #: ../fish/guestfish-actions.pod:4653 ../src/guestfs-actions.pod:7144
15069 msgid ""
15070 "This displays the partition table on C<device>, in the human-readable output "
15071 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
15072 msgstr ""
15073
15074 #. type: textblock
15075 #: ../fish/guestfish-actions.pod:4657
15076 msgid "See also: L</part-list>"
15077 msgstr ""
15078
15079 #. type: textblock
15080 #: ../fish/guestfish-actions.pod:4659
15081 msgid ""
15082 "I<This function is deprecated.> In new code, use the L</part_list> call "
15083 "instead."
15084 msgstr ""
15085
15086 #. type: =head2
15087 #: ../fish/guestfish-actions.pod:4666
15088 msgid "sh"
15089 msgstr ""
15090
15091 #. type: verbatim
15092 #: ../fish/guestfish-actions.pod:4668
15093 #, no-wrap
15094 msgid ""
15095 " sh command\n"
15096 "\n"
15097 msgstr ""
15098
15099 #. type: textblock
15100 #: ../fish/guestfish-actions.pod:4670 ../src/guestfs-actions.pod:7161
15101 msgid ""
15102 "This call runs a command from the guest filesystem via the guest's "
15103 "C</bin/sh>."
15104 msgstr ""
15105
15106 #. type: textblock
15107 #: ../fish/guestfish-actions.pod:4673
15108 msgid "This is like L</command>, but passes the command to:"
15109 msgstr ""
15110
15111 #. type: verbatim
15112 #: ../fish/guestfish-actions.pod:4675 ../src/guestfs-actions.pod:7166
15113 #, no-wrap
15114 msgid ""
15115 " /bin/sh -c \"command\"\n"
15116 "\n"
15117 msgstr ""
15118
15119 #. type: textblock
15120 #: ../fish/guestfish-actions.pod:4677 ../src/guestfs-actions.pod:7168
15121 msgid ""
15122 "Depending on the guest's shell, this usually results in wildcards being "
15123 "expanded, shell expressions being interpolated and so on."
15124 msgstr ""
15125
15126 #. type: textblock
15127 #: ../fish/guestfish-actions.pod:4681
15128 msgid "All the provisos about L</command> apply to this call."
15129 msgstr ""
15130
15131 #. type: =head2
15132 #: ../fish/guestfish-actions.pod:4683
15133 msgid "sh-lines"
15134 msgstr ""
15135
15136 #. type: verbatim
15137 #: ../fish/guestfish-actions.pod:4685
15138 #, no-wrap
15139 msgid ""
15140 " sh-lines command\n"
15141 "\n"
15142 msgstr ""
15143
15144 #. type: textblock
15145 #: ../fish/guestfish-actions.pod:4687
15146 msgid "This is the same as L</sh>, but splits the result into a list of lines."
15147 msgstr ""
15148
15149 #. type: textblock
15150 #: ../fish/guestfish-actions.pod:4690
15151 msgid "See also: L</command-lines>"
15152 msgstr ""
15153
15154 #. type: =head2
15155 #: ../fish/guestfish-actions.pod:4692
15156 msgid "sleep"
15157 msgstr ""
15158
15159 #. type: verbatim
15160 #: ../fish/guestfish-actions.pod:4694
15161 #, no-wrap
15162 msgid ""
15163 " sleep secs\n"
15164 "\n"
15165 msgstr ""
15166
15167 #. type: textblock
15168 #: ../fish/guestfish-actions.pod:4696 ../src/guestfs-actions.pod:7202
15169 msgid "Sleep for C<secs> seconds."
15170 msgstr ""
15171
15172 #. type: =head2
15173 #: ../fish/guestfish-actions.pod:4698
15174 msgid "stat"
15175 msgstr ""
15176
15177 #. type: verbatim
15178 #: ../fish/guestfish-actions.pod:4700
15179 #, no-wrap
15180 msgid ""
15181 " stat path\n"
15182 "\n"
15183 msgstr ""
15184
15185 #. type: textblock
15186 #: ../fish/guestfish-actions.pod:4704 ../src/guestfs-actions.pod:7216
15187 msgid "This is the same as the C<stat(2)> system call."
15188 msgstr ""
15189
15190 #. type: =head2
15191 #: ../fish/guestfish-actions.pod:4706
15192 msgid "statvfs"
15193 msgstr ""
15194
15195 #. type: verbatim
15196 #: ../fish/guestfish-actions.pod:4708
15197 #, no-wrap
15198 msgid ""
15199 " statvfs path\n"
15200 "\n"
15201 msgstr ""
15202
15203 #. type: textblock
15204 #: ../fish/guestfish-actions.pod:4710 ../src/guestfs-actions.pod:7230
15205 msgid ""
15206 "Returns file system statistics for any mounted file system.  C<path> should "
15207 "be a file or directory in the mounted file system (typically it is the mount "
15208 "point itself, but it doesn't need to be)."
15209 msgstr ""
15210
15211 #. type: textblock
15212 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7234
15213 msgid "This is the same as the C<statvfs(2)> system call."
15214 msgstr ""
15215
15216 #. type: =head2
15217 #: ../fish/guestfish-actions.pod:4716
15218 msgid "strings"
15219 msgstr ""
15220
15221 #. type: verbatim
15222 #: ../fish/guestfish-actions.pod:4718
15223 #, no-wrap
15224 msgid ""
15225 " strings path\n"
15226 "\n"
15227 msgstr ""
15228
15229 #. type: textblock
15230 #: ../fish/guestfish-actions.pod:4720 ../src/guestfs-actions.pod:7248
15231 msgid ""
15232 "This runs the L<strings(1)> command on a file and returns the list of "
15233 "printable strings found."
15234 msgstr ""
15235
15236 #. type: =head2
15237 #: ../fish/guestfish-actions.pod:4726
15238 msgid "strings-e"
15239 msgstr ""
15240
15241 #. type: verbatim
15242 #: ../fish/guestfish-actions.pod:4728
15243 #, no-wrap
15244 msgid ""
15245 " strings-e encoding path\n"
15246 "\n"
15247 msgstr ""
15248
15249 #. type: textblock
15250 #: ../fish/guestfish-actions.pod:4730
15251 msgid ""
15252 "This is like the L</strings> command, but allows you to specify the encoding "
15253 "of strings that are looked for in the source file C<path>."
15254 msgstr ""
15255
15256 #. type: textblock
15257 #: ../fish/guestfish-actions.pod:4734 ../src/guestfs-actions.pod:7271
15258 msgid "Allowed encodings are:"
15259 msgstr ""
15260
15261 #. type: =item
15262 #: ../fish/guestfish-actions.pod:4738 ../src/guestfs-actions.pod:7275
15263 msgid "s"
15264 msgstr ""
15265
15266 #. type: textblock
15267 #: ../fish/guestfish-actions.pod:4740
15268 msgid ""
15269 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
15270 "ISO-8859-X (this is what L</strings> uses)."
15271 msgstr ""
15272
15273 #. type: =item
15274 #: ../fish/guestfish-actions.pod:4743 ../src/guestfs-actions.pod:7280
15275 msgid "S"
15276 msgstr ""
15277
15278 #. type: textblock
15279 #: ../fish/guestfish-actions.pod:4745 ../src/guestfs-actions.pod:7282
15280 msgid "Single 8-bit-byte characters."
15281 msgstr ""
15282
15283 #. type: =item
15284 #: ../fish/guestfish-actions.pod:4747 ../src/guestfs-actions.pod:7284
15285 msgid "b"
15286 msgstr ""
15287
15288 #. type: textblock
15289 #: ../fish/guestfish-actions.pod:4749 ../src/guestfs-actions.pod:7286
15290 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
15291 msgstr ""
15292
15293 #. type: =item
15294 #: ../fish/guestfish-actions.pod:4752 ../src/guestfs-actions.pod:7289
15295 msgid "l (lower case letter L)"
15296 msgstr ""
15297
15298 #. type: textblock
15299 #: ../fish/guestfish-actions.pod:4754 ../src/guestfs-actions.pod:7291
15300 msgid ""
15301 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
15302 "examining binaries in Windows guests."
15303 msgstr ""
15304
15305 #. type: =item
15306 #: ../fish/guestfish-actions.pod:4757 ../src/guestfs-actions.pod:7294
15307 msgid "B"
15308 msgstr ""
15309
15310 #. type: textblock
15311 #: ../fish/guestfish-actions.pod:4759 ../src/guestfs-actions.pod:7296
15312 msgid "32-bit big endian such as UCS-4BE."
15313 msgstr ""
15314
15315 #. type: =item
15316 #: ../fish/guestfish-actions.pod:4761 ../src/guestfs-actions.pod:7298
15317 msgid "L"
15318 msgstr ""
15319
15320 #. type: textblock
15321 #: ../fish/guestfish-actions.pod:4763 ../src/guestfs-actions.pod:7300
15322 msgid "32-bit little endian such as UCS-4LE."
15323 msgstr ""
15324
15325 #. type: textblock
15326 #: ../fish/guestfish-actions.pod:4767 ../src/guestfs-actions.pod:7304
15327 msgid "The returned strings are transcoded to UTF-8."
15328 msgstr ""
15329
15330 #. type: =head2
15331 #: ../fish/guestfish-actions.pod:4772
15332 msgid "swapoff-device"
15333 msgstr ""
15334
15335 #. type: verbatim
15336 #: ../fish/guestfish-actions.pod:4774
15337 #, no-wrap
15338 msgid ""
15339 " swapoff-device device\n"
15340 "\n"
15341 msgstr ""
15342
15343 #. type: textblock
15344 #: ../fish/guestfish-actions.pod:4776
15345 msgid ""
15346 "This command disables the libguestfs appliance swap device or partition "
15347 "named C<device>.  See L</swapon-device>."
15348 msgstr ""
15349
15350 #. type: =head2
15351 #: ../fish/guestfish-actions.pod:4780
15352 msgid "swapoff-file"
15353 msgstr ""
15354
15355 #. type: verbatim
15356 #: ../fish/guestfish-actions.pod:4782
15357 #, no-wrap
15358 msgid ""
15359 " swapoff-file file\n"
15360 "\n"
15361 msgstr ""
15362
15363 #. type: textblock
15364 #: ../fish/guestfish-actions.pod:4784 ../src/guestfs-actions.pod:7335
15365 msgid "This command disables the libguestfs appliance swap on file."
15366 msgstr ""
15367
15368 #. type: =head2
15369 #: ../fish/guestfish-actions.pod:4786
15370 msgid "swapoff-label"
15371 msgstr ""
15372
15373 #. type: verbatim
15374 #: ../fish/guestfish-actions.pod:4788
15375 #, no-wrap
15376 msgid ""
15377 " swapoff-label label\n"
15378 "\n"
15379 msgstr ""
15380
15381 #. type: textblock
15382 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7347
15383 msgid ""
15384 "This command disables the libguestfs appliance swap on labeled swap "
15385 "partition."
15386 msgstr ""
15387
15388 #. type: =head2
15389 #: ../fish/guestfish-actions.pod:4793
15390 msgid "swapoff-uuid"
15391 msgstr ""
15392
15393 #. type: verbatim
15394 #: ../fish/guestfish-actions.pod:4795
15395 #, no-wrap
15396 msgid ""
15397 " swapoff-uuid uuid\n"
15398 "\n"
15399 msgstr ""
15400
15401 #. type: textblock
15402 #: ../fish/guestfish-actions.pod:4797 ../src/guestfs-actions.pod:7360
15403 msgid ""
15404 "This command disables the libguestfs appliance swap partition with the given "
15405 "UUID."
15406 msgstr ""
15407
15408 #. type: =head2
15409 #: ../fish/guestfish-actions.pod:4800
15410 msgid "swapon-device"
15411 msgstr ""
15412
15413 #. type: verbatim
15414 #: ../fish/guestfish-actions.pod:4802
15415 #, no-wrap
15416 msgid ""
15417 " swapon-device device\n"
15418 "\n"
15419 msgstr ""
15420
15421 #. type: textblock
15422 #: ../fish/guestfish-actions.pod:4804
15423 msgid ""
15424 "This command enables the libguestfs appliance to use the swap device or "
15425 "partition named C<device>.  The increased memory is made available for all "
15426 "commands, for example those run using L</command> or L</sh>."
15427 msgstr ""
15428
15429 #. type: textblock
15430 #: ../fish/guestfish-actions.pod:4809 ../src/guestfs-actions.pod:7378
15431 msgid ""
15432 "Note that you should not swap to existing guest swap partitions unless you "
15433 "know what you are doing.  They may contain hibernation information, or other "
15434 "information that the guest doesn't want you to trash.  You also risk leaking "
15435 "information about the host to the guest this way.  Instead, attach a new "
15436 "host device to the guest and swap on that."
15437 msgstr ""
15438
15439 #. type: =head2
15440 #: ../fish/guestfish-actions.pod:4816
15441 msgid "swapon-file"
15442 msgstr ""
15443
15444 #. type: verbatim
15445 #: ../fish/guestfish-actions.pod:4818
15446 #, no-wrap
15447 msgid ""
15448 " swapon-file file\n"
15449 "\n"
15450 msgstr ""
15451
15452 #. type: textblock
15453 #: ../fish/guestfish-actions.pod:4820
15454 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
15455 msgstr ""
15456
15457 #. type: =head2
15458 #: ../fish/guestfish-actions.pod:4823
15459 msgid "swapon-label"
15460 msgstr ""
15461
15462 #. type: verbatim
15463 #: ../fish/guestfish-actions.pod:4825
15464 #, no-wrap
15465 msgid ""
15466 " swapon-label label\n"
15467 "\n"
15468 msgstr ""
15469
15470 #. type: textblock
15471 #: ../fish/guestfish-actions.pod:4827
15472 msgid ""
15473 "This command enables swap to a labeled swap partition.  See "
15474 "L</swapon-device> for other notes."
15475 msgstr ""
15476
15477 #. type: =head2
15478 #: ../fish/guestfish-actions.pod:4830
15479 msgid "swapon-uuid"
15480 msgstr ""
15481
15482 #. type: verbatim
15483 #: ../fish/guestfish-actions.pod:4832
15484 #, no-wrap
15485 msgid ""
15486 " swapon-uuid uuid\n"
15487 "\n"
15488 msgstr ""
15489
15490 #. type: textblock
15491 #: ../fish/guestfish-actions.pod:4834
15492 msgid ""
15493 "This command enables swap to a swap partition with the given UUID.  See "
15494 "L</swapon-device> for other notes."
15495 msgstr ""
15496
15497 #. type: =head2
15498 #: ../fish/guestfish-actions.pod:4837
15499 msgid "sync"
15500 msgstr ""
15501
15502 #. type: verbatim
15503 #: ../fish/guestfish-actions.pod:4839
15504 #, no-wrap
15505 msgid ""
15506 " sync\n"
15507 "\n"
15508 msgstr ""
15509
15510 #. type: textblock
15511 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7433
15512 msgid ""
15513 "This syncs the disk, so that any writes are flushed through to the "
15514 "underlying disk image."
15515 msgstr ""
15516
15517 #. type: textblock
15518 #: ../fish/guestfish-actions.pod:4844 ../src/guestfs-actions.pod:7436
15519 msgid ""
15520 "You should always call this if you have modified a disk image, before "
15521 "closing the handle."
15522 msgstr ""
15523
15524 #. type: =head2
15525 #: ../fish/guestfish-actions.pod:4847
15526 msgid "tail"
15527 msgstr ""
15528
15529 #. type: verbatim
15530 #: ../fish/guestfish-actions.pod:4849
15531 #, no-wrap
15532 msgid ""
15533 " tail path\n"
15534 "\n"
15535 msgstr ""
15536
15537 #. type: textblock
15538 #: ../fish/guestfish-actions.pod:4851 ../src/guestfs-actions.pod:7449
15539 msgid "This command returns up to the last 10 lines of a file as a list of strings."
15540 msgstr ""
15541
15542 #. type: =head2
15543 #: ../fish/guestfish-actions.pod:4857
15544 msgid "tail-n"
15545 msgstr ""
15546
15547 #. type: verbatim
15548 #: ../fish/guestfish-actions.pod:4859
15549 #, no-wrap
15550 msgid ""
15551 " tail-n nrlines path\n"
15552 "\n"
15553 msgstr ""
15554
15555 #. type: textblock
15556 #: ../fish/guestfish-actions.pod:4861 ../src/guestfs-actions.pod:7468
15557 msgid ""
15558 "If the parameter C<nrlines> is a positive number, this returns the last "
15559 "C<nrlines> lines of the file C<path>."
15560 msgstr ""
15561
15562 #. type: textblock
15563 #: ../fish/guestfish-actions.pod:4864 ../src/guestfs-actions.pod:7471
15564 msgid ""
15565 "If the parameter C<nrlines> is a negative number, this returns lines from "
15566 "the file C<path>, starting with the C<-nrlines>th line."
15567 msgstr ""
15568
15569 #. type: =head2
15570 #: ../fish/guestfish-actions.pod:4872
15571 msgid "tar-in"
15572 msgstr ""
15573
15574 #. type: verbatim
15575 #: ../fish/guestfish-actions.pod:4874
15576 #, no-wrap
15577 msgid ""
15578 " tar-in (tarfile|-) directory\n"
15579 "\n"
15580 msgstr ""
15581
15582 #. type: textblock
15583 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7492
15584 msgid ""
15585 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
15586 "tar file) into C<directory>."
15587 msgstr ""
15588
15589 #. type: textblock
15590 #: ../fish/guestfish-actions.pod:4879
15591 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
15592 msgstr ""
15593
15594 #. type: =head2
15595 #: ../fish/guestfish-actions.pod:4884
15596 msgid "tar-out"
15597 msgstr ""
15598
15599 #. type: verbatim
15600 #: ../fish/guestfish-actions.pod:4886
15601 #, no-wrap
15602 msgid ""
15603 " tar-out directory (tarfile|-)\n"
15604 "\n"
15605 msgstr ""
15606
15607 #. type: textblock
15608 #: ../fish/guestfish-actions.pod:4888 ../src/guestfs-actions.pod:7509
15609 msgid ""
15610 "This command packs the contents of C<directory> and downloads it to local "
15611 "file C<tarfile>."
15612 msgstr ""
15613
15614 #. type: textblock
15615 #: ../fish/guestfish-actions.pod:4891
15616 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
15617 msgstr ""
15618
15619 #. type: =head2
15620 #: ../fish/guestfish-actions.pod:4896
15621 msgid "tgz-in"
15622 msgstr ""
15623
15624 #. type: verbatim
15625 #: ../fish/guestfish-actions.pod:4898
15626 #, no-wrap
15627 msgid ""
15628 " tgz-in (tarball|-) directory\n"
15629 "\n"
15630 msgstr ""
15631
15632 #. type: textblock
15633 #: ../fish/guestfish-actions.pod:4900 ../src/guestfs-actions.pod:7526
15634 msgid ""
15635 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15636 "tar file) into C<directory>."
15637 msgstr ""
15638
15639 #. type: textblock
15640 #: ../fish/guestfish-actions.pod:4903
15641 msgid "To upload an uncompressed tarball, use L</tar-in>."
15642 msgstr ""
15643
15644 #. type: =head2
15645 #: ../fish/guestfish-actions.pod:4907
15646 msgid "tgz-out"
15647 msgstr ""
15648
15649 #. type: verbatim
15650 #: ../fish/guestfish-actions.pod:4909
15651 #, no-wrap
15652 msgid ""
15653 " tgz-out directory (tarball|-)\n"
15654 "\n"
15655 msgstr ""
15656
15657 #. type: textblock
15658 #: ../fish/guestfish-actions.pod:4911 ../src/guestfs-actions.pod:7542
15659 msgid ""
15660 "This command packs the contents of C<directory> and downloads it to local "
15661 "file C<tarball>."
15662 msgstr ""
15663
15664 #. type: textblock
15665 #: ../fish/guestfish-actions.pod:4914
15666 msgid "To download an uncompressed tarball, use L</tar-out>."
15667 msgstr ""
15668
15669 #. type: =head2
15670 #: ../fish/guestfish-actions.pod:4918
15671 msgid "touch"
15672 msgstr ""
15673
15674 #. type: verbatim
15675 #: ../fish/guestfish-actions.pod:4920
15676 #, no-wrap
15677 msgid ""
15678 " touch path\n"
15679 "\n"
15680 msgstr ""
15681
15682 #. type: textblock
15683 #: ../fish/guestfish-actions.pod:4922 ../src/guestfs-actions.pod:7557
15684 msgid ""
15685 "Touch acts like the L<touch(1)> command.  It can be used to update the "
15686 "timestamps on a file, or, if the file does not exist, to create a new "
15687 "zero-length file."
15688 msgstr ""
15689
15690 #. type: textblock
15691 #: ../fish/guestfish-actions.pod:4926 ../src/guestfs-actions.pod:7561
15692 msgid ""
15693 "This command only works on regular files, and will fail on other file types "
15694 "such as directories, symbolic links, block special etc."
15695 msgstr ""
15696
15697 #. type: =head2
15698 #: ../fish/guestfish-actions.pod:4929
15699 msgid "truncate"
15700 msgstr ""
15701
15702 #. type: verbatim
15703 #: ../fish/guestfish-actions.pod:4931
15704 #, no-wrap
15705 msgid ""
15706 " truncate path\n"
15707 "\n"
15708 msgstr ""
15709
15710 #. type: textblock
15711 #: ../fish/guestfish-actions.pod:4933 ../src/guestfs-actions.pod:7574
15712 msgid ""
15713 "This command truncates C<path> to a zero-length file.  The file must exist "
15714 "already."
15715 msgstr ""
15716
15717 #. type: =head2
15718 #: ../fish/guestfish-actions.pod:4936
15719 msgid "truncate-size"
15720 msgstr ""
15721
15722 #. type: verbatim
15723 #: ../fish/guestfish-actions.pod:4938
15724 #, no-wrap
15725 msgid ""
15726 " truncate-size path size\n"
15727 "\n"
15728 msgstr ""
15729
15730 #. type: textblock
15731 #: ../fish/guestfish-actions.pod:4940 ../src/guestfs-actions.pod:7588
15732 msgid ""
15733 "This command truncates C<path> to size C<size> bytes.  The file must exist "
15734 "already."
15735 msgstr ""
15736
15737 #. type: textblock
15738 #: ../fish/guestfish-actions.pod:4943
15739 msgid ""
15740 "If the current file size is less than C<size> then the file is extended to "
15741 "the required size with zero bytes.  This creates a sparse file (ie. disk "
15742 "blocks are not allocated for the file until you write to it).  To create a "
15743 "non-sparse file of zeroes, use L</fallocate64> instead."
15744 msgstr ""
15745
15746 #. type: =head2
15747 #: ../fish/guestfish-actions.pod:4949
15748 msgid "tune2fs-l"
15749 msgstr ""
15750
15751 #. type: verbatim
15752 #: ../fish/guestfish-actions.pod:4951
15753 #, no-wrap
15754 msgid ""
15755 " tune2fs-l device\n"
15756 "\n"
15757 msgstr ""
15758
15759 #. type: textblock
15760 #: ../fish/guestfish-actions.pod:4953 ../src/guestfs-actions.pod:7607
15761 msgid ""
15762 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15763 "C<device>."
15764 msgstr ""
15765
15766 #. type: textblock
15767 #: ../fish/guestfish-actions.pod:4956 ../src/guestfs-actions.pod:7610
15768 msgid ""
15769 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
15770 "for more details.  The list of fields returned isn't clearly defined, and "
15771 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15772 "and the filesystem itself."
15773 msgstr ""
15774
15775 #. type: =head2
15776 #: ../fish/guestfish-actions.pod:4961
15777 msgid "txz-in"
15778 msgstr ""
15779
15780 #. type: verbatim
15781 #: ../fish/guestfish-actions.pod:4963
15782 #, no-wrap
15783 msgid ""
15784 " txz-in (tarball|-) directory\n"
15785 "\n"
15786 msgstr ""
15787
15788 #. type: textblock
15789 #: ../fish/guestfish-actions.pod:4965 ../src/guestfs-actions.pod:7630
15790 msgid ""
15791 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15792 "tar file) into C<directory>."
15793 msgstr ""
15794
15795 #. type: =head2
15796 #: ../fish/guestfish-actions.pod:4970
15797 msgid "txz-out"
15798 msgstr ""
15799
15800 #. type: verbatim
15801 #: ../fish/guestfish-actions.pod:4972
15802 #, no-wrap
15803 msgid ""
15804 " txz-out directory (tarball|-)\n"
15805 "\n"
15806 msgstr ""
15807
15808 #. type: textblock
15809 #: ../fish/guestfish-actions.pod:4974 ../src/guestfs-actions.pod:7644
15810 msgid ""
15811 "This command packs the contents of C<directory> and downloads it to local "
15812 "file C<tarball> (as an xz compressed tar archive)."
15813 msgstr ""
15814
15815 #. type: =head2
15816 #: ../fish/guestfish-actions.pod:4979
15817 msgid "umask"
15818 msgstr ""
15819
15820 #. type: verbatim
15821 #: ../fish/guestfish-actions.pod:4981
15822 #, no-wrap
15823 msgid ""
15824 " umask mask\n"
15825 "\n"
15826 msgstr ""
15827
15828 #. type: textblock
15829 #: ../fish/guestfish-actions.pod:4983 ../src/guestfs-actions.pod:7657
15830 msgid ""
15831 "This function sets the mask used for creating new files and device nodes to "
15832 "C<mask & 0777>."
15833 msgstr ""
15834
15835 #. type: textblock
15836 #: ../fish/guestfish-actions.pod:4986 ../src/guestfs-actions.pod:7660
15837 msgid ""
15838 "Typical umask values would be C<022> which creates new files with "
15839 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15840 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15841 msgstr ""
15842
15843 #. type: textblock
15844 #: ../fish/guestfish-actions.pod:4991 ../src/guestfs-actions.pod:7665
15845 msgid ""
15846 "The default umask is C<022>.  This is important because it means that "
15847 "directories and device nodes will be created with C<0644> or C<0755> mode "
15848 "even if you specify C<0777>."
15849 msgstr ""
15850
15851 #. type: textblock
15852 #: ../fish/guestfish-actions.pod:4995
15853 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15854 msgstr ""
15855
15856 #. type: textblock
15857 #: ../fish/guestfish-actions.pod:4998 ../src/guestfs-actions.pod:7672
15858 msgid "This call returns the previous umask."
15859 msgstr ""
15860
15861 #. type: =head2
15862 #: ../fish/guestfish-actions.pod:5000
15863 msgid "umount"
15864 msgstr ""
15865
15866 #. type: =head2
15867 #: ../fish/guestfish-actions.pod:5002
15868 msgid "unmount"
15869 msgstr ""
15870
15871 #. type: verbatim
15872 #: ../fish/guestfish-actions.pod:5004
15873 #, no-wrap
15874 msgid ""
15875 " umount pathordevice\n"
15876 "\n"
15877 msgstr ""
15878
15879 #. type: textblock
15880 #: ../fish/guestfish-actions.pod:5006 ../src/guestfs-actions.pod:7684
15881 msgid ""
15882 "This unmounts the given filesystem.  The filesystem may be specified either "
15883 "by its mountpoint (path) or the device which contains the filesystem."
15884 msgstr ""
15885
15886 #. type: =head2
15887 #: ../fish/guestfish-actions.pod:5010
15888 msgid "umount-all"
15889 msgstr ""
15890
15891 #. type: =head2
15892 #: ../fish/guestfish-actions.pod:5012
15893 msgid "unmount-all"
15894 msgstr ""
15895
15896 #. type: verbatim
15897 #: ../fish/guestfish-actions.pod:5014
15898 #, no-wrap
15899 msgid ""
15900 " umount-all\n"
15901 "\n"
15902 msgstr ""
15903
15904 #. type: textblock
15905 #: ../fish/guestfish-actions.pod:5016 ../src/guestfs-actions.pod:7697
15906 msgid "This unmounts all mounted filesystems."
15907 msgstr ""
15908
15909 #. type: textblock
15910 #: ../fish/guestfish-actions.pod:5018 ../src/guestfs-actions.pod:7699
15911 msgid "Some internal mounts are not unmounted by this call."
15912 msgstr ""
15913
15914 #. type: =head2
15915 #: ../fish/guestfish-actions.pod:5020
15916 msgid "upload"
15917 msgstr ""
15918
15919 #. type: verbatim
15920 #: ../fish/guestfish-actions.pod:5022
15921 #, no-wrap
15922 msgid ""
15923 " upload (filename|-) remotefilename\n"
15924 "\n"
15925 msgstr ""
15926
15927 #. type: textblock
15928 #: ../fish/guestfish-actions.pod:5024 ../fish/guestfish-actions.pod:5037 ../src/guestfs-actions.pod:7712 ../src/guestfs-actions.pod:7736
15929 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15930 msgstr ""
15931
15932 #. type: textblock
15933 #: ../fish/guestfish-actions.pod:5029
15934 msgid "See also L</download>."
15935 msgstr ""
15936
15937 #. type: =head2
15938 #: ../fish/guestfish-actions.pod:5033
15939 msgid "upload-offset"
15940 msgstr ""
15941
15942 #. type: verbatim
15943 #: ../fish/guestfish-actions.pod:5035
15944 #, no-wrap
15945 msgid ""
15946 " upload-offset (filename|-) remotefilename offset\n"
15947 "\n"
15948 msgstr ""
15949
15950 #. type: textblock
15951 #: ../fish/guestfish-actions.pod:5040 ../src/guestfs-actions.pod:7739
15952 msgid ""
15953 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15954 "The intention is to overwrite parts of existing files or devices, although "
15955 "if a non-existant file is specified then it is created with a \"hole\" "
15956 "before C<offset>.  The size of the data written is implicit in the size of "
15957 "the source C<filename>."
15958 msgstr ""
15959
15960 #. type: textblock
15961 #: ../fish/guestfish-actions.pod:5047
15962 msgid ""
15963 "Note that there is no limit on the amount of data that can be uploaded with "
15964 "this call, unlike with L</pwrite>, and this call always writes the full "
15965 "amount unless an error occurs."
15966 msgstr ""
15967
15968 #. type: textblock
15969 #: ../fish/guestfish-actions.pod:5052
15970 msgid "See also L</upload>, L</pwrite>."
15971 msgstr ""
15972
15973 #. type: =head2
15974 #: ../fish/guestfish-actions.pod:5056
15975 msgid "utimens"
15976 msgstr ""
15977
15978 #. type: verbatim
15979 #: ../fish/guestfish-actions.pod:5058
15980 #, no-wrap
15981 msgid ""
15982 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
15983 "\n"
15984 msgstr ""
15985
15986 #. type: textblock
15987 #: ../fish/guestfish-actions.pod:5060 ../src/guestfs-actions.pod:7772
15988 msgid "This command sets the timestamps of a file with nanosecond precision."
15989 msgstr ""
15990
15991 #. type: textblock
15992 #: ../fish/guestfish-actions.pod:5063 ../src/guestfs-actions.pod:7775
15993 msgid ""
15994 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15995 "from the epoch."
15996 msgstr ""
15997
15998 #. type: textblock
15999 #: ../fish/guestfish-actions.pod:5066 ../src/guestfs-actions.pod:7778
16000 msgid ""
16001 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
16002 "nanoseconds from the epoch."
16003 msgstr ""
16004
16005 #. type: textblock
16006 #: ../fish/guestfish-actions.pod:5069 ../src/guestfs-actions.pod:7781
16007 msgid ""
16008 "If the C<*nsecs> field contains the special value C<-1> then the "
16009 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
16010 "ignored in this case)."
16011 msgstr ""
16012
16013 #. type: textblock
16014 #: ../fish/guestfish-actions.pod:5073 ../src/guestfs-actions.pod:7785
16015 msgid ""
16016 "If the C<*nsecs> field contains the special value C<-2> then the "
16017 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
16018 "in this case)."
16019 msgstr ""
16020
16021 #. type: =head2
16022 #: ../fish/guestfish-actions.pod:5077
16023 msgid "version"
16024 msgstr ""
16025
16026 #. type: verbatim
16027 #: ../fish/guestfish-actions.pod:5079
16028 #, no-wrap
16029 msgid ""
16030 " version\n"
16031 "\n"
16032 msgstr ""
16033
16034 #. type: textblock
16035 #: ../fish/guestfish-actions.pod:5081 ../src/guestfs-actions.pod:7798
16036 msgid "Return the libguestfs version number that the program is linked against."
16037 msgstr ""
16038
16039 #. type: textblock
16040 #: ../fish/guestfish-actions.pod:5084 ../src/guestfs-actions.pod:7801
16041 msgid ""
16042 "Note that because of dynamic linking this is not necessarily the version of "
16043 "libguestfs that you compiled against.  You can compile the program, and then "
16044 "at runtime dynamically link against a completely different C<libguestfs.so> "
16045 "library."
16046 msgstr ""
16047
16048 #. type: textblock
16049 #: ../fish/guestfish-actions.pod:5089 ../src/guestfs-actions.pod:7806
16050 msgid ""
16051 "This call was added in version C<1.0.58>.  In previous versions of "
16052 "libguestfs there was no way to get the version number.  From C code you can "
16053 "use dynamic linker functions to find out if this symbol exists (if it "
16054 "doesn't, then it's an earlier version)."
16055 msgstr ""
16056
16057 #. type: textblock
16058 #: ../fish/guestfish-actions.pod:5095 ../src/guestfs-actions.pod:7812
16059 msgid ""
16060 "The call returns a structure with four elements.  The first three (C<major>, "
16061 "C<minor> and C<release>) are numbers and correspond to the usual version "
16062 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
16063 "but may be used for distro-specific information."
16064 msgstr ""
16065
16066 #. type: textblock
16067 #: ../fish/guestfish-actions.pod:5101 ../src/guestfs-actions.pod:7818
16068 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
16069 msgstr ""
16070
16071 #. type: textblock
16072 #: ../fish/guestfish-actions.pod:5104 ../src/guestfs-actions.pod:7821
16073 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
16074 msgstr ""
16075
16076 #. type: textblock
16077 #: ../fish/guestfish-actions.pod:5106
16078 msgid ""
16079 "I<Note:> Don't use this call to test for availability of features.  In "
16080 "enterprise distributions we backport features from later versions into "
16081 "earlier versions, making this an unreliable way to test for features.  Use "
16082 "L</available> instead."
16083 msgstr ""
16084
16085 #. type: =head2
16086 #: ../fish/guestfish-actions.pod:5112
16087 msgid "vfs-label"
16088 msgstr ""
16089
16090 #. type: verbatim
16091 #: ../fish/guestfish-actions.pod:5114
16092 #, no-wrap
16093 msgid ""
16094 " vfs-label device\n"
16095 "\n"
16096 msgstr ""
16097
16098 #. type: textblock
16099 #: ../fish/guestfish-actions.pod:5116 ../src/guestfs-actions.pod:7841
16100 msgid "This returns the filesystem label of the filesystem on C<device>."
16101 msgstr ""
16102
16103 #. type: textblock
16104 #: ../fish/guestfish-actions.pod:5119 ../src/guestfs-actions.pod:7844
16105 msgid "If the filesystem is unlabeled, this returns the empty string."
16106 msgstr ""
16107
16108 #. type: textblock
16109 #: ../fish/guestfish-actions.pod:5121
16110 msgid "To find a filesystem from the label, use L</findfs-label>."
16111 msgstr ""
16112
16113 #. type: =head2
16114 #: ../fish/guestfish-actions.pod:5123
16115 msgid "vfs-type"
16116 msgstr ""
16117
16118 #. type: verbatim
16119 #: ../fish/guestfish-actions.pod:5125
16120 #, no-wrap
16121 msgid ""
16122 " vfs-type device\n"
16123 "\n"
16124 msgstr ""
16125
16126 #. type: textblock
16127 #: ../fish/guestfish-actions.pod:5127 ../src/guestfs-actions.pod:7859
16128 msgid ""
16129 "This command gets the filesystem type corresponding to the filesystem on "
16130 "C<device>."
16131 msgstr ""
16132
16133 #. type: textblock
16134 #: ../fish/guestfish-actions.pod:5130 ../src/guestfs-actions.pod:7862
16135 msgid ""
16136 "For most filesystems, the result is the name of the Linux VFS module which "
16137 "would be used to mount this filesystem if you mounted it without specifying "
16138 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
16139 msgstr ""
16140
16141 #. type: =head2
16142 #: ../fish/guestfish-actions.pod:5135
16143 msgid "vfs-uuid"
16144 msgstr ""
16145
16146 #. type: verbatim
16147 #: ../fish/guestfish-actions.pod:5137
16148 #, no-wrap
16149 msgid ""
16150 " vfs-uuid device\n"
16151 "\n"
16152 msgstr ""
16153
16154 #. type: textblock
16155 #: ../fish/guestfish-actions.pod:5139 ../src/guestfs-actions.pod:7878
16156 msgid "This returns the filesystem UUID of the filesystem on C<device>."
16157 msgstr ""
16158
16159 #. type: textblock
16160 #: ../fish/guestfish-actions.pod:5142 ../src/guestfs-actions.pod:7881
16161 msgid "If the filesystem does not have a UUID, this returns the empty string."
16162 msgstr ""
16163
16164 #. type: textblock
16165 #: ../fish/guestfish-actions.pod:5144
16166 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
16167 msgstr ""
16168
16169 #. type: =head2
16170 #: ../fish/guestfish-actions.pod:5146
16171 msgid "vg-activate"
16172 msgstr ""
16173
16174 #. type: verbatim
16175 #: ../fish/guestfish-actions.pod:5148
16176 #, no-wrap
16177 msgid ""
16178 " vg-activate true|false 'volgroups ...'\n"
16179 "\n"
16180 msgstr ""
16181
16182 #. type: textblock
16183 #: ../fish/guestfish-actions.pod:5150 ../src/guestfs-actions.pod:7897
16184 msgid ""
16185 "This command activates or (if C<activate> is false) deactivates all logical "
16186 "volumes in the listed volume groups C<volgroups>."
16187 msgstr ""
16188
16189 #. type: textblock
16190 #: ../fish/guestfish-actions.pod:5153 ../src/guestfs-actions.pod:7900
16191 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
16192 msgstr ""
16193
16194 #. type: textblock
16195 #: ../fish/guestfish-actions.pod:5155 ../src/guestfs-actions.pod:7902
16196 msgid ""
16197 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
16198 "activated or deactivated."
16199 msgstr ""
16200
16201 #. type: =head2
16202 #: ../fish/guestfish-actions.pod:5158
16203 msgid "vg-activate-all"
16204 msgstr ""
16205
16206 #. type: verbatim
16207 #: ../fish/guestfish-actions.pod:5160
16208 #, no-wrap
16209 msgid ""
16210 " vg-activate-all true|false\n"
16211 "\n"
16212 msgstr ""
16213
16214 #. type: textblock
16215 #: ../fish/guestfish-actions.pod:5162 ../src/guestfs-actions.pod:7915
16216 msgid ""
16217 "This command activates or (if C<activate> is false) deactivates all logical "
16218 "volumes in all volume groups."
16219 msgstr ""
16220
16221 #. type: textblock
16222 #: ../fish/guestfish-actions.pod:5165 ../src/guestfs-actions.pod:7918
16223 msgid "This command is the same as running C<vgchange -a y|n>"
16224 msgstr ""
16225
16226 #. type: =head2
16227 #: ../fish/guestfish-actions.pod:5167
16228 msgid "vgcreate"
16229 msgstr ""
16230
16231 #. type: verbatim
16232 #: ../fish/guestfish-actions.pod:5169
16233 #, no-wrap
16234 msgid ""
16235 " vgcreate volgroup 'physvols ...'\n"
16236 "\n"
16237 msgstr ""
16238
16239 #. type: textblock
16240 #: ../fish/guestfish-actions.pod:5171 ../src/guestfs-actions.pod:7931
16241 msgid ""
16242 "This creates an LVM volume group called C<volgroup> from the non-empty list "
16243 "of physical volumes C<physvols>."
16244 msgstr ""
16245
16246 #. type: =head2
16247 #: ../fish/guestfish-actions.pod:5174
16248 msgid "vglvuuids"
16249 msgstr ""
16250
16251 #. type: verbatim
16252 #: ../fish/guestfish-actions.pod:5176
16253 #, no-wrap
16254 msgid ""
16255 " vglvuuids vgname\n"
16256 "\n"
16257 msgstr ""
16258
16259 #. type: textblock
16260 #: ../fish/guestfish-actions.pod:5178 ../src/guestfs-actions.pod:7944
16261 msgid ""
16262 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
16263 "volumes created in this volume group."
16264 msgstr ""
16265
16266 #. type: textblock
16267 #: ../fish/guestfish-actions.pod:5181
16268 msgid ""
16269 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
16270 "logical volumes and volume groups."
16271 msgstr ""
16272
16273 #. type: textblock
16274 #: ../fish/guestfish-actions.pod:5184
16275 msgid "See also L</vgpvuuids>."
16276 msgstr ""
16277
16278 #. type: =head2
16279 #: ../fish/guestfish-actions.pod:5186
16280 msgid "vgpvuuids"
16281 msgstr ""
16282
16283 #. type: verbatim
16284 #: ../fish/guestfish-actions.pod:5188
16285 #, no-wrap
16286 msgid ""
16287 " vgpvuuids vgname\n"
16288 "\n"
16289 msgstr ""
16290
16291 #. type: textblock
16292 #: ../fish/guestfish-actions.pod:5190 ../src/guestfs-actions.pod:7964
16293 msgid ""
16294 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
16295 "volumes that this volume group resides on."
16296 msgstr ""
16297
16298 #. type: textblock
16299 #: ../fish/guestfish-actions.pod:5193
16300 msgid ""
16301 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
16302 "physical volumes and volume groups."
16303 msgstr ""
16304
16305 #. type: textblock
16306 #: ../fish/guestfish-actions.pod:5196
16307 msgid "See also L</vglvuuids>."
16308 msgstr ""
16309
16310 #. type: =head2
16311 #: ../fish/guestfish-actions.pod:5198
16312 msgid "vgremove"
16313 msgstr ""
16314
16315 #. type: verbatim
16316 #: ../fish/guestfish-actions.pod:5200
16317 #, no-wrap
16318 msgid ""
16319 " vgremove vgname\n"
16320 "\n"
16321 msgstr ""
16322
16323 #. type: textblock
16324 #: ../fish/guestfish-actions.pod:5202 ../src/guestfs-actions.pod:7984
16325 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
16326 msgstr ""
16327
16328 #. type: textblock
16329 #: ../fish/guestfish-actions.pod:5204 ../src/guestfs-actions.pod:7986
16330 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
16331 msgstr ""
16332
16333 #. type: =head2
16334 #: ../fish/guestfish-actions.pod:5207
16335 msgid "vgrename"
16336 msgstr ""
16337
16338 #. type: verbatim
16339 #: ../fish/guestfish-actions.pod:5209
16340 #, no-wrap
16341 msgid ""
16342 " vgrename volgroup newvolgroup\n"
16343 "\n"
16344 msgstr ""
16345
16346 #. type: textblock
16347 #: ../fish/guestfish-actions.pod:5211 ../src/guestfs-actions.pod:8000
16348 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
16349 msgstr ""
16350
16351 #. type: =head2
16352 #: ../fish/guestfish-actions.pod:5213
16353 msgid "vgs"
16354 msgstr ""
16355
16356 #. type: verbatim
16357 #: ../fish/guestfish-actions.pod:5215
16358 #, no-wrap
16359 msgid ""
16360 " vgs\n"
16361 "\n"
16362 msgstr ""
16363
16364 #. type: textblock
16365 #: ../fish/guestfish-actions.pod:5217 ../src/guestfs-actions.pod:8011
16366 msgid ""
16367 "List all the volumes groups detected.  This is the equivalent of the "
16368 "L<vgs(8)> command."
16369 msgstr ""
16370
16371 #. type: textblock
16372 #: ../fish/guestfish-actions.pod:5220 ../src/guestfs-actions.pod:8014
16373 msgid ""
16374 "This returns a list of just the volume group names that were detected "
16375 "(eg. C<VolGroup00>)."
16376 msgstr ""
16377
16378 #. type: textblock
16379 #: ../fish/guestfish-actions.pod:5223
16380 msgid "See also L</vgs-full>."
16381 msgstr ""
16382
16383 #. type: =head2
16384 #: ../fish/guestfish-actions.pod:5225
16385 msgid "vgs-full"
16386 msgstr ""
16387
16388 #. type: verbatim
16389 #: ../fish/guestfish-actions.pod:5227
16390 #, no-wrap
16391 msgid ""
16392 " vgs-full\n"
16393 "\n"
16394 msgstr ""
16395
16396 #. type: textblock
16397 #: ../fish/guestfish-actions.pod:5229 ../src/guestfs-actions.pod:8030
16398 msgid ""
16399 "List all the volumes groups detected.  This is the equivalent of the "
16400 "L<vgs(8)> command.  The \"full\" version includes all fields."
16401 msgstr ""
16402
16403 #. type: =head2
16404 #: ../fish/guestfish-actions.pod:5232
16405 msgid "vgscan"
16406 msgstr ""
16407
16408 #. type: verbatim
16409 #: ../fish/guestfish-actions.pod:5234
16410 #, no-wrap
16411 msgid ""
16412 " vgscan\n"
16413 "\n"
16414 msgstr ""
16415
16416 #. type: textblock
16417 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:8044
16418 msgid ""
16419 "This rescans all block devices and rebuilds the list of LVM physical "
16420 "volumes, volume groups and logical volumes."
16421 msgstr ""
16422
16423 #. type: =head2
16424 #: ../fish/guestfish-actions.pod:5239
16425 msgid "vguuid"
16426 msgstr ""
16427
16428 #. type: verbatim
16429 #: ../fish/guestfish-actions.pod:5241
16430 #, no-wrap
16431 msgid ""
16432 " vguuid vgname\n"
16433 "\n"
16434 msgstr ""
16435
16436 #. type: textblock
16437 #: ../fish/guestfish-actions.pod:5243 ../src/guestfs-actions.pod:8057
16438 msgid "This command returns the UUID of the LVM VG named C<vgname>."
16439 msgstr ""
16440
16441 #. type: =head2
16442 #: ../fish/guestfish-actions.pod:5245
16443 msgid "wc-c"
16444 msgstr ""
16445
16446 #. type: verbatim
16447 #: ../fish/guestfish-actions.pod:5247
16448 #, no-wrap
16449 msgid ""
16450 " wc-c path\n"
16451 "\n"
16452 msgstr ""
16453
16454 #. type: textblock
16455 #: ../fish/guestfish-actions.pod:5249 ../src/guestfs-actions.pod:8097
16456 msgid ""
16457 "This command counts the characters in a file, using the C<wc -c> external "
16458 "command."
16459 msgstr ""
16460
16461 #. type: =head2
16462 #: ../fish/guestfish-actions.pod:5252
16463 msgid "wc-l"
16464 msgstr ""
16465
16466 #. type: verbatim
16467 #: ../fish/guestfish-actions.pod:5254
16468 #, no-wrap
16469 msgid ""
16470 " wc-l path\n"
16471 "\n"
16472 msgstr ""
16473
16474 #. type: textblock
16475 #: ../fish/guestfish-actions.pod:5256 ../src/guestfs-actions.pod:8110
16476 msgid ""
16477 "This command counts the lines in a file, using the C<wc -l> external "
16478 "command."
16479 msgstr ""
16480
16481 #. type: =head2
16482 #: ../fish/guestfish-actions.pod:5259
16483 msgid "wc-w"
16484 msgstr ""
16485
16486 #. type: verbatim
16487 #: ../fish/guestfish-actions.pod:5261
16488 #, no-wrap
16489 msgid ""
16490 " wc-w path\n"
16491 "\n"
16492 msgstr ""
16493
16494 #. type: textblock
16495 #: ../fish/guestfish-actions.pod:5263 ../src/guestfs-actions.pod:8123
16496 msgid ""
16497 "This command counts the words in a file, using the C<wc -w> external "
16498 "command."
16499 msgstr ""
16500
16501 #. type: =head2
16502 #: ../fish/guestfish-actions.pod:5266
16503 msgid "write"
16504 msgstr ""
16505
16506 #. type: verbatim
16507 #: ../fish/guestfish-actions.pod:5268
16508 #, no-wrap
16509 msgid ""
16510 " write path content\n"
16511 "\n"
16512 msgstr ""
16513
16514 #. type: textblock
16515 #: ../fish/guestfish-actions.pod:5270 ../src/guestfs-actions.pod:8138
16516 msgid ""
16517 "This call creates a file called C<path>.  The content of the file is the "
16518 "string C<content> (which can contain any 8 bit data)."
16519 msgstr ""
16520
16521 #. type: textblock
16522 #: ../fish/guestfish-actions.pod:5273
16523 msgid "See also L</write-append>."
16524 msgstr ""
16525
16526 #. type: =head2
16527 #: ../fish/guestfish-actions.pod:5278
16528 msgid "write-append"
16529 msgstr ""
16530
16531 #. type: verbatim
16532 #: ../fish/guestfish-actions.pod:5280
16533 #, no-wrap
16534 msgid ""
16535 " write-append path content\n"
16536 "\n"
16537 msgstr ""
16538
16539 #. type: textblock
16540 #: ../fish/guestfish-actions.pod:5282 ../src/guestfs-actions.pod:8158
16541 msgid ""
16542 "This call appends C<content> to the end of file C<path>.  If C<path> does "
16543 "not exist, then a new file is created."
16544 msgstr ""
16545
16546 #. type: textblock
16547 #: ../fish/guestfish-actions.pod:5285
16548 msgid "See also L</write>."
16549 msgstr ""
16550
16551 #. type: =head2
16552 #: ../fish/guestfish-actions.pod:5290
16553 msgid "write-file"
16554 msgstr ""
16555
16556 #. type: verbatim
16557 #: ../fish/guestfish-actions.pod:5292
16558 #, no-wrap
16559 msgid ""
16560 " write-file path content size\n"
16561 "\n"
16562 msgstr ""
16563
16564 #. type: textblock
16565 #: ../fish/guestfish-actions.pod:5294 ../src/guestfs-actions.pod:8185
16566 msgid ""
16567 "This call creates a file called C<path>.  The contents of the file is the "
16568 "string C<content> (which can contain any 8 bit data), with length C<size>."
16569 msgstr ""
16570
16571 #. type: textblock
16572 #: ../fish/guestfish-actions.pod:5298 ../src/guestfs-actions.pod:8189
16573 msgid ""
16574 "As a special case, if C<size> is C<0> then the length is calculated using "
16575 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16576 msgstr ""
16577
16578 #. type: textblock
16579 #: ../fish/guestfish-actions.pod:5302 ../src/guestfs-actions.pod:8193
16580 msgid ""
16581 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16582 "I<not> work, even if the length is specified."
16583 msgstr ""
16584
16585 #. type: textblock
16586 #: ../fish/guestfish-actions.pod:5308
16587 msgid "I<This function is deprecated.> In new code, use the L</write> call instead."
16588 msgstr ""
16589
16590 #. type: =head2
16591 #: ../fish/guestfish-actions.pod:5315
16592 msgid "zegrep"
16593 msgstr ""
16594
16595 #. type: verbatim
16596 #: ../fish/guestfish-actions.pod:5317
16597 #, no-wrap
16598 msgid ""
16599 " zegrep regex path\n"
16600 "\n"
16601 msgstr ""
16602
16603 #. type: textblock
16604 #: ../fish/guestfish-actions.pod:5319 ../src/guestfs-actions.pod:8210
16605 msgid "This calls the external C<zegrep> program and returns the matching lines."
16606 msgstr ""
16607
16608 #. type: =head2
16609 #: ../fish/guestfish-actions.pod:5325
16610 msgid "zegrepi"
16611 msgstr ""
16612
16613 #. type: verbatim
16614 #: ../fish/guestfish-actions.pod:5327
16615 #, no-wrap
16616 msgid ""
16617 " zegrepi regex path\n"
16618 "\n"
16619 msgstr ""
16620
16621 #. type: textblock
16622 #: ../fish/guestfish-actions.pod:5329 ../src/guestfs-actions.pod:8229
16623 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
16624 msgstr ""
16625
16626 #. type: =head2
16627 #: ../fish/guestfish-actions.pod:5335
16628 msgid "zero"
16629 msgstr ""
16630
16631 #. type: verbatim
16632 #: ../fish/guestfish-actions.pod:5337
16633 #, no-wrap
16634 msgid ""
16635 " zero device\n"
16636 "\n"
16637 msgstr ""
16638
16639 #. type: textblock
16640 #: ../fish/guestfish-actions.pod:5339 ../src/guestfs-actions.pod:8247
16641 msgid "This command writes zeroes over the first few blocks of C<device>."
16642 msgstr ""
16643
16644 #. type: textblock
16645 #: ../fish/guestfish-actions.pod:5341 ../src/guestfs-actions.pod:8249
16646 msgid ""
16647 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16648 "securely wipe the device).  It should be sufficient to remove any partition "
16649 "tables, filesystem superblocks and so on."
16650 msgstr ""
16651
16652 #. type: textblock
16653 #: ../fish/guestfish-actions.pod:5345 ../fish/guestfish-actions.pod:5360 ../src/guestfs-actions.pod:8253 ../src/guestfs-actions.pod:8279
16654 msgid ""
16655 "If blocks are already zero, then this command avoids writing zeroes.  This "
16656 "prevents the underlying device from becoming non-sparse or growing "
16657 "unnecessarily."
16658 msgstr ""
16659
16660 #. type: textblock
16661 #: ../fish/guestfish-actions.pod:5349
16662 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
16663 msgstr ""
16664
16665 #. type: =head2
16666 #: ../fish/guestfish-actions.pod:5352
16667 msgid "zero-device"
16668 msgstr ""
16669
16670 #. type: verbatim
16671 #: ../fish/guestfish-actions.pod:5354
16672 #, no-wrap
16673 msgid ""
16674 " zero-device device\n"
16675 "\n"
16676 msgstr ""
16677
16678 #. type: textblock
16679 #: ../fish/guestfish-actions.pod:5356
16680 msgid ""
16681 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
16682 "which just zeroes the first few blocks of a device."
16683 msgstr ""
16684
16685 #. type: =head2
16686 #: ../fish/guestfish-actions.pod:5367
16687 msgid "zerofree"
16688 msgstr ""
16689
16690 #. type: verbatim
16691 #: ../fish/guestfish-actions.pod:5369
16692 #, no-wrap
16693 msgid ""
16694 " zerofree device\n"
16695 "\n"
16696 msgstr ""
16697
16698 #. type: textblock
16699 #: ../fish/guestfish-actions.pod:5371 ../src/guestfs-actions.pod:8301
16700 msgid ""
16701 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16702 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16703 "possible to compress the filesystem more effectively."
16704 msgstr ""
16705
16706 #. type: textblock
16707 #: ../fish/guestfish-actions.pod:5376 ../src/guestfs-actions.pod:8306
16708 msgid "You should B<not> run this program if the filesystem is mounted."
16709 msgstr ""
16710
16711 #. type: textblock
16712 #: ../fish/guestfish-actions.pod:5379 ../src/guestfs-actions.pod:8309
16713 msgid ""
16714 "It is possible that using this program can damage the filesystem or data on "
16715 "the filesystem."
16716 msgstr ""
16717
16718 #. type: =head2
16719 #: ../fish/guestfish-actions.pod:5382
16720 msgid "zfgrep"
16721 msgstr ""
16722
16723 #. type: verbatim
16724 #: ../fish/guestfish-actions.pod:5384
16725 #, no-wrap
16726 msgid ""
16727 " zfgrep pattern path\n"
16728 "\n"
16729 msgstr ""
16730
16731 #. type: textblock
16732 #: ../fish/guestfish-actions.pod:5386 ../src/guestfs-actions.pod:8323
16733 msgid "This calls the external C<zfgrep> program and returns the matching lines."
16734 msgstr ""
16735
16736 #. type: =head2
16737 #: ../fish/guestfish-actions.pod:5392
16738 msgid "zfgrepi"
16739 msgstr ""
16740
16741 #. type: verbatim
16742 #: ../fish/guestfish-actions.pod:5394
16743 #, no-wrap
16744 msgid ""
16745 " zfgrepi pattern path\n"
16746 "\n"
16747 msgstr ""
16748
16749 #. type: textblock
16750 #: ../fish/guestfish-actions.pod:5396 ../src/guestfs-actions.pod:8342
16751 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
16752 msgstr ""
16753
16754 #. type: =head2
16755 #: ../fish/guestfish-actions.pod:5402
16756 msgid "zfile"
16757 msgstr ""
16758
16759 #. type: verbatim
16760 #: ../fish/guestfish-actions.pod:5404
16761 #, no-wrap
16762 msgid ""
16763 " zfile meth path\n"
16764 "\n"
16765 msgstr ""
16766
16767 #. type: textblock
16768 #: ../fish/guestfish-actions.pod:5406 ../src/guestfs-actions.pod:8368
16769 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
16770 msgstr ""
16771
16772 #. type: textblock
16773 #: ../fish/guestfish-actions.pod:5409 ../src/guestfs-actions.pod:8371
16774 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16775 msgstr ""
16776
16777 #. type: textblock
16778 #: ../fish/guestfish-actions.pod:5411
16779 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
16780 msgstr ""
16781
16782 #. type: textblock
16783 #: ../fish/guestfish-actions.pod:5414
16784 msgid "I<This function is deprecated.> In new code, use the L</file> call instead."
16785 msgstr ""
16786
16787 #. type: =head2
16788 #: ../fish/guestfish-actions.pod:5421
16789 msgid "zgrep"
16790 msgstr ""
16791
16792 #. type: verbatim
16793 #: ../fish/guestfish-actions.pod:5423
16794 #, no-wrap
16795 msgid ""
16796 " zgrep regex path\n"
16797 "\n"
16798 msgstr ""
16799
16800 #. type: textblock
16801 #: ../fish/guestfish-actions.pod:5425 ../src/guestfs-actions.pod:8388
16802 msgid "This calls the external C<zgrep> program and returns the matching lines."
16803 msgstr ""
16804
16805 #. type: =head2
16806 #: ../fish/guestfish-actions.pod:5431
16807 msgid "zgrepi"
16808 msgstr ""
16809
16810 #. type: verbatim
16811 #: ../fish/guestfish-actions.pod:5433
16812 #, no-wrap
16813 msgid ""
16814 " zgrepi regex path\n"
16815 "\n"
16816 msgstr ""
16817
16818 #. type: textblock
16819 #: ../fish/guestfish-actions.pod:5435 ../src/guestfs-actions.pod:8407
16820 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
16821 msgstr ""
16822
16823 #. type: =head2
16824 #: ../fish/guestfish-commands.pod:1
16825 msgid "alloc"
16826 msgstr ""
16827
16828 #. type: =head2
16829 #: ../fish/guestfish-commands.pod:3
16830 msgid "allocate"
16831 msgstr ""
16832
16833 #. type: verbatim
16834 #: ../fish/guestfish-commands.pod:5
16835 #, no-wrap
16836 msgid ""
16837 " alloc filename size\n"
16838 "\n"
16839 msgstr ""
16840
16841 #. type: textblock
16842 #: ../fish/guestfish-commands.pod:7
16843 msgid ""
16844 "This creates an empty (zeroed) file of the given size, and then adds so it "
16845 "can be further examined."
16846 msgstr ""
16847
16848 #. type: textblock
16849 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
16850 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
16851 msgstr ""
16852
16853 #. type: textblock
16854 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
16855 msgid "Size can be specified using standard suffixes, eg. C<1M>."
16856 msgstr ""
16857
16858 #. type: textblock
16859 #: ../fish/guestfish-commands.pod:14
16860 msgid ""
16861 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
16862 "image, see L</PREPARED DISK IMAGES>."
16863 msgstr ""
16864
16865 #. type: =head2
16866 #: ../fish/guestfish-commands.pod:17
16867 msgid "copy-in"
16868 msgstr ""
16869
16870 #. type: verbatim
16871 #: ../fish/guestfish-commands.pod:19
16872 #, no-wrap
16873 msgid ""
16874 " copy-in local [local ...] /remotedir\n"
16875 "\n"
16876 msgstr ""
16877
16878 #. type: textblock
16879 #: ../fish/guestfish-commands.pod:21
16880 msgid ""
16881 "C<copy-in> copies local files or directories recursively into the disk "
16882 "image, placing them in the directory called C</remotedir> (which must "
16883 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
16884 "other commands as necessary."
16885 msgstr ""
16886
16887 #. type: textblock
16888 #: ../fish/guestfish-commands.pod:26
16889 msgid ""
16890 "Multiple local files and directories can be specified, but the last "
16891 "parameter must always be a remote directory.  Wildcards cannot be used."
16892 msgstr ""
16893
16894 #. type: =head2
16895 #: ../fish/guestfish-commands.pod:30
16896 msgid "copy-out"
16897 msgstr ""
16898
16899 #. type: verbatim
16900 #: ../fish/guestfish-commands.pod:32
16901 #, no-wrap
16902 msgid ""
16903 " copy-out remote [remote ...] localdir\n"
16904 "\n"
16905 msgstr ""
16906
16907 #. type: textblock
16908 #: ../fish/guestfish-commands.pod:34
16909 msgid ""
16910 "C<copy-out> copies remote files or directories recursively out of the disk "
16911 "image, placing them on the host disk in a local directory called C<localdir> "
16912 "(which must exist).  This guestfish meta-command turns into a sequence of "
16913 "L</download>, L</tar-out> and other commands as necessary."
16914 msgstr ""
16915
16916 #. type: textblock
16917 #: ../fish/guestfish-commands.pod:40
16918 msgid ""
16919 "Multiple remote files and directories can be specified, but the last "
16920 "parameter must always be a local directory.  To download to the current "
16921 "directory, use C<.> as in:"
16922 msgstr ""
16923
16924 #. type: verbatim
16925 #: ../fish/guestfish-commands.pod:44
16926 #, no-wrap
16927 msgid ""
16928 " copy-out /home .\n"
16929 "\n"
16930 msgstr ""
16931
16932 #. type: textblock
16933 #: ../fish/guestfish-commands.pod:46
16934 msgid ""
16935 "Wildcards cannot be used in the ordinary command, but you can use them with "
16936 "the help of L</glob> like this:"
16937 msgstr ""
16938
16939 #. type: verbatim
16940 #: ../fish/guestfish-commands.pod:49
16941 #, no-wrap
16942 msgid ""
16943 " glob copy-out /home/* .\n"
16944 "\n"
16945 msgstr ""
16946
16947 #. type: =head2
16948 #: ../fish/guestfish-commands.pod:51
16949 msgid "display"
16950 msgstr ""
16951
16952 #. type: verbatim
16953 #: ../fish/guestfish-commands.pod:53
16954 #, no-wrap
16955 msgid ""
16956 " display filename\n"
16957 "\n"
16958 msgstr ""
16959
16960 #. type: textblock
16961 #: ../fish/guestfish-commands.pod:55
16962 msgid ""
16963 "Use C<display> (a graphical display program) to display an image file.  It "
16964 "downloads the file, and runs C<display> on it."
16965 msgstr ""
16966
16967 #. type: textblock
16968 #: ../fish/guestfish-commands.pod:58
16969 msgid ""
16970 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
16971 "environment variable.  For example to use the GNOME display program:"
16972 msgstr ""
16973
16974 #. type: verbatim
16975 #: ../fish/guestfish-commands.pod:61
16976 #, no-wrap
16977 msgid ""
16978 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
16979 "\n"
16980 msgstr ""
16981
16982 #. type: textblock
16983 #: ../fish/guestfish-commands.pod:63
16984 msgid "See also L<display(1)>."
16985 msgstr ""
16986
16987 #. type: =head2
16988 #: ../fish/guestfish-commands.pod:65
16989 msgid "echo"
16990 msgstr ""
16991
16992 #. type: verbatim
16993 #: ../fish/guestfish-commands.pod:67
16994 #, no-wrap
16995 msgid ""
16996 " echo [params ...]\n"
16997 "\n"
16998 msgstr ""
16999
17000 #. type: textblock
17001 #: ../fish/guestfish-commands.pod:69
17002 msgid "This echos the parameters to the terminal."
17003 msgstr ""
17004
17005 #. type: =head2
17006 #: ../fish/guestfish-commands.pod:71
17007 msgid "edit"
17008 msgstr ""
17009
17010 #. type: =head2
17011 #: ../fish/guestfish-commands.pod:73
17012 msgid "vi"
17013 msgstr ""
17014
17015 #. type: =head2
17016 #: ../fish/guestfish-commands.pod:75
17017 msgid "emacs"
17018 msgstr ""
17019
17020 #. type: verbatim
17021 #: ../fish/guestfish-commands.pod:77
17022 #, no-wrap
17023 msgid ""
17024 " edit filename\n"
17025 "\n"
17026 msgstr ""
17027
17028 #. type: textblock
17029 #: ../fish/guestfish-commands.pod:79
17030 msgid ""
17031 "This is used to edit a file.  It downloads the file, edits it locally using "
17032 "your editor, then uploads the result."
17033 msgstr ""
17034
17035 #. type: textblock
17036 #: ../fish/guestfish-commands.pod:82
17037 msgid ""
17038 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
17039 "or C<emacs> you will get those corresponding editors."
17040 msgstr ""
17041
17042 #. type: =head2
17043 #: ../fish/guestfish-commands.pod:86
17044 msgid "glob"
17045 msgstr ""
17046
17047 #. type: verbatim
17048 #: ../fish/guestfish-commands.pod:88
17049 #, no-wrap
17050 msgid ""
17051 " glob command args...\n"
17052 "\n"
17053 msgstr ""
17054
17055 #. type: textblock
17056 #: ../fish/guestfish-commands.pod:90
17057 msgid ""
17058 "Expand wildcards in any paths in the args list, and run C<command> "
17059 "repeatedly on each matching path."
17060 msgstr ""
17061
17062 #. type: textblock
17063 #: ../fish/guestfish-commands.pod:93
17064 msgid "See L</WILDCARDS AND GLOBBING>."
17065 msgstr ""
17066
17067 #. type: =head2
17068 #: ../fish/guestfish-commands.pod:95
17069 msgid "hexedit"
17070 msgstr ""
17071
17072 #. type: verbatim
17073 #: ../fish/guestfish-commands.pod:97
17074 #, no-wrap
17075 msgid ""
17076 " hexedit <filename|device>\n"
17077 " hexedit <filename|device> <max>\n"
17078 " hexedit <filename|device> <start> <max>\n"
17079 "\n"
17080 msgstr ""
17081
17082 #. type: textblock
17083 #: ../fish/guestfish-commands.pod:101
17084 msgid ""
17085 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
17086 "device."
17087 msgstr ""
17088
17089 #. type: textblock
17090 #: ../fish/guestfish-commands.pod:104
17091 msgid ""
17092 "This command works by downloading potentially the whole file or device, "
17093 "editing it locally, then uploading it.  If the file or device is large, you "
17094 "have to specify which part you wish to edit by using C<max> and/or C<start> "
17095 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
17096 "usual modifiers allowed such as C<1M> (1 megabyte)."
17097 msgstr ""
17098
17099 #. type: textblock
17100 #: ../fish/guestfish-commands.pod:111
17101 msgid "For example to edit the first few sectors of a disk you might do:"
17102 msgstr ""
17103
17104 #. type: verbatim
17105 #: ../fish/guestfish-commands.pod:114
17106 #, no-wrap
17107 msgid ""
17108 " hexedit /dev/sda 1M\n"
17109 "\n"
17110 msgstr ""
17111
17112 #. type: textblock
17113 #: ../fish/guestfish-commands.pod:116
17114 msgid ""
17115 "which would allow you to edit anywhere within the first megabyte of the "
17116 "disk."
17117 msgstr ""
17118
17119 #. type: textblock
17120 #: ../fish/guestfish-commands.pod:119
17121 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
17122 msgstr ""
17123
17124 #. type: verbatim
17125 #: ../fish/guestfish-commands.pod:121
17126 #, no-wrap
17127 msgid ""
17128 " hexedit /dev/sda1 0x400 0x400\n"
17129 "\n"
17130 msgstr ""
17131
17132 #. type: textblock
17133 #: ../fish/guestfish-commands.pod:123
17134 msgid "(assuming the superblock is in the standard location)."
17135 msgstr ""
17136
17137 #. type: textblock
17138 #: ../fish/guestfish-commands.pod:125
17139 msgid ""
17140 "This command requires the external L<hexedit(1)> program.  You can specify "
17141 "another program to use by setting the C<HEXEDITOR> environment variable."
17142 msgstr ""
17143
17144 #. type: textblock
17145 #: ../fish/guestfish-commands.pod:129
17146 msgid "See also L</hexdump>."
17147 msgstr ""
17148
17149 #. type: =head2
17150 #: ../fish/guestfish-commands.pod:131
17151 msgid "lcd"
17152 msgstr ""
17153
17154 #. type: verbatim
17155 #: ../fish/guestfish-commands.pod:133
17156 #, no-wrap
17157 msgid ""
17158 " lcd directory\n"
17159 "\n"
17160 msgstr ""
17161
17162 #. type: textblock
17163 #: ../fish/guestfish-commands.pod:135
17164 msgid "Change the local directory, ie. the current directory of guestfish itself."
17165 msgstr ""
17166
17167 #. type: textblock
17168 #: ../fish/guestfish-commands.pod:138
17169 msgid "Note that C<!cd> won't do what you might expect."
17170 msgstr ""
17171
17172 #. type: =head2
17173 #: ../fish/guestfish-commands.pod:140
17174 msgid "man"
17175 msgstr ""
17176
17177 #. type: =head2
17178 #: ../fish/guestfish-commands.pod:142
17179 msgid "manual"
17180 msgstr ""
17181
17182 #. type: verbatim
17183 #: ../fish/guestfish-commands.pod:144
17184 #, no-wrap
17185 msgid ""
17186 "  man\n"
17187 "\n"
17188 msgstr ""
17189
17190 #. type: textblock
17191 #: ../fish/guestfish-commands.pod:146
17192 msgid "Opens the manual page for guestfish."
17193 msgstr ""
17194
17195 #. type: =head2
17196 #: ../fish/guestfish-commands.pod:148
17197 msgid "more"
17198 msgstr ""
17199
17200 #. type: =head2
17201 #: ../fish/guestfish-commands.pod:150
17202 msgid "less"
17203 msgstr ""
17204
17205 #. type: verbatim
17206 #: ../fish/guestfish-commands.pod:152
17207 #, no-wrap
17208 msgid ""
17209 " more filename\n"
17210 "\n"
17211 msgstr ""
17212
17213 #. type: verbatim
17214 #: ../fish/guestfish-commands.pod:154
17215 #, no-wrap
17216 msgid ""
17217 " less filename\n"
17218 "\n"
17219 msgstr ""
17220
17221 #. type: textblock
17222 #: ../fish/guestfish-commands.pod:156
17223 msgid "This is used to view a file."
17224 msgstr ""
17225
17226 #. type: textblock
17227 #: ../fish/guestfish-commands.pod:158
17228 msgid ""
17229 "The default viewer is C<$PAGER>.  However if you use the alternate command "
17230 "C<less> you will get the C<less> command specifically."
17231 msgstr ""
17232
17233 #. type: =head2
17234 #: ../fish/guestfish-commands.pod:161
17235 msgid "reopen"
17236 msgstr ""
17237
17238 #. type: verbatim
17239 #: ../fish/guestfish-commands.pod:163
17240 #, no-wrap
17241 msgid ""
17242 "  reopen\n"
17243 "\n"
17244 msgstr ""
17245
17246 #. type: textblock
17247 #: ../fish/guestfish-commands.pod:165
17248 msgid ""
17249 "Close and reopen the libguestfs handle.  It is not necessary to use this "
17250 "normally, because the handle is closed properly when guestfish exits.  "
17251 "However this is occasionally useful for testing."
17252 msgstr ""
17253
17254 #. type: =head2
17255 #: ../fish/guestfish-commands.pod:169
17256 msgid "setenv"
17257 msgstr ""
17258
17259 #. type: verbatim
17260 #: ../fish/guestfish-commands.pod:171
17261 #, no-wrap
17262 msgid ""
17263 "  setenv VAR value\n"
17264 "\n"
17265 msgstr ""
17266
17267 #. type: textblock
17268 #: ../fish/guestfish-commands.pod:173
17269 msgid "Set the environment variable C<VAR> to the string C<value>."
17270 msgstr ""
17271
17272 #. type: textblock
17273 #: ../fish/guestfish-commands.pod:175
17274 msgid "To print the value of an environment variable use a shell command such as:"
17275 msgstr ""
17276
17277 #. type: verbatim
17278 #: ../fish/guestfish-commands.pod:178
17279 #, no-wrap
17280 msgid ""
17281 " !echo $VAR\n"
17282 "\n"
17283 msgstr ""
17284
17285 #. type: =head2
17286 #: ../fish/guestfish-commands.pod:180
17287 msgid "sparse"
17288 msgstr ""
17289
17290 #. type: verbatim
17291 #: ../fish/guestfish-commands.pod:182
17292 #, no-wrap
17293 msgid ""
17294 " sparse filename size\n"
17295 "\n"
17296 msgstr ""
17297
17298 #. type: textblock
17299 #: ../fish/guestfish-commands.pod:184
17300 msgid ""
17301 "This creates an empty sparse file of the given size, and then adds so it can "
17302 "be further examined."
17303 msgstr ""
17304
17305 #. type: textblock
17306 #: ../fish/guestfish-commands.pod:187
17307 msgid ""
17308 "In all respects it works the same as the L</alloc> command, except that the "
17309 "image file is allocated sparsely, which means that disk blocks are not "
17310 "assigned to the file until they are needed.  Sparse disk files only use "
17311 "space when written to, but they are slower and there is a danger you could "
17312 "run out of real disk space during a write operation."
17313 msgstr ""
17314
17315 #. type: =head2
17316 #: ../fish/guestfish-commands.pod:197
17317 msgid "supported"
17318 msgstr ""
17319
17320 #. type: verbatim
17321 #: ../fish/guestfish-commands.pod:199
17322 #, no-wrap
17323 msgid ""
17324 " supported\n"
17325 "\n"
17326 msgstr ""
17327
17328 #. type: textblock
17329 #: ../fish/guestfish-commands.pod:201
17330 msgid ""
17331 "This command returns a list of the optional groups known to the daemon, and "
17332 "indicates which ones are supported by this build of the libguestfs "
17333 "appliance."
17334 msgstr ""
17335
17336 #. type: textblock
17337 #: ../fish/guestfish-commands.pod:205
17338 msgid "See also L<guestfs(3)/AVAILABILITY>."
17339 msgstr ""
17340
17341 #. type: =head2
17342 #: ../fish/guestfish-commands.pod:207
17343 msgid "time"
17344 msgstr ""
17345
17346 #. type: verbatim
17347 #: ../fish/guestfish-commands.pod:209
17348 #, no-wrap
17349 msgid ""
17350 " time command args...\n"
17351 "\n"
17352 msgstr ""
17353
17354 #. type: textblock
17355 #: ../fish/guestfish-commands.pod:211
17356 msgid ""
17357 "Run the command as usual, but print the elapsed time afterwards.  This can "
17358 "be useful for benchmarking operations."
17359 msgstr ""
17360
17361 #. type: =head2
17362 #: ../fish/guestfish-commands.pod:214
17363 msgid "unsetenv"
17364 msgstr ""
17365
17366 #. type: verbatim
17367 #: ../fish/guestfish-commands.pod:216
17368 #, no-wrap
17369 msgid ""
17370 "  unsetenv VAR\n"
17371 "\n"
17372 msgstr ""
17373
17374 #. type: textblock
17375 #: ../fish/guestfish-commands.pod:218
17376 msgid "Remove C<VAR> from the environment."
17377 msgstr ""
17378
17379 #. type: textblock
17380 #: ../fish/guestfish.pod:5
17381 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
17382 msgstr ""
17383
17384 #. type: verbatim
17385 #: ../fish/guestfish.pod:9
17386 #, no-wrap
17387 msgid ""
17388 " guestfish [--options] [commands]\n"
17389 "\n"
17390 msgstr ""
17391
17392 #. type: verbatim
17393 #: ../fish/guestfish.pod:11
17394 #, no-wrap
17395 msgid ""
17396 " guestfish\n"
17397 "\n"
17398 msgstr ""
17399
17400 #. type: verbatim
17401 #: ../fish/guestfish.pod:13
17402 #, no-wrap
17403 msgid ""
17404 " guestfish [--ro|--rw] -a disk.img\n"
17405 "\n"
17406 msgstr ""
17407
17408 #. type: verbatim
17409 #: ../fish/guestfish.pod:15
17410 #, no-wrap
17411 msgid ""
17412 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
17413 "\n"
17414 msgstr ""
17415
17416 #. type: verbatim
17417 #: ../fish/guestfish.pod:17
17418 #, no-wrap
17419 msgid ""
17420 " guestfish -d libvirt-domain\n"
17421 "\n"
17422 msgstr ""
17423
17424 #. type: verbatim
17425 #: ../fish/guestfish.pod:19
17426 #, no-wrap
17427 msgid ""
17428 " guestfish [--ro|--rw] -a disk.img -i\n"
17429 "\n"
17430 msgstr ""
17431
17432 #. type: verbatim
17433 #: ../fish/guestfish.pod:21
17434 #, no-wrap
17435 msgid ""
17436 " guestfish -d libvirt-domain -i\n"
17437 "\n"
17438 msgstr ""
17439
17440 #. type: textblock
17441 #: ../fish/guestfish.pod:25
17442 msgid ""
17443 "Using guestfish in read/write mode on live virtual machines can be "
17444 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
17445 "option to use guestfish safely if the disk image or virtual machine might be "
17446 "live."
17447 msgstr ""
17448
17449 #. type: textblock
17450 #: ../fish/guestfish.pod:32
17451 msgid ""
17452 "Guestfish is a shell and command-line tool for examining and modifying "
17453 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
17454 "functionality of the guestfs API, see L<guestfs(3)>."
17455 msgstr ""
17456
17457 #. type: textblock
17458 #: ../fish/guestfish.pod:36
17459 msgid ""
17460 "Guestfish gives you structured access to the libguestfs API, from shell "
17461 "scripts or the command line or interactively.  If you want to rescue a "
17462 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
17463 "command."
17464 msgstr ""
17465
17466 #. type: =head2
17467 #: ../fish/guestfish.pod:43
17468 msgid "As an interactive shell"
17469 msgstr ""
17470
17471 #. type: verbatim
17472 #: ../fish/guestfish.pod:45
17473 #, no-wrap
17474 msgid ""
17475 " $ guestfish\n"
17476 " \n"
17477 msgstr ""
17478
17479 #. type: verbatim
17480 #: ../fish/guestfish.pod:47
17481 #, no-wrap
17482 msgid ""
17483 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
17484 " editing virtual machine filesystems.\n"
17485 " \n"
17486 msgstr ""
17487
17488 #. type: verbatim
17489 #: ../fish/guestfish.pod:50
17490 #, no-wrap
17491 msgid ""
17492 " Type: 'help' for a list of commands\n"
17493 "       'man' to read the manual\n"
17494 "       'quit' to quit the shell\n"
17495 " \n"
17496 msgstr ""
17497
17498 #. type: verbatim
17499 #: ../fish/guestfish.pod:54
17500 #, no-wrap
17501 msgid ""
17502 " ><fs> add-ro disk.img\n"
17503 " ><fs> run\n"
17504 " ><fs> list-filesystems\n"
17505 " /dev/sda1: ext4\n"
17506 " /dev/vg_guest/lv_root: ext4\n"
17507 " /dev/vg_guest/lv_swap: swap\n"
17508 " ><fs> mount /dev/vg_guest/lv_root /\n"
17509 " ><fs> cat /etc/fstab\n"
17510 " # /etc/fstab\n"
17511 " # Created by anaconda\n"
17512 " [...]\n"
17513 " ><fs> exit\n"
17514 "\n"
17515 msgstr ""
17516
17517 #. type: =head2
17518 #: ../fish/guestfish.pod:67
17519 msgid "From shell scripts"
17520 msgstr ""
17521
17522 #. type: textblock
17523 #: ../fish/guestfish.pod:69
17524 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17525 msgstr ""
17526
17527 #. type: verbatim
17528 #: ../fish/guestfish.pod:71
17529 #, no-wrap
17530 msgid ""
17531 " guestfish <<_EOF_\n"
17532 " add disk.img\n"
17533 " run\n"
17534 " mount /dev/vg_guest/lv_root /\n"
17535 " write /etc/motd \"Welcome, new users\"\n"
17536 " _EOF_\n"
17537 "\n"
17538 msgstr ""
17539
17540 #. type: textblock
17541 #: ../fish/guestfish.pod:78
17542 msgid "List the LVM logical volumes in a disk image:"
17543 msgstr ""
17544
17545 #. type: verbatim
17546 #: ../fish/guestfish.pod:80
17547 #, no-wrap
17548 msgid ""
17549 " guestfish -a disk.img --ro <<_EOF_\n"
17550 " run\n"
17551 " lvs\n"
17552 " _EOF_\n"
17553 "\n"
17554 msgstr ""
17555
17556 #. type: textblock
17557 #: ../fish/guestfish.pod:85
17558 msgid "List all the filesystems in a disk image:"
17559 msgstr ""
17560
17561 #. type: verbatim
17562 #: ../fish/guestfish.pod:87
17563 #, no-wrap
17564 msgid ""
17565 " guestfish -a disk.img --ro <<_EOF_\n"
17566 " run\n"
17567 " list-filesystems\n"
17568 " _EOF_\n"
17569 "\n"
17570 msgstr ""
17571
17572 #. type: =head2
17573 #: ../fish/guestfish.pod:92
17574 msgid "On one command line"
17575 msgstr ""
17576
17577 #. type: textblock
17578 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
17579 msgid "Update C</etc/resolv.conf> in a guest:"
17580 msgstr ""
17581
17582 #. type: verbatim
17583 #: ../fish/guestfish.pod:96
17584 #, no-wrap
17585 msgid ""
17586 " guestfish \\\n"
17587 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17588 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17589 "\n"
17590 msgstr ""
17591
17592 #. type: textblock
17593 #: ../fish/guestfish.pod:100
17594 msgid "Edit C</boot/grub/grub.conf> interactively:"
17595 msgstr ""
17596
17597 #. type: verbatim
17598 #: ../fish/guestfish.pod:102
17599 #, no-wrap
17600 msgid ""
17601 " guestfish --rw --add disk.img \\\n"
17602 "   --mount /dev/vg_guest/lv_root \\\n"
17603 "   --mount /dev/sda1:/boot \\\n"
17604 "   edit /boot/grub/grub.conf\n"
17605 "\n"
17606 msgstr ""
17607
17608 #. type: =head2
17609 #: ../fish/guestfish.pod:107
17610 msgid "Mount disks automatically"
17611 msgstr ""
17612
17613 #. type: textblock
17614 #: ../fish/guestfish.pod:109
17615 msgid ""
17616 "Use the I<-i> option to automatically mount the disks from a virtual "
17617 "machine:"
17618 msgstr ""
17619
17620 #. type: verbatim
17621 #: ../fish/guestfish.pod:112
17622 #, no-wrap
17623 msgid ""
17624 " guestfish --ro -a disk.img -i cat /etc/group\n"
17625 "\n"
17626 msgstr ""
17627
17628 #. type: verbatim
17629 #: ../fish/guestfish.pod:114
17630 #, no-wrap
17631 msgid ""
17632 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17633 "\n"
17634 msgstr ""
17635
17636 #. type: textblock
17637 #: ../fish/guestfish.pod:116
17638 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17639 msgstr ""
17640
17641 #. type: verbatim
17642 #: ../fish/guestfish.pod:118
17643 #, no-wrap
17644 msgid ""
17645 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17646 "\n"
17647 msgstr ""
17648
17649 #. type: =head2
17650 #: ../fish/guestfish.pod:120
17651 msgid "As a script interpreter"
17652 msgstr ""
17653
17654 #. type: textblock
17655 #: ../fish/guestfish.pod:122
17656 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17657 msgstr ""
17658
17659 #. type: verbatim
17660 #: ../fish/guestfish.pod:124
17661 #, no-wrap
17662 msgid ""
17663 " #!/usr/bin/guestfish -f\n"
17664 " sparse test1.img 100M\n"
17665 " run\n"
17666 " part-disk /dev/sda mbr\n"
17667 " mkfs ext2 /dev/sda1\n"
17668 "\n"
17669 msgstr ""
17670
17671 #. type: =head2
17672 #: ../fish/guestfish.pod:130
17673 msgid "Start with a prepared disk"
17674 msgstr ""
17675
17676 #. type: textblock
17677 #: ../fish/guestfish.pod:132
17678 msgid ""
17679 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17680 "single ext2-formatted partition:"
17681 msgstr ""
17682
17683 #. type: verbatim
17684 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
17685 #, no-wrap
17686 msgid ""
17687 " guestfish -N fs\n"
17688 "\n"
17689 msgstr ""
17690
17691 #. type: textblock
17692 #: ../fish/guestfish.pod:137
17693 msgid "To list what is available do:"
17694 msgstr ""
17695
17696 #. type: verbatim
17697 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
17698 #, no-wrap
17699 msgid ""
17700 " guestfish -N help | less\n"
17701 "\n"
17702 msgstr ""
17703
17704 #. type: =head2
17705 #: ../fish/guestfish.pod:141
17706 msgid "Remote control"
17707 msgstr ""
17708
17709 #. type: verbatim
17710 #: ../fish/guestfish.pod:143
17711 #, no-wrap
17712 msgid ""
17713 " eval \"`guestfish --listen`\"\n"
17714 " guestfish --remote add-ro disk.img\n"
17715 " guestfish --remote run\n"
17716 " guestfish --remote lvs\n"
17717 "\n"
17718 msgstr ""
17719
17720 #. type: textblock
17721 #: ../fish/guestfish.pod:154
17722 msgid "Displays general help on options."
17723 msgstr ""
17724
17725 #. type: =item
17726 #: ../fish/guestfish.pod:158
17727 msgid "B<--cmd-help>"
17728 msgstr ""
17729
17730 #. type: textblock
17731 #: ../fish/guestfish.pod:160
17732 msgid "Lists all available guestfish commands."
17733 msgstr ""
17734
17735 #. type: =item
17736 #: ../fish/guestfish.pod:162
17737 msgid "B<-h cmd>"
17738 msgstr ""
17739
17740 #. type: =item
17741 #: ../fish/guestfish.pod:164
17742 msgid "B<--cmd-help cmd>"
17743 msgstr ""
17744
17745 #. type: textblock
17746 #: ../fish/guestfish.pod:166
17747 msgid "Displays detailed help on a single command C<cmd>."
17748 msgstr ""
17749
17750 #. type: =item
17751 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
17752 msgid "B<-a image>"
17753 msgstr ""
17754
17755 #. type: =item
17756 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
17757 msgid "B<--add image>"
17758 msgstr ""
17759
17760 #. type: textblock
17761 #: ../fish/guestfish.pod:172
17762 msgid "Add a block device or virtual machine image to the shell."
17763 msgstr ""
17764
17765 #. type: textblock
17766 #: ../fish/guestfish.pod:177
17767 msgid ""
17768 "Using this flag is mostly equivalent to using the C<add> command, with "
17769 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17770 "the I<--format=...> flag was given."
17771 msgstr ""
17772
17773 #. type: textblock
17774 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
17775 msgid ""
17776 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17777 "URI to use.  The default is to use the default libvirt connection."
17778 msgstr ""
17779
17780 #. type: =item
17781 #: ../fish/guestfish.pod:189
17782 msgid "B<--csh>"
17783 msgstr ""
17784
17785 #. type: textblock
17786 #: ../fish/guestfish.pod:191
17787 msgid ""
17788 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17789 "section L</REMOTE CONTROL AND CSH> below."
17790 msgstr ""
17791
17792 #. type: =item
17793 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
17794 msgid "B<-d libvirt-domain>"
17795 msgstr ""
17796
17797 #. type: =item
17798 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
17799 msgid "B<--domain libvirt-domain>"
17800 msgstr ""
17801
17802 #. type: textblock
17803 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
17804 msgid ""
17805 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17806 "used, then any libvirt domain can be used.  However in write mode, only "
17807 "libvirt domains which are shut down can be named here."
17808 msgstr ""
17809
17810 #. type: textblock
17811 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
17812 msgid "Domain UUIDs can be used instead of names."
17813 msgstr ""
17814
17815 #. type: textblock
17816 #: ../fish/guestfish.pod:204
17817 msgid ""
17818 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17819 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17820 "if the I<--format:...> flag was given."
17821 msgstr ""
17822
17823 #. type: =item
17824 #: ../fish/guestfish.pod:208
17825 msgid "B<-D>"
17826 msgstr ""
17827
17828 #. type: =item
17829 #: ../fish/guestfish.pod:210
17830 msgid "B<--no-dest-paths>"
17831 msgstr ""
17832
17833 #. type: textblock
17834 #: ../fish/guestfish.pod:212
17835 msgid ""
17836 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17837 "to hit the tab key to complete paths on the guest filesystem, but this "
17838 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17839 "allow this feature to be disabled."
17840 msgstr ""
17841
17842 #. type: textblock
17843 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
17844 msgid ""
17845 "When prompting for keys and passphrases, guestfish normally turns echoing "
17846 "off so you cannot see what you are typing.  If you are not worried about "
17847 "Tempest attacks and there is no one else in the room you can specify this "
17848 "flag to see what you are typing."
17849 msgstr ""
17850
17851 #. type: =item
17852 #: ../fish/guestfish.pod:224
17853 msgid "B<-f file>"
17854 msgstr ""
17855
17856 #. type: =item
17857 #: ../fish/guestfish.pod:226
17858 msgid "B<--file file>"
17859 msgstr ""
17860
17861 #. type: textblock
17862 #: ../fish/guestfish.pod:228
17863 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17864 msgstr ""
17865
17866 #. type: verbatim
17867 #: ../fish/guestfish.pod:231
17868 #, no-wrap
17869 msgid ""
17870 " #!/usr/bin/guestfish -f\n"
17871 "\n"
17872 msgstr ""
17873
17874 #. type: verbatim
17875 #: ../fish/guestfish.pod:244
17876 #, no-wrap
17877 msgid ""
17878 " guestfish --format=raw -a disk.img\n"
17879 "\n"
17880 msgstr ""
17881
17882 #. type: verbatim
17883 #: ../fish/guestfish.pod:248
17884 #, no-wrap
17885 msgid ""
17886 " guestfish --format=raw -a disk.img --format -a another.img\n"
17887 "\n"
17888 msgstr ""
17889
17890 #. type: textblock
17891 #: ../fish/guestfish.pod:253
17892 msgid ""
17893 "If you have untrusted raw-format guest disk images, you should use this "
17894 "option to specify the disk format.  This avoids a possible security problem "
17895 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17896 msgstr ""
17897
17898 #. type: =item
17899 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
17900 msgid "B<--inspector>"
17901 msgstr ""
17902
17903 #. type: textblock
17904 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
17905 msgid ""
17906 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17907 "system and mount filesystems as they would be mounted on the real virtual "
17908 "machine."
17909 msgstr ""
17910
17911 #. type: textblock
17912 #: ../fish/guestfish.pod:266
17913 msgid "Typical usage is either:"
17914 msgstr ""
17915
17916 #. type: verbatim
17917 #: ../fish/guestfish.pod:268
17918 #, no-wrap
17919 msgid ""
17920 " guestfish -d myguest -i\n"
17921 "\n"
17922 msgstr ""
17923
17924 #. type: textblock
17925 #: ../fish/guestfish.pod:270
17926 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17927 msgstr ""
17928
17929 #. type: verbatim
17930 #: ../fish/guestfish.pod:272
17931 #, no-wrap
17932 msgid ""
17933 " guestfish --ro -d myguest -i\n"
17934 "\n"
17935 msgstr ""
17936
17937 #. type: textblock
17938 #: ../fish/guestfish.pod:274
17939 msgid "(for active domains, readonly), or specify the block device directly:"
17940 msgstr ""
17941
17942 #. type: verbatim
17943 #: ../fish/guestfish.pod:276
17944 #, no-wrap
17945 msgid ""
17946 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17947 "\n"
17948 msgstr ""
17949
17950 #. type: textblock
17951 #: ../fish/guestfish.pod:278
17952 msgid ""
17953 "Note that the command line syntax changed slightly over older versions of "
17954 "guestfish.  You can still use the old syntax:"
17955 msgstr ""
17956
17957 #. type: verbatim
17958 #: ../fish/guestfish.pod:281
17959 #, no-wrap
17960 msgid ""
17961 " guestfish [--ro] -i disk.img\n"
17962 "\n"
17963 msgstr ""
17964
17965 #. type: verbatim
17966 #: ../fish/guestfish.pod:283
17967 #, no-wrap
17968 msgid ""
17969 " guestfish [--ro] -i libvirt-domain\n"
17970 "\n"
17971 msgstr ""
17972
17973 #. type: textblock
17974 #: ../fish/guestfish.pod:285
17975 msgid ""
17976 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17977 "then using other commands to mount the filesystems that were found."
17978 msgstr ""
17979
17980 #. type: =item
17981 #: ../fish/guestfish.pod:294
17982 msgid "B<--listen>"
17983 msgstr ""
17984
17985 #. type: textblock
17986 #: ../fish/guestfish.pod:296
17987 msgid ""
17988 "Fork into the background and listen for remote commands.  See section "
17989 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17990 msgstr ""
17991
17992 #. type: =item
17993 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
17994 msgid "B<--live>"
17995 msgstr ""
17996
17997 #. type: textblock
17998 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
17999 msgid ""
18000 "Connect to a live virtual machine.  (Experimental, see "
18001 "L<guestfs(3)/ATTACHING TO RUNNING DAEMONS>)."
18002 msgstr ""
18003
18004 #. type: =item
18005 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
18006 msgid "B<-m dev[:mountpoint[:options]]>"
18007 msgstr ""
18008
18009 #. type: =item
18010 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
18011 msgid "B<--mount dev[:mountpoint[:options]]>"
18012 msgstr ""
18013
18014 #. type: textblock
18015 #: ../fish/guestfish.pod:308
18016 msgid "Mount the named partition or logical volume on the given mountpoint."
18017 msgstr ""
18018
18019 #. type: textblock
18020 #: ../fish/guestfish.pod:310
18021 msgid "If the mountpoint is omitted, it defaults to C</>."
18022 msgstr ""
18023
18024 #. type: textblock
18025 #: ../fish/guestfish.pod:312
18026 msgid "You have to mount something on C</> before most commands will work."
18027 msgstr ""
18028
18029 #. type: textblock
18030 #: ../fish/guestfish.pod:314
18031 msgid ""
18032 "If any I<-m> or I<--mount> options are given, the guest is automatically "
18033 "launched."
18034 msgstr ""
18035
18036 #. type: textblock
18037 #: ../fish/guestfish.pod:317
18038 msgid ""
18039 "If you don't know what filesystems a disk image contains, you can either run "
18040 "guestfish without this option, then list the partitions, filesystems and LVs "
18041 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
18042 "commands), or you can use the L<virt-filesystems(1)> program."
18043 msgstr ""
18044
18045 #. type: textblock
18046 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
18047 msgid ""
18048 "The third (and rarely used) part of the mount parameter is the list of mount "
18049 "options used to mount the underlying filesystem.  If this is not given, then "
18050 "the mount options are either the empty string or C<ro> (the latter if the "
18051 "I<--ro> flag is used).  By specifying the mount options, you override this "
18052 "default choice.  Probably the only time you would use this is to enable ACLs "
18053 "and/or extended attributes if the filesystem can support them:"
18054 msgstr ""
18055
18056 #. type: verbatim
18057 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
18058 #, no-wrap
18059 msgid ""
18060 " -m /dev/sda1:/:acl,user_xattr\n"
18061 "\n"
18062 msgstr ""
18063
18064 #. type: textblock
18065 #: ../fish/guestfish.pod:333
18066 msgid "Using this flag is equivalent to using the C<mount-options> command."
18067 msgstr ""
18068
18069 #. type: =item
18070 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202 ../resize/virt-resize.pod:435
18071 msgid "B<-n>"
18072 msgstr ""
18073
18074 #. type: =item
18075 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
18076 msgid "B<--no-sync>"
18077 msgstr ""
18078
18079 #. type: textblock
18080 #: ../fish/guestfish.pod:339
18081 msgid ""
18082 "Disable autosync.  This is enabled by default.  See the discussion of "
18083 "autosync in the L<guestfs(3)> manpage."
18084 msgstr ""
18085
18086 #. type: =item
18087 #: ../fish/guestfish.pod:342
18088 msgid "B<-N type>"
18089 msgstr ""
18090
18091 #. type: =item
18092 #: ../fish/guestfish.pod:344
18093 msgid "B<--new type>"
18094 msgstr ""
18095
18096 #. type: =item
18097 #: ../fish/guestfish.pod:346
18098 msgid "B<-N help>"
18099 msgstr ""
18100
18101 #. type: textblock
18102 #: ../fish/guestfish.pod:348
18103 msgid ""
18104 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
18105 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
18106 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
18107 "IMAGES> below."
18108 msgstr ""
18109
18110 #. type: =item
18111 #: ../fish/guestfish.pod:353
18112 msgid "B<--progress-bars>"
18113 msgstr ""
18114
18115 #. type: textblock
18116 #: ../fish/guestfish.pod:355
18117 msgid "Enable progress bars, even when guestfish is used non-interactively."
18118 msgstr ""
18119
18120 #. type: textblock
18121 #: ../fish/guestfish.pod:357
18122 msgid ""
18123 "Progress bars are enabled by default when guestfish is used as an "
18124 "interactive shell."
18125 msgstr ""
18126
18127 #. type: =item
18128 #: ../fish/guestfish.pod:360
18129 msgid "B<--no-progress-bars>"
18130 msgstr ""
18131
18132 #. type: textblock
18133 #: ../fish/guestfish.pod:362
18134 msgid "Disable progress bars."
18135 msgstr ""
18136
18137 #. type: =item
18138 #: ../fish/guestfish.pod:364
18139 msgid "B<--remote[=pid]>"
18140 msgstr ""
18141
18142 #. type: textblock
18143 #: ../fish/guestfish.pod:366
18144 msgid ""
18145 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
18146 "CONTROL GUESTFISH OVER A SOCKET> below."
18147 msgstr ""
18148
18149 #. type: =item
18150 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248 ../rescue/virt-rescue.pod:161
18151 msgid "B<-r>"
18152 msgstr ""
18153
18154 #. type: =item
18155 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250 ../rescue/virt-rescue.pod:163
18156 msgid "B<--ro>"
18157 msgstr ""
18158
18159 #. type: textblock
18160 #: ../fish/guestfish.pod:373
18161 msgid ""
18162 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18163 "mounts are done read-only."
18164 msgstr ""
18165
18166 #. type: textblock
18167 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
18168 msgid ""
18169 "The option must always be used if the disk image or virtual machine might be "
18170 "running, and is generally recommended in cases where you don't need write "
18171 "access to the disk."
18172 msgstr ""
18173
18174 #. type: textblock
18175 #: ../fish/guestfish.pod:380
18176 msgid ""
18177 "Note that prepared disk images created with I<-N> are not affected by this "
18178 "option.  Also commands like C<add> are not affected - you have to specify "
18179 "the C<readonly:true> option explicitly if you need it."
18180 msgstr ""
18181
18182 #. type: textblock
18183 #: ../fish/guestfish.pod:384
18184 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
18185 msgstr ""
18186
18187 #. type: =item
18188 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262 ../rescue/virt-rescue.pod:173
18189 msgid "B<--selinux>"
18190 msgstr ""
18191
18192 #. type: textblock
18193 #: ../fish/guestfish.pod:388
18194 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
18195 msgstr ""
18196
18197 #. type: textblock
18198 #: ../fish/guestfish.pod:394
18199 msgid ""
18200 "Enable very verbose messages.  This is particularly useful if you find a "
18201 "bug."
18202 msgstr ""
18203
18204 #. type: textblock
18205 #: ../fish/guestfish.pod:401
18206 msgid "Display the guestfish / libguestfs version number and exit."
18207 msgstr ""
18208
18209 #. type: =item
18210 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278 ../rescue/virt-rescue.pod:194
18211 msgid "B<-w>"
18212 msgstr ""
18213
18214 #. type: =item
18215 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280 ../rescue/virt-rescue.pod:196
18216 msgid "B<--rw>"
18217 msgstr ""
18218
18219 #. type: textblock
18220 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
18221 msgid ""
18222 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18223 "mounts are done read-write."
18224 msgstr ""
18225
18226 #. type: textblock
18227 #: ../fish/guestfish.pod:410
18228 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
18229 msgstr ""
18230
18231 #. type: textblock
18232 #: ../fish/guestfish.pod:414
18233 msgid "Echo each command before executing it."
18234 msgstr ""
18235
18236 #. type: =head1
18237 #: ../fish/guestfish.pod:418
18238 msgid "COMMANDS ON COMMAND LINE"
18239 msgstr ""
18240
18241 #. type: textblock
18242 #: ../fish/guestfish.pod:420
18243 msgid "Any additional (non-option) arguments are treated as commands to execute."
18244 msgstr ""
18245
18246 #. type: textblock
18247 #: ../fish/guestfish.pod:423
18248 msgid ""
18249 "Commands to execute should be separated by a colon (C<:>), where the colon "
18250 "is a separate parameter.  Thus:"
18251 msgstr ""
18252
18253 #. type: verbatim
18254 #: ../fish/guestfish.pod:426
18255 #, no-wrap
18256 msgid ""
18257 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
18258 "\n"
18259 msgstr ""
18260
18261 #. type: textblock
18262 #: ../fish/guestfish.pod:428
18263 msgid ""
18264 "If there are no additional arguments, then we enter a shell, either an "
18265 "interactive shell with a prompt (if the input is a terminal) or a "
18266 "non-interactive shell."
18267 msgstr ""
18268
18269 #. type: textblock
18270 #: ../fish/guestfish.pod:432
18271 msgid ""
18272 "In either command line mode or non-interactive shell, the first command that "
18273 "gives an error causes the whole shell to exit.  In interactive mode (with a "
18274 "prompt) if a command fails, you can continue to enter commands."
18275 msgstr ""
18276
18277 #. type: =head1
18278 #: ../fish/guestfish.pod:437
18279 msgid "USING launch (OR run)"
18280 msgstr ""
18281
18282 #. type: textblock
18283 #: ../fish/guestfish.pod:439
18284 msgid ""
18285 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
18286 "then launch it, then mount any disks you need, and finally issue "
18287 "actions/commands.  So the general order of the day is:"
18288 msgstr ""
18289
18290 #. type: textblock
18291 #: ../fish/guestfish.pod:447
18292 msgid "add or -a/--add"
18293 msgstr ""
18294
18295 #. type: textblock
18296 #: ../fish/guestfish.pod:451
18297 msgid "launch (aka run)"
18298 msgstr ""
18299
18300 #. type: textblock
18301 #: ../fish/guestfish.pod:455
18302 msgid "mount or -m/--mount"
18303 msgstr ""
18304
18305 #. type: textblock
18306 #: ../fish/guestfish.pod:459
18307 msgid "any other commands"
18308 msgstr ""
18309
18310 #. type: textblock
18311 #: ../fish/guestfish.pod:463
18312 msgid ""
18313 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
18314 "guest before mounting or performing any other commands."
18315 msgstr ""
18316
18317 #. type: textblock
18318 #: ../fish/guestfish.pod:466
18319 msgid ""
18320 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
18321 "I<--new> options were given then C<run> is done automatically, simply "
18322 "because guestfish can't perform the action you asked for without doing this."
18323 msgstr ""
18324
18325 #. type: =head1
18326 #: ../fish/guestfish.pod:471
18327 msgid "OPENING DISKS FOR READ AND WRITE"
18328 msgstr ""
18329
18330 #. type: textblock
18331 #: ../fish/guestfish.pod:473
18332 msgid ""
18333 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
18334 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
18335 "I<-i> and I<-m> open disk images read-only or for writing."
18336 msgstr ""
18337
18338 #. type: textblock
18339 #: ../fish/guestfish.pod:478
18340 msgid ""
18341 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
18342 "opening disk images supplied on the command line for write.  To open a disk "
18343 "image read-only you have to do I<-a image --ro>."
18344 msgstr ""
18345
18346 #. type: textblock
18347 #: ../fish/guestfish.pod:482
18348 msgid ""
18349 "This matters: If you accidentally open a live VM disk image writable then "
18350 "you will cause irreversible disk corruption."
18351 msgstr ""
18352
18353 #. type: textblock
18354 #: ../fish/guestfish.pod:485
18355 msgid ""
18356 "In a future libguestfs we intend to change the default the other way.  Disk "
18357 "images will be opened read-only.  You will have to either specify "
18358 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
18359 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
18360 "access for disk images specified by those other command line options."
18361 msgstr ""
18362
18363 #. type: textblock
18364 #: ../fish/guestfish.pod:492
18365 msgid ""
18366 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
18367 "which does nothing (it is already the default).  However it is highly "
18368 "recommended that you use this option to indicate that you need write access, "
18369 "and prepare your scripts for the day when this option will be required for "
18370 "write access."
18371 msgstr ""
18372
18373 #. type: textblock
18374 #: ../fish/guestfish.pod:498
18375 msgid ""
18376 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
18377 "other libguestfs program apart from guestfish and guestmount."
18378 msgstr ""
18379
18380 #. type: =head1
18381 #: ../fish/guestfish.pod:501
18382 msgid "QUOTING"
18383 msgstr ""
18384
18385 #. type: textblock
18386 #: ../fish/guestfish.pod:503
18387 msgid ""
18388 "You can quote ordinary parameters using either single or double quotes.  For "
18389 "example:"
18390 msgstr ""
18391
18392 #. type: verbatim
18393 #: ../fish/guestfish.pod:506
18394 #, no-wrap
18395 msgid ""
18396 " add \"file with a space.img\"\n"
18397 "\n"
18398 msgstr ""
18399
18400 #. type: verbatim
18401 #: ../fish/guestfish.pod:508
18402 #, no-wrap
18403 msgid ""
18404 " rm '/file name'\n"
18405 "\n"
18406 msgstr ""
18407
18408 #. type: verbatim
18409 #: ../fish/guestfish.pod:510
18410 #, no-wrap
18411 msgid ""
18412 " rm '/\"'\n"
18413 "\n"
18414 msgstr ""
18415
18416 #. type: textblock
18417 #: ../fish/guestfish.pod:512
18418 msgid ""
18419 "A few commands require a list of strings to be passed.  For these, use a "
18420 "whitespace-separated list, enclosed in quotes.  Strings containing "
18421 "whitespace to be passed through must be enclosed in single quotes.  A "
18422 "literal single quote must be escaped with a backslash."
18423 msgstr ""
18424
18425 #. type: verbatim
18426 #: ../fish/guestfish.pod:517
18427 #, no-wrap
18428 msgid ""
18429 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
18430 " command \"/bin/echo 'foo      bar'\"\n"
18431 " command \"/bin/echo \\'foo\\'\"\n"
18432 "\n"
18433 msgstr ""
18434
18435 #. type: =head2
18436 #: ../fish/guestfish.pod:521
18437 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
18438 msgstr ""
18439
18440 #. type: textblock
18441 #: ../fish/guestfish.pod:523
18442 msgid ""
18443 "In double-quoted arguments (only) use backslash to insert special "
18444 "characters:"
18445 msgstr ""
18446
18447 #. type: =item
18448 #: ../fish/guestfish.pod:528
18449 msgid "C<\\a>"
18450 msgstr ""
18451
18452 #. type: textblock
18453 #: ../fish/guestfish.pod:530
18454 msgid "Alert (bell) character."
18455 msgstr ""
18456
18457 #. type: =item
18458 #: ../fish/guestfish.pod:532
18459 msgid "C<\\b>"
18460 msgstr ""
18461
18462 #. type: textblock
18463 #: ../fish/guestfish.pod:534
18464 msgid "Backspace character."
18465 msgstr ""
18466
18467 #. type: =item
18468 #: ../fish/guestfish.pod:536
18469 msgid "C<\\f>"
18470 msgstr ""
18471
18472 #. type: textblock
18473 #: ../fish/guestfish.pod:538
18474 msgid "Form feed character."
18475 msgstr ""
18476
18477 #. type: =item
18478 #: ../fish/guestfish.pod:540
18479 msgid "C<\\n>"
18480 msgstr ""
18481
18482 #. type: textblock
18483 #: ../fish/guestfish.pod:542
18484 msgid "Newline character."
18485 msgstr ""
18486
18487 #. type: =item
18488 #: ../fish/guestfish.pod:544
18489 msgid "C<\\r>"
18490 msgstr ""
18491
18492 #. type: textblock
18493 #: ../fish/guestfish.pod:546
18494 msgid "Carriage return character."
18495 msgstr ""
18496
18497 #. type: =item
18498 #: ../fish/guestfish.pod:548
18499 msgid "C<\\t>"
18500 msgstr ""
18501
18502 #. type: textblock
18503 #: ../fish/guestfish.pod:550
18504 msgid "Horizontal tab character."
18505 msgstr ""
18506
18507 #. type: =item
18508 #: ../fish/guestfish.pod:552
18509 msgid "C<\\v>"
18510 msgstr ""
18511
18512 #. type: textblock
18513 #: ../fish/guestfish.pod:554
18514 msgid "Vertical tab character."
18515 msgstr ""
18516
18517 #. type: =item
18518 #: ../fish/guestfish.pod:556
18519 msgid "C<\\\">"
18520 msgstr ""
18521
18522 #. type: textblock
18523 #: ../fish/guestfish.pod:558
18524 msgid "A literal double quote character."
18525 msgstr ""
18526
18527 #. type: =item
18528 #: ../fish/guestfish.pod:560
18529 msgid "C<\\ooo>"
18530 msgstr ""
18531
18532 #. type: textblock
18533 #: ../fish/guestfish.pod:562
18534 msgid ""
18535 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
18536 "(unlike C)."
18537 msgstr ""
18538
18539 #. type: =item
18540 #: ../fish/guestfish.pod:565
18541 msgid "C<\\xhh>"
18542 msgstr ""
18543
18544 #. type: textblock
18545 #: ../fish/guestfish.pod:567
18546 msgid "A character with hex value I<hh>.  There must be precisely 2 hex digits."
18547 msgstr ""
18548
18549 #. type: textblock
18550 #: ../fish/guestfish.pod:570
18551 msgid ""
18552 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
18553 "strings."
18554 msgstr ""
18555
18556 #. type: =item
18557 #: ../fish/guestfish.pod:573
18558 msgid "C<\\\\>"
18559 msgstr ""
18560
18561 #. type: textblock
18562 #: ../fish/guestfish.pod:575
18563 msgid "A literal backslash character."
18564 msgstr ""
18565
18566 #. type: =head1
18567 #: ../fish/guestfish.pod:579
18568 msgid "OPTIONAL ARGUMENTS"
18569 msgstr ""
18570
18571 #. type: textblock
18572 #: ../fish/guestfish.pod:581
18573 msgid ""
18574 "Some commands take optional arguments.  These arguments appear in this "
18575 "documentation as C<[argname:..]>.  You can use them as in these examples:"
18576 msgstr ""
18577
18578 #. type: verbatim
18579 #: ../fish/guestfish.pod:585
18580 #, no-wrap
18581 msgid ""
18582 " add-drive-opts filename\n"
18583 "\n"
18584 msgstr ""
18585
18586 #. type: verbatim
18587 #: ../fish/guestfish.pod:587
18588 #, no-wrap
18589 msgid ""
18590 " add-drive-opts filename readonly:true\n"
18591 "\n"
18592 msgstr ""
18593
18594 #. type: verbatim
18595 #: ../fish/guestfish.pod:589
18596 #, no-wrap
18597 msgid ""
18598 " add-drive-opts filename format:qcow2 readonly:false\n"
18599 "\n"
18600 msgstr ""
18601
18602 #. type: textblock
18603 #: ../fish/guestfish.pod:591
18604 msgid ""
18605 "Each optional argument can appear at most once.  All optional arguments must "
18606 "appear after the required ones."
18607 msgstr ""
18608
18609 #. type: =head1
18610 #: ../fish/guestfish.pod:594
18611 msgid "NUMBERS"
18612 msgstr ""
18613
18614 #. type: textblock
18615 #: ../fish/guestfish.pod:596
18616 msgid "This section applies to all commands which can take integers as parameters."
18617 msgstr ""
18618
18619 #. type: =head2
18620 #: ../fish/guestfish.pod:599
18621 msgid "SIZE SUFFIX"
18622 msgstr ""
18623
18624 #. type: textblock
18625 #: ../fish/guestfish.pod:601
18626 msgid ""
18627 "When the command takes a parameter measured in bytes, you can use one of the "
18628 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18629 msgstr ""
18630
18631 #. type: =item
18632 #: ../fish/guestfish.pod:607
18633 msgid "B<k> or B<K> or B<KiB>"
18634 msgstr ""
18635
18636 #. type: textblock
18637 #: ../fish/guestfish.pod:609
18638 msgid "The size in kilobytes (multiplied by 1024)."
18639 msgstr ""
18640
18641 #. type: =item
18642 #: ../fish/guestfish.pod:611
18643 msgid "B<KB>"
18644 msgstr ""
18645
18646 #. type: textblock
18647 #: ../fish/guestfish.pod:613
18648 msgid "The size in SI 1000 byte units."
18649 msgstr ""
18650
18651 #. type: =item
18652 #: ../fish/guestfish.pod:615
18653 msgid "B<M> or B<MiB>"
18654 msgstr ""
18655
18656 #. type: textblock
18657 #: ../fish/guestfish.pod:617
18658 msgid "The size in megabytes (multiplied by 1048576)."
18659 msgstr ""
18660
18661 #. type: =item
18662 #: ../fish/guestfish.pod:619
18663 msgid "B<MB>"
18664 msgstr ""
18665
18666 #. type: textblock
18667 #: ../fish/guestfish.pod:621
18668 msgid "The size in SI 1000000 byte units."
18669 msgstr ""
18670
18671 #. type: =item
18672 #: ../fish/guestfish.pod:623
18673 msgid "B<G> or B<GiB>"
18674 msgstr ""
18675
18676 #. type: textblock
18677 #: ../fish/guestfish.pod:625
18678 msgid "The size in gigabytes (multiplied by 2**30)."
18679 msgstr ""
18680
18681 #. type: =item
18682 #: ../fish/guestfish.pod:627
18683 msgid "B<GB>"
18684 msgstr ""
18685
18686 #. type: textblock
18687 #: ../fish/guestfish.pod:629
18688 msgid "The size in SI 10**9 byte units."
18689 msgstr ""
18690
18691 #. type: =item
18692 #: ../fish/guestfish.pod:631
18693 msgid "B<T> or B<TiB>"
18694 msgstr ""
18695
18696 #. type: textblock
18697 #: ../fish/guestfish.pod:633
18698 msgid "The size in terabytes (multiplied by 2**40)."
18699 msgstr ""
18700
18701 #. type: =item
18702 #: ../fish/guestfish.pod:635
18703 msgid "B<TB>"
18704 msgstr ""
18705
18706 #. type: textblock
18707 #: ../fish/guestfish.pod:637
18708 msgid "The size in SI 10**12 byte units."
18709 msgstr ""
18710
18711 #. type: =item
18712 #: ../fish/guestfish.pod:639
18713 msgid "B<P> or B<PiB>"
18714 msgstr ""
18715
18716 #. type: textblock
18717 #: ../fish/guestfish.pod:641
18718 msgid "The size in petabytes (multiplied by 2**50)."
18719 msgstr ""
18720
18721 #. type: =item
18722 #: ../fish/guestfish.pod:643
18723 msgid "B<PB>"
18724 msgstr ""
18725
18726 #. type: textblock
18727 #: ../fish/guestfish.pod:645
18728 msgid "The size in SI 10**15 byte units."
18729 msgstr ""
18730
18731 #. type: =item
18732 #: ../fish/guestfish.pod:647
18733 msgid "B<E> or B<EiB>"
18734 msgstr ""
18735
18736 #. type: textblock
18737 #: ../fish/guestfish.pod:649
18738 msgid "The size in exabytes (multiplied by 2**60)."
18739 msgstr ""
18740
18741 #. type: =item
18742 #: ../fish/guestfish.pod:651
18743 msgid "B<EB>"
18744 msgstr ""
18745
18746 #. type: textblock
18747 #: ../fish/guestfish.pod:653
18748 msgid "The size in SI 10**18 byte units."
18749 msgstr ""
18750
18751 #. type: =item
18752 #: ../fish/guestfish.pod:655
18753 msgid "B<Z> or B<ZiB>"
18754 msgstr ""
18755
18756 #. type: textblock
18757 #: ../fish/guestfish.pod:657
18758 msgid "The size in zettabytes (multiplied by 2**70)."
18759 msgstr ""
18760
18761 #. type: =item
18762 #: ../fish/guestfish.pod:659
18763 msgid "B<ZB>"
18764 msgstr ""
18765
18766 #. type: textblock
18767 #: ../fish/guestfish.pod:661
18768 msgid "The size in SI 10**21 byte units."
18769 msgstr ""
18770
18771 #. type: =item
18772 #: ../fish/guestfish.pod:663
18773 msgid "B<Y> or B<YiB>"
18774 msgstr ""
18775
18776 #. type: textblock
18777 #: ../fish/guestfish.pod:665
18778 msgid "The size in yottabytes (multiplied by 2**80)."
18779 msgstr ""
18780
18781 #. type: =item
18782 #: ../fish/guestfish.pod:667
18783 msgid "B<YB>"
18784 msgstr ""
18785
18786 #. type: textblock
18787 #: ../fish/guestfish.pod:669
18788 msgid "The size in SI 10**24 byte units."
18789 msgstr ""
18790
18791 #. type: verbatim
18792 #: ../fish/guestfish.pod:675
18793 #, no-wrap
18794 msgid ""
18795 " truncate-size /file 1G\n"
18796 "\n"
18797 msgstr ""
18798
18799 #. type: textblock
18800 #: ../fish/guestfish.pod:677
18801 msgid "would truncate the file to 1 gigabyte."
18802 msgstr ""
18803
18804 #. type: textblock
18805 #: ../fish/guestfish.pod:679
18806 msgid ""
18807 "Be careful because a few commands take sizes in kilobytes or megabytes "
18808 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
18809 "Adding a suffix will probably not do what you expect."
18810 msgstr ""
18811
18812 #. type: =head2
18813 #: ../fish/guestfish.pod:683
18814 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18815 msgstr ""
18816
18817 #. type: textblock
18818 #: ../fish/guestfish.pod:685
18819 msgid ""
18820 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18821 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18822 msgstr ""
18823
18824 #. type: verbatim
18825 #: ../fish/guestfish.pod:688
18826 #, no-wrap
18827 msgid ""
18828 " 1234      decimal number 1234\n"
18829 " 02322     octal number, equivalent to decimal 1234\n"
18830 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18831 "\n"
18832 msgstr ""
18833
18834 #. type: textblock
18835 #: ../fish/guestfish.pod:692
18836 msgid ""
18837 "When using the C<chmod> command, you almost always want to specify an octal "
18838 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18839 "L<chmod(1)> program):"
18840 msgstr ""
18841
18842 #. type: verbatim
18843 #: ../fish/guestfish.pod:696
18844 #, no-wrap
18845 msgid ""
18846 " chmod 0777 /public  # OK\n"
18847 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18848 "\n"
18849 msgstr ""
18850
18851 #. type: textblock
18852 #: ../fish/guestfish.pod:699
18853 msgid ""
18854 "Commands that return numbers usually print them in decimal, but some "
18855 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18856 "octal, preceeded by C<0>)."
18857 msgstr ""
18858
18859 #. type: =head1
18860 #: ../fish/guestfish.pod:703
18861 msgid "WILDCARDS AND GLOBBING"
18862 msgstr ""
18863
18864 #. type: textblock
18865 #: ../fish/guestfish.pod:705
18866 msgid ""
18867 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18868 "(globbing) by default.  So for example the following will not do what you "
18869 "expect:"
18870 msgstr ""
18871
18872 #. type: verbatim
18873 #: ../fish/guestfish.pod:709
18874 #, no-wrap
18875 msgid ""
18876 " rm-rf /home/*\n"
18877 "\n"
18878 msgstr ""
18879
18880 #. type: textblock
18881 #: ../fish/guestfish.pod:711
18882 msgid ""
18883 "Assuming you don't have a directory called literally C</home/*> then the "
18884 "above command will return an error."
18885 msgstr ""
18886
18887 #. type: textblock
18888 #: ../fish/guestfish.pod:714
18889 msgid "To perform wildcard expansion, use the C<glob> command."
18890 msgstr ""
18891
18892 #. type: verbatim
18893 #: ../fish/guestfish.pod:716
18894 #, no-wrap
18895 msgid ""
18896 " glob rm-rf /home/*\n"
18897 "\n"
18898 msgstr ""
18899
18900 #. type: textblock
18901 #: ../fish/guestfish.pod:718
18902 msgid ""
18903 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18904 "many times), equivalent to:"
18905 msgstr ""
18906
18907 #. type: verbatim
18908 #: ../fish/guestfish.pod:721
18909 #, no-wrap
18910 msgid ""
18911 " rm-rf /home/jim\n"
18912 " rm-rf /home/joe\n"
18913 " rm-rf /home/mary\n"
18914 "\n"
18915 msgstr ""
18916
18917 #. type: textblock
18918 #: ../fish/guestfish.pod:725
18919 msgid "C<glob> only works on simple guest paths and not on device names."
18920 msgstr ""
18921
18922 #. type: textblock
18923 #: ../fish/guestfish.pod:727
18924 msgid ""
18925 "If you have several parameters, each containing a wildcard, then glob will "
18926 "perform a Cartesian product."
18927 msgstr ""
18928
18929 #. type: =head1
18930 #: ../fish/guestfish.pod:730
18931 msgid "COMMENTS"
18932 msgstr ""
18933
18934 #. type: textblock
18935 #: ../fish/guestfish.pod:732
18936 msgid ""
18937 "Any line which starts with a I<#> character is treated as a comment and "
18938 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18939 "a command.  For example:"
18940 msgstr ""
18941
18942 #. type: verbatim
18943 #: ../fish/guestfish.pod:736
18944 #, no-wrap
18945 msgid ""
18946 " # this is a comment\n"
18947 "         # this is a comment\n"
18948 " foo # NOT a comment\n"
18949 "\n"
18950 msgstr ""
18951
18952 #. type: textblock
18953 #: ../fish/guestfish.pod:740
18954 msgid "Blank lines are also ignored."
18955 msgstr ""
18956
18957 #. type: =head1
18958 #: ../fish/guestfish.pod:742
18959 msgid "RUNNING COMMANDS LOCALLY"
18960 msgstr ""
18961
18962 #. type: textblock
18963 #: ../fish/guestfish.pod:744
18964 msgid ""
18965 "Any line which starts with a I<!> character is treated as a command sent to "
18966 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18967 msgstr ""
18968
18969 #. type: verbatim
18970 #: ../fish/guestfish.pod:748
18971 #, no-wrap
18972 msgid ""
18973 " !mkdir local\n"
18974 " tgz-out /remote local/remote-data.tar.gz\n"
18975 "\n"
18976 msgstr ""
18977
18978 #. type: textblock
18979 #: ../fish/guestfish.pod:751
18980 msgid ""
18981 "will create a directory C<local> on the host, and then export the contents "
18982 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18983 "(See C<tgz-out>)."
18984 msgstr ""
18985
18986 #. type: textblock
18987 #: ../fish/guestfish.pod:755
18988 msgid ""
18989 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18990 "effect, due to the way that subprocesses work in Unix."
18991 msgstr ""
18992
18993 #. type: =head2
18994 #: ../fish/guestfish.pod:758
18995 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
18996 msgstr ""
18997
18998 #. type: textblock
18999 #: ../fish/guestfish.pod:760
19000 msgid ""
19001 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
19002 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
19003 "and executed as guestfish commands."
19004 msgstr ""
19005
19006 #. type: textblock
19007 #: ../fish/guestfish.pod:764
19008 msgid ""
19009 "Thus you can use shell script to construct arbitrary guestfish commands "
19010 "which are then parsed by guestfish."
19011 msgstr ""
19012
19013 #. type: textblock
19014 #: ../fish/guestfish.pod:767
19015 msgid ""
19016 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
19017 "through C</foo.100>) using guestfish commands alone.  However this is simple "
19018 "if we use a shell script to create the guestfish commands for us:"
19019 msgstr ""
19020
19021 #. type: verbatim
19022 #: ../fish/guestfish.pod:772
19023 #, no-wrap
19024 msgid ""
19025 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
19026 "\n"
19027 msgstr ""
19028
19029 #. type: textblock
19030 #: ../fish/guestfish.pod:774
19031 msgid "or with names like C</foo.001>:"
19032 msgstr ""
19033
19034 #. type: verbatim
19035 #: ../fish/guestfish.pod:776
19036 #, no-wrap
19037 msgid ""
19038 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
19039 "\n"
19040 msgstr ""
19041
19042 #. type: textblock
19043 #: ../fish/guestfish.pod:778
19044 msgid ""
19045 "When using guestfish interactively it can be helpful to just run the shell "
19046 "script first (ie. remove the initial C<E<lt>> character so it is just an "
19047 "ordinary I<!> local command), see what guestfish commands it would run, and "
19048 "when you are happy with those prepend the C<E<lt>> character to run the "
19049 "guestfish commands for real."
19050 msgstr ""
19051
19052 #. type: =head1
19053 #: ../fish/guestfish.pod:784
19054 msgid "PIPES"
19055 msgstr ""
19056
19057 #. type: textblock
19058 #: ../fish/guestfish.pod:786
19059 msgid ""
19060 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
19061 "command (a guestfish command) to the second command (any host command).  For "
19062 "example:"
19063 msgstr ""
19064
19065 #. type: verbatim
19066 #: ../fish/guestfish.pod:790
19067 #, no-wrap
19068 msgid ""
19069 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
19070 "\n"
19071 msgstr ""
19072
19073 #. type: textblock
19074 #: ../fish/guestfish.pod:792
19075 msgid ""
19076 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
19077 "program).  The above command would list all accounts in the guest filesystem "
19078 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
19079 msgstr ""
19080
19081 #. type: verbatim
19082 #: ../fish/guestfish.pod:797
19083 #, no-wrap
19084 msgid ""
19085 " hexdump /bin/ls | head\n"
19086 " list-devices | tail -1\n"
19087 " tgz-out / - | tar ztf -\n"
19088 "\n"
19089 msgstr ""
19090
19091 #. type: textblock
19092 #: ../fish/guestfish.pod:801
19093 msgid ""
19094 "The space before the pipe symbol is required, any space after the pipe "
19095 "symbol is optional.  Everything after the pipe symbol is just passed "
19096 "straight to the host shell, so it can contain redirections, globs and "
19097 "anything else that makes sense on the host side."
19098 msgstr ""
19099
19100 #. type: textblock
19101 #: ../fish/guestfish.pod:806
19102 msgid ""
19103 "To use a literal argument which begins with a pipe symbol, you have to quote "
19104 "it, eg:"
19105 msgstr ""
19106
19107 #. type: verbatim
19108 #: ../fish/guestfish.pod:809
19109 #, no-wrap
19110 msgid ""
19111 " echo \"|\"\n"
19112 "\n"
19113 msgstr ""
19114
19115 #. type: =head1
19116 #: ../fish/guestfish.pod:811
19117 msgid "HOME DIRECTORIES"
19118 msgstr ""
19119
19120 #. type: textblock
19121 #: ../fish/guestfish.pod:813
19122 msgid ""
19123 "If a parameter starts with the character C<~> then the tilde may be expanded "
19124 "as a home directory path (either C<~> for the current user's home directory, "
19125 "or C<~user> for another user)."
19126 msgstr ""
19127
19128 #. type: textblock
19129 #: ../fish/guestfish.pod:817
19130 msgid ""
19131 "Note that home directory expansion happens for users known I<on the host>, "
19132 "not in the guest filesystem."
19133 msgstr ""
19134
19135 #. type: textblock
19136 #: ../fish/guestfish.pod:820
19137 msgid ""
19138 "To use a literal argument which begins with a tilde, you have to quote it, "
19139 "eg:"
19140 msgstr ""
19141
19142 #. type: verbatim
19143 #: ../fish/guestfish.pod:823
19144 #, no-wrap
19145 msgid ""
19146 " echo \"~\"\n"
19147 "\n"
19148 msgstr ""
19149
19150 #. type: =head2
19151 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
19152 msgid "ENCRYPTED DISKS"
19153 msgstr ""
19154
19155 #. type: textblock
19156 #: ../fish/guestfish.pod:827
19157 msgid ""
19158 "Libguestfs has some support for Linux guests encrypted according to the "
19159 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
19160 "disk encryption systems used by modern Linux guests.  Currently only "
19161 "LVM-on-LUKS is supported."
19162 msgstr ""
19163
19164 #. type: textblock
19165 #: ../fish/guestfish.pod:832
19166 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
19167 msgstr ""
19168
19169 #. type: verbatim
19170 #: ../fish/guestfish.pod:834
19171 #, no-wrap
19172 msgid ""
19173 " ><fs> vfs-type /dev/sda2\n"
19174 " crypto_LUKS\n"
19175 "\n"
19176 msgstr ""
19177
19178 #. type: textblock
19179 #: ../fish/guestfish.pod:837
19180 msgid ""
19181 "Then open those devices using L</luks-open>.  This creates a device-mapper "
19182 "device called C</dev/mapper/luksdev>."
19183 msgstr ""
19184
19185 #. type: verbatim
19186 #: ../fish/guestfish.pod:840
19187 #, no-wrap
19188 msgid ""
19189 " ><fs> luks-open /dev/sda2 luksdev\n"
19190 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
19191 "\n"
19192 msgstr ""
19193
19194 #. type: textblock
19195 #: ../fish/guestfish.pod:843
19196 msgid ""
19197 "Finally you have to tell LVM to scan for volume groups on the newly created "
19198 "mapper device:"
19199 msgstr ""
19200
19201 #. type: verbatim
19202 #: ../fish/guestfish.pod:846
19203 #, no-wrap
19204 msgid ""
19205 " vgscan\n"
19206 " vg-activate-all true\n"
19207 "\n"
19208 msgstr ""
19209
19210 #. type: textblock
19211 #: ../fish/guestfish.pod:849
19212 msgid "The logical volume(s) can now be mounted in the usual way."
19213 msgstr ""
19214
19215 #. type: textblock
19216 #: ../fish/guestfish.pod:851
19217 msgid ""
19218 "Before closing a LUKS device you must unmount any logical volumes on it and "
19219 "deactivate the volume groups by calling C<vg-activate false VG> on each "
19220 "one.  Then you can close the mapper device:"
19221 msgstr ""
19222
19223 #. type: verbatim
19224 #: ../fish/guestfish.pod:855
19225 #, no-wrap
19226 msgid ""
19227 " vg-activate false /dev/VG\n"
19228 " luks-close /dev/mapper/luksdev\n"
19229 "\n"
19230 msgstr ""
19231
19232 #. type: textblock
19233 #: ../fish/guestfish.pod:860
19234 msgid ""
19235 "If a path is prefixed with C<win:> then you can use Windows-style drive "
19236 "letters and paths (with some limitations).  The following commands are "
19237 "equivalent:"
19238 msgstr ""
19239
19240 #. type: verbatim
19241 #: ../fish/guestfish.pod:864
19242 #, no-wrap
19243 msgid ""
19244 " file /WINDOWS/system32/config/system.LOG\n"
19245 "\n"
19246 msgstr ""
19247
19248 #. type: verbatim
19249 #: ../fish/guestfish.pod:866
19250 #, no-wrap
19251 msgid ""
19252 " file win:\\windows\\system32\\config\\system.log\n"
19253 "\n"
19254 msgstr ""
19255
19256 #. type: verbatim
19257 #: ../fish/guestfish.pod:868
19258 #, no-wrap
19259 msgid ""
19260 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
19261 "\n"
19262 msgstr ""
19263
19264 #. type: textblock
19265 #: ../fish/guestfish.pod:870
19266 msgid ""
19267 "The parameter is rewritten \"behind the scenes\" by looking up the position "
19268 "where the drive is mounted, prepending that to the path, changing all "
19269 "backslash characters to forward slash, then resolving the result using "
19270 "L</case-sensitive-path>.  For example if the E: drive was mounted on C</e> "
19271 "then the parameter might be rewritten like this:"
19272 msgstr ""
19273
19274 #. type: verbatim
19275 #: ../fish/guestfish.pod:876
19276 #, no-wrap
19277 msgid ""
19278 " win:e:\\foo\\bar => /e/FOO/bar\n"
19279 "\n"
19280 msgstr ""
19281
19282 #. type: textblock
19283 #: ../fish/guestfish.pod:878
19284 msgid "This only works in argument positions that expect a path."
19285 msgstr ""
19286
19287 #. type: =head1
19288 #: ../fish/guestfish.pod:880
19289 msgid "UPLOADING AND DOWNLOADING FILES"
19290 msgstr ""
19291
19292 #. type: textblock
19293 #: ../fish/guestfish.pod:882
19294 msgid ""
19295 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
19296 "others which upload from or download to a local file, you can use the "
19297 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
19298 msgstr ""
19299
19300 #. type: verbatim
19301 #: ../fish/guestfish.pod:886
19302 #, no-wrap
19303 msgid ""
19304 " upload - /foo\n"
19305 "\n"
19306 msgstr ""
19307
19308 #. type: textblock
19309 #: ../fish/guestfish.pod:888
19310 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
19311 msgstr ""
19312
19313 #. type: verbatim
19314 #: ../fish/guestfish.pod:891
19315 #, no-wrap
19316 msgid ""
19317 " tar-out /etc - | tar tf -\n"
19318 "\n"
19319 msgstr ""
19320
19321 #. type: textblock
19322 #: ../fish/guestfish.pod:893
19323 msgid ""
19324 "writes the tarball to stdout and then pipes that into the external \"tar\" "
19325 "command (see L</PIPES>)."
19326 msgstr ""
19327
19328 #. type: textblock
19329 #: ../fish/guestfish.pod:896
19330 msgid ""
19331 "When using C<-> to read from stdin, the input is read up to the end of "
19332 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
19333 "some arbitrary end marker:"
19334 msgstr ""
19335
19336 #. type: verbatim
19337 #: ../fish/guestfish.pod:900
19338 #, no-wrap
19339 msgid ""
19340 " upload -<<END /foo\n"
19341 " input line 1\n"
19342 " input line 2\n"
19343 " input line 3\n"
19344 " END\n"
19345 "\n"
19346 msgstr ""
19347
19348 #. type: textblock
19349 #: ../fish/guestfish.pod:906
19350 msgid ""
19351 "Any string of characters can be used instead of C<END>.  The end marker must "
19352 "appear on a line of its own, without any preceeding or following characters "
19353 "(not even spaces)."
19354 msgstr ""
19355
19356 #. type: textblock
19357 #: ../fish/guestfish.pod:910
19358 msgid ""
19359 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
19360 "upload local files (so-called \"FileIn\" parameters in the generator)."
19361 msgstr ""
19362
19363 #. type: =head1
19364 #: ../fish/guestfish.pod:913
19365 msgid "EXIT ON ERROR BEHAVIOUR"
19366 msgstr ""
19367
19368 #. type: textblock
19369 #: ../fish/guestfish.pod:915
19370 msgid ""
19371 "By default, guestfish will ignore any errors when in interactive mode "
19372 "(ie. taking commands from a human over a tty), and will exit on the first "
19373 "error in non-interactive mode (scripts, commands given on the command line)."
19374 msgstr ""
19375
19376 #. type: textblock
19377 #: ../fish/guestfish.pod:920
19378 msgid ""
19379 "If you prefix a command with a I<-> character, then that command will not "
19380 "cause guestfish to exit, even if that (one) command returns an error."
19381 msgstr ""
19382
19383 #. type: =head1
19384 #: ../fish/guestfish.pod:924
19385 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
19386 msgstr ""
19387
19388 #. type: textblock
19389 #: ../fish/guestfish.pod:926
19390 msgid ""
19391 "Guestfish can be remote-controlled over a socket.  This is useful "
19392 "particularly in shell scripts where you want to make several different "
19393 "changes to a filesystem, but you don't want the overhead of starting up a "
19394 "guestfish process each time."
19395 msgstr ""
19396
19397 #. type: textblock
19398 #: ../fish/guestfish.pod:931
19399 msgid "Start a guestfish server process using:"
19400 msgstr ""
19401
19402 #. type: verbatim
19403 #: ../fish/guestfish.pod:933
19404 #, no-wrap
19405 msgid ""
19406 " eval \"`guestfish --listen`\"\n"
19407 "\n"
19408 msgstr ""
19409
19410 #. type: textblock
19411 #: ../fish/guestfish.pod:935
19412 msgid "and then send it commands by doing:"
19413 msgstr ""
19414
19415 #. type: verbatim
19416 #: ../fish/guestfish.pod:937
19417 #, no-wrap
19418 msgid ""
19419 " guestfish --remote cmd [...]\n"
19420 "\n"
19421 msgstr ""
19422
19423 #. type: textblock
19424 #: ../fish/guestfish.pod:939
19425 msgid "To cause the server to exit, send it the exit command:"
19426 msgstr ""
19427
19428 #. type: textblock
19429 #: ../fish/guestfish.pod:943
19430 msgid ""
19431 "Note that the server will normally exit if there is an error in a command.  "
19432 "You can change this in the usual way.  See section L</EXIT ON ERROR "
19433 "BEHAVIOUR>."
19434 msgstr ""
19435
19436 #. type: =head2
19437 #: ../fish/guestfish.pod:947
19438 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
19439 msgstr ""
19440
19441 #. type: textblock
19442 #: ../fish/guestfish.pod:949
19443 msgid ""
19444 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
19445 "is how the I<--remote> option knows where to send the commands.  You can "
19446 "have several guestfish listener processes running using:"
19447 msgstr ""
19448
19449 #. type: verbatim
19450 #: ../fish/guestfish.pod:953
19451 #, no-wrap
19452 msgid ""
19453 " eval \"`guestfish --listen`\"\n"
19454 " pid1=$GUESTFISH_PID\n"
19455 " eval \"`guestfish --listen`\"\n"
19456 " pid2=$GUESTFISH_PID\n"
19457 " ...\n"
19458 " guestfish --remote=$pid1 cmd\n"
19459 " guestfish --remote=$pid2 cmd\n"
19460 "\n"
19461 msgstr ""
19462
19463 #. type: =head2
19464 #: ../fish/guestfish.pod:961
19465 msgid "REMOTE CONTROL AND CSH"
19466 msgstr ""
19467
19468 #. type: textblock
19469 #: ../fish/guestfish.pod:963
19470 msgid ""
19471 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
19472 "option:"
19473 msgstr ""
19474
19475 #. type: verbatim
19476 #: ../fish/guestfish.pod:966
19477 #, no-wrap
19478 msgid ""
19479 " eval \"`guestfish --listen --csh`\"\n"
19480 "\n"
19481 msgstr ""
19482
19483 #. type: =head2
19484 #: ../fish/guestfish.pod:968
19485 msgid "REMOTE CONTROL DETAILS"
19486 msgstr ""
19487
19488 #. type: textblock
19489 #: ../fish/guestfish.pod:970
19490 msgid ""
19491 "Remote control happens over a Unix domain socket called "
19492 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
19493 "of the process, and C<$PID> is the process ID of the server."
19494 msgstr ""
19495
19496 #. type: textblock
19497 #: ../fish/guestfish.pod:974
19498 msgid "Guestfish client and server versions must match exactly."
19499 msgstr ""
19500
19501 #. type: =head2
19502 #: ../fish/guestfish.pod:976
19503 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
19504 msgstr ""
19505
19506 #. type: textblock
19507 #: ../fish/guestfish.pod:978
19508 msgid ""
19509 "From Bash, you can use the following code which creates a guestfish "
19510 "instance, correctly quotes the command line, handles failure to start, and "
19511 "cleans up guestfish when the script exits:"
19512 msgstr ""
19513
19514 #. type: verbatim
19515 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
19516 #, no-wrap
19517 msgid ""
19518 " #!/bin/bash -\n"
19519 " \n"
19520 msgstr ""
19521
19522 #. type: verbatim
19523 #: ../fish/guestfish.pod:986
19524 #, no-wrap
19525 msgid ""
19526 " guestfish[0]=\"guestfish\"\n"
19527 " guestfish[1]=\"--listen\"\n"
19528 " guestfish[2]=\"--ro\"\n"
19529 " guestfish[3]=\"-a\"\n"
19530 " guestfish[4]=\"disk.img\"\n"
19531 " \n"
19532 msgstr ""
19533
19534 #. type: verbatim
19535 #: ../fish/guestfish.pod:992
19536 #, no-wrap
19537 msgid ""
19538 " GUESTFISH_PID=\n"
19539 " eval $(\"${guestfish[@]}\")\n"
19540 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
19541 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
19542 "     exit 1\n"
19543 " fi\n"
19544 " \n"
19545 msgstr ""
19546
19547 #. type: verbatim
19548 #: ../fish/guestfish.pod:999
19549 #, no-wrap
19550 msgid ""
19551 " cleanup_guestfish ()\n"
19552 " {\n"
19553 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
19554 " }\n"
19555 " trap cleanup_guestfish EXIT ERR\n"
19556 " \n"
19557 msgstr ""
19558
19559 #. type: verbatim
19560 #: ../fish/guestfish.pod:1005
19561 #, no-wrap
19562 msgid ""
19563 " guestfish --remote -- run\n"
19564 " \n"
19565 msgstr ""
19566
19567 #. type: verbatim
19568 #: ../fish/guestfish.pod:1007
19569 #, no-wrap
19570 msgid ""
19571 " # ...\n"
19572 "\n"
19573 msgstr ""
19574
19575 #. type: =head2
19576 #: ../fish/guestfish.pod:1009
19577 msgid "REMOTE CONTROL RUN COMMAND HANGING"
19578 msgstr ""
19579
19580 #. type: textblock
19581 #: ../fish/guestfish.pod:1011
19582 msgid ""
19583 "Using the C<run> (or C<launch>) command remotely in a command substitution "
19584 "context hangs, ie. don't do (note the backquotes):"
19585 msgstr ""
19586
19587 #. type: verbatim
19588 #: ../fish/guestfish.pod:1014
19589 #, no-wrap
19590 msgid ""
19591 " a=`guestfish --remote run`\n"
19592 "\n"
19593 msgstr ""
19594
19595 #. type: textblock
19596 #: ../fish/guestfish.pod:1016
19597 msgid ""
19598 "Since the C<run> command produces no output on stdout, this is not useful "
19599 "anyway.  For further information see "
19600 "L<https://bugzilla.redhat.com/show_bug.cgi?id=592910>."
19601 msgstr ""
19602
19603 #. type: =head1
19604 #: ../fish/guestfish.pod:1020
19605 msgid "PREPARED DISK IMAGES"
19606 msgstr ""
19607
19608 #. type: textblock
19609 #: ../fish/guestfish.pod:1022
19610 msgid ""
19611 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
19612 "preformatted disk images that guestfish can make for you to save typing.  "
19613 "This is particularly useful for testing purposes.  This option is used "
19614 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
19615 "can be mixed with I<-a>)."
19616 msgstr ""
19617
19618 #. type: textblock
19619 #: ../fish/guestfish.pod:1028
19620 msgid ""
19621 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19622 "the second and so on.  Existing files in the current directory are "
19623 "I<overwritten>."
19624 msgstr ""
19625
19626 #. type: textblock
19627 #: ../fish/guestfish.pod:1032
19628 msgid ""
19629 "The type briefly describes how the disk should be sized, partitioned, how "
19630 "filesystem(s) should be created, and how content should be added.  "
19631 "Optionally the type can be followed by extra parameters, separated by C<:> "
19632 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
19633 "sparsely-allocated disk, containing a single partition, with the partition "
19634 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
19635 "on a 1GB disk instead."
19636 msgstr ""
19637
19638 #. type: textblock
19639 #: ../fish/guestfish.pod:1040
19640 msgid "To list the available types and any extra parameters they take, run:"
19641 msgstr ""
19642
19643 #. type: textblock
19644 #: ../fish/guestfish.pod:1044
19645 msgid ""
19646 "Note that the prepared filesystem is not mounted.  You would usually have to "
19647 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
19648 msgstr ""
19649
19650 #. type: textblock
19651 #: ../fish/guestfish.pod:1048
19652 msgid ""
19653 "If any I<-N> or I<--new> options are given, the guest is automatically "
19654 "launched."
19655 msgstr ""
19656
19657 #. type: textblock
19658 #: ../fish/guestfish.pod:1053
19659 msgid "Create a 100MB disk with an ext4-formatted partition:"
19660 msgstr ""
19661
19662 #. type: verbatim
19663 #: ../fish/guestfish.pod:1055
19664 #, no-wrap
19665 msgid ""
19666 " guestfish -N fs:ext4\n"
19667 "\n"
19668 msgstr ""
19669
19670 #. type: textblock
19671 #: ../fish/guestfish.pod:1057
19672 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19673 msgstr ""
19674
19675 #. type: verbatim
19676 #: ../fish/guestfish.pod:1059
19677 #, no-wrap
19678 msgid ""
19679 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19680 "\n"
19681 msgstr ""
19682
19683 #. type: textblock
19684 #: ../fish/guestfish.pod:1061
19685 msgid "Create a blank 200MB disk:"
19686 msgstr ""
19687
19688 #. type: verbatim
19689 #: ../fish/guestfish.pod:1063
19690 #, no-wrap
19691 msgid ""
19692 " guestfish -N disk:200M\n"
19693 "\n"
19694 msgstr ""
19695
19696 #. type: =head1
19697 #: ../fish/guestfish.pod:1065
19698 msgid "PROGRESS BARS"
19699 msgstr ""
19700
19701 #. type: textblock
19702 #: ../fish/guestfish.pod:1067
19703 msgid ""
19704 "Some (not all) long-running commands send progress notification messages as "
19705 "they are running.  Guestfish turns these messages into progress bars."
19706 msgstr ""
19707
19708 #. type: textblock
19709 #: ../fish/guestfish.pod:1071
19710 msgid ""
19711 "When a command that supports progress bars takes longer than two seconds to "
19712 "run, and if progress bars are enabled, then you will see one appearing below "
19713 "the command:"
19714 msgstr ""
19715
19716 #. type: verbatim
19717 #: ../fish/guestfish.pod:1075
19718 #, no-wrap
19719 msgid ""
19720 " ><fs> copy-size /large-file /another-file 2048M\n"
19721 " / 10% [#####-----------------------------------------] 00:30\n"
19722 "\n"
19723 msgstr ""
19724
19725 #. type: textblock
19726 #: ../fish/guestfish.pod:1078
19727 msgid ""
19728 "The spinner on the left hand side moves round once for every progress "
19729 "notification received from the backend.  This is a (reasonably) golden "
19730 "assurance that the command is \"doing something\" even if the progress bar "
19731 "is not moving, because the command is able to send the progress "
19732 "notifications.  When the bar reaches 100% and the command finishes, the "
19733 "spinner disappears."
19734 msgstr ""
19735
19736 #. type: textblock
19737 #: ../fish/guestfish.pod:1085
19738 msgid ""
19739 "Progress bars are enabled by default when guestfish is used interactively.  "
19740 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19741 "and you can disable them completely using I<--no-progress-bars>."
19742 msgstr ""
19743
19744 #. type: =head1
19745 #: ../fish/guestfish.pod:1090
19746 msgid "GUESTFISH COMMANDS"
19747 msgstr ""
19748
19749 #. type: textblock
19750 #: ../fish/guestfish.pod:1092
19751 msgid ""
19752 "The commands in this section are guestfish convenience commands, in other "
19753 "words, they are not part of the L<guestfs(3)> API."
19754 msgstr ""
19755
19756 #. type: =head2
19757 #: ../fish/guestfish.pod:1095
19758 msgid "help"
19759 msgstr ""
19760
19761 #. type: verbatim
19762 #: ../fish/guestfish.pod:1097
19763 #, no-wrap
19764 msgid ""
19765 " help\n"
19766 " help cmd\n"
19767 "\n"
19768 msgstr ""
19769
19770 #. type: textblock
19771 #: ../fish/guestfish.pod:1100
19772 msgid "Without any parameter, this provides general help."
19773 msgstr ""
19774
19775 #. type: textblock
19776 #: ../fish/guestfish.pod:1102
19777 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19778 msgstr ""
19779
19780 #. type: =head2
19781 #: ../fish/guestfish.pod:1104
19782 msgid "quit | exit"
19783 msgstr ""
19784
19785 #. type: textblock
19786 #: ../fish/guestfish.pod:1106
19787 msgid "This exits guestfish.  You can also use C<^D> key."
19788 msgstr ""
19789
19790 #. type: textblock
19791 #: ../fish/guestfish.pod:1108
19792 msgid "@FISH_COMMANDS@"
19793 msgstr ""
19794
19795 #. type: =head1
19796 #: ../fish/guestfish.pod:1110
19797 msgid "COMMANDS"
19798 msgstr ""
19799
19800 #. type: textblock
19801 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
19802 msgid "@ACTIONS@"
19803 msgstr ""
19804
19805 #. type: textblock
19806 #: ../fish/guestfish.pod:1116
19807 msgid ""
19808 "guestfish returns 0 if the commands completed without error, or 1 if there "
19809 "was an error."
19810 msgstr ""
19811
19812 #. type: =item
19813 #: ../fish/guestfish.pod:1123
19814 msgid "EDITOR"
19815 msgstr ""
19816
19817 #. type: textblock
19818 #: ../fish/guestfish.pod:1125
19819 msgid ""
19820 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
19821 "C<vi>."
19822 msgstr ""
19823
19824 #. type: =item
19825 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3213
19826 msgid "FEBOOTSTRAP_KERNEL"
19827 msgstr ""
19828
19829 #. type: =item
19830 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3215
19831 msgid "FEBOOTSTRAP_MODULES"
19832 msgstr ""
19833
19834 #. type: textblock
19835 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3217
19836 msgid ""
19837 "These two environment variables allow the kernel that libguestfs uses in the "
19838 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
19839 "most recent host kernel is chosen.  For more information about kernel "
19840 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
19841 "available in febootstrap E<ge> 3.8."
19842 msgstr ""
19843
19844 #. type: =item
19845 #: ../fish/guestfish.pod:1138
19846 msgid "GUESTFISH_DISPLAY_IMAGE"
19847 msgstr ""
19848
19849 #. type: textblock
19850 #: ../fish/guestfish.pod:1140
19851 msgid ""
19852 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
19853 "If not set, it uses L<display(1)>."
19854 msgstr ""
19855
19856 #. type: =item
19857 #: ../fish/guestfish.pod:1143
19858 msgid "GUESTFISH_PID"
19859 msgstr ""
19860
19861 #. type: textblock
19862 #: ../fish/guestfish.pod:1145
19863 msgid ""
19864 "Used with the I<--remote> option to specify the remote guestfish process to "
19865 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19866 msgstr ""
19867
19868 #. type: =item
19869 #: ../fish/guestfish.pod:1149
19870 msgid "HEXEDITOR"
19871 msgstr ""
19872
19873 #. type: textblock
19874 #: ../fish/guestfish.pod:1151
19875 msgid ""
19876 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
19877 "not specified, the external L<hexedit(1)> program is used."
19878 msgstr ""
19879
19880 #. type: =item
19881 #: ../fish/guestfish.pod:1155
19882 msgid "HOME"
19883 msgstr ""
19884
19885 #. type: textblock
19886 #: ../fish/guestfish.pod:1157
19887 msgid ""
19888 "If compiled with GNU readline support, various files in the home directory "
19889 "can be used.  See L</FILES>."
19890 msgstr ""
19891
19892 #. type: =item
19893 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3223
19894 msgid "LIBGUESTFS_APPEND"
19895 msgstr ""
19896
19897 #. type: textblock
19898 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3225
19899 msgid "Pass additional options to the guest kernel."
19900 msgstr ""
19901
19902 #. type: =item
19903 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3227
19904 msgid "LIBGUESTFS_DEBUG"
19905 msgstr ""
19906
19907 #. type: textblock
19908 #: ../fish/guestfish.pod:1166
19909 msgid ""
19910 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
19911 "effect as using the B<-v> option."
19912 msgstr ""
19913
19914 #. type: =item
19915 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3232
19916 msgid "LIBGUESTFS_MEMSIZE"
19917 msgstr ""
19918
19919 #. type: textblock
19920 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3234
19921 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
19922 msgstr ""
19923
19924 #. type: verbatim
19925 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3237
19926 #, no-wrap
19927 msgid ""
19928 " LIBGUESTFS_MEMSIZE=700\n"
19929 "\n"
19930 msgstr ""
19931
19932 #. type: =item
19933 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3239
19934 msgid "LIBGUESTFS_PATH"
19935 msgstr ""
19936
19937 #. type: textblock
19938 #: ../fish/guestfish.pod:1178
19939 msgid ""
19940 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
19941 "the discussion of paths in L<guestfs(3)>."
19942 msgstr ""
19943
19944 #. type: =item
19945 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3244
19946 msgid "LIBGUESTFS_QEMU"
19947 msgstr ""
19948
19949 #. type: textblock
19950 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3246
19951 msgid ""
19952 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
19953 "which was found at compile time by the configure script is used."
19954 msgstr ""
19955
19956 #. type: =item
19957 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3252
19958 msgid "LIBGUESTFS_TRACE"
19959 msgstr ""
19960
19961 #. type: textblock
19962 #: ../fish/guestfish.pod:1189
19963 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19964 msgstr ""
19965
19966 #. type: =item
19967 #: ../fish/guestfish.pod:1191
19968 msgid "PAGER"
19969 msgstr ""
19970
19971 #. type: textblock
19972 #: ../fish/guestfish.pod:1193
19973 msgid ""
19974 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
19975 "C<more>."
19976 msgstr ""
19977
19978 #. type: =item
19979 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:236 ../src/guestfs.pod:3257
19980 msgid "TMPDIR"
19981 msgstr ""
19982
19983 #. type: textblock
19984 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3259
19985 msgid ""
19986 "Location of temporary directory, defaults to C</tmp> except for the cached "
19987 "supermin appliance which defaults to C</var/tmp>."
19988 msgstr ""
19989
19990 #. type: textblock
19991 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3262
19992 msgid ""
19993 "If libguestfs was compiled to use the supermin appliance then the real "
19994 "appliance is cached in this directory, shared between all handles belonging "
19995 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
19996 "use in case C</var/tmp> is not large enough."
19997 msgstr ""
19998
19999 #. type: =head1
20000 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297 ../rescue/virt-rescue.pod:273
20001 msgid "FILES"
20002 msgstr ""
20003
20004 #. type: =item
20005 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301 ../rescue/virt-rescue.pod:277
20006 msgid "$HOME/.libguestfs-tools.rc"
20007 msgstr ""
20008
20009 #. type: =item
20010 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303 ../rescue/virt-rescue.pod:279
20011 msgid "/etc/libguestfs-tools.conf"
20012 msgstr ""
20013
20014 #. type: textblock
20015 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305 ../rescue/virt-rescue.pod:281
20016 msgid ""
20017 "This configuration file controls the default read-only or read-write mode "
20018 "(I<--ro> or I<--rw>)."
20019 msgstr ""
20020
20021 #. type: textblock
20022 #: ../fish/guestfish.pod:1220
20023 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
20024 msgstr ""
20025
20026 #. type: =item
20027 #: ../fish/guestfish.pod:1222
20028 msgid "$HOME/.guestfish"
20029 msgstr ""
20030
20031 #. type: textblock
20032 #: ../fish/guestfish.pod:1224
20033 msgid ""
20034 "If compiled with GNU readline support, then the command history is saved in "
20035 "this file."
20036 msgstr ""
20037
20038 #. type: =item
20039 #: ../fish/guestfish.pod:1227
20040 msgid "$HOME/.inputrc"
20041 msgstr ""
20042
20043 #. type: =item
20044 #: ../fish/guestfish.pod:1229
20045 msgid "/etc/inputrc"
20046 msgstr ""
20047
20048 #. type: textblock
20049 #: ../fish/guestfish.pod:1231
20050 msgid ""
20051 "If compiled with GNU readline support, then these files can be used to "
20052 "configure readline.  For further information, please see "
20053 "L<readline(3)/INITIALIZATION FILE>."
20054 msgstr ""
20055
20056 #. type: textblock
20057 #: ../fish/guestfish.pod:1235
20058 msgid "To write rules which only apply to guestfish, use:"
20059 msgstr ""
20060
20061 #. type: verbatim
20062 #: ../fish/guestfish.pod:1237
20063 #, no-wrap
20064 msgid ""
20065 " $if guestfish\n"
20066 " ...\n"
20067 " $endif\n"
20068 "\n"
20069 msgstr ""
20070
20071 #. type: textblock
20072 #: ../fish/guestfish.pod:1241
20073 msgid ""
20074 "Variables that you can set in inputrc that change the behaviour of guestfish "
20075 "in useful ways include:"
20076 msgstr ""
20077
20078 #. type: =item
20079 #: ../fish/guestfish.pod:1246
20080 msgid "completion-ignore-case (default: on)"
20081 msgstr ""
20082
20083 #. type: textblock
20084 #: ../fish/guestfish.pod:1248
20085 msgid ""
20086 "By default, guestfish will ignore case when tab-completing paths on the "
20087 "disk.  Use:"
20088 msgstr ""
20089
20090 #. type: verbatim
20091 #: ../fish/guestfish.pod:1251
20092 #, no-wrap
20093 msgid ""
20094 " set completion-ignore-case off\n"
20095 "\n"
20096 msgstr ""
20097
20098 #. type: textblock
20099 #: ../fish/guestfish.pod:1253
20100 msgid "to make guestfish case sensitive."
20101 msgstr ""
20102
20103 #. type: =item
20104 #: ../fish/guestfish.pod:1257
20105 msgid "test1.img"
20106 msgstr ""
20107
20108 #. type: =item
20109 #: ../fish/guestfish.pod:1259
20110 msgid "test2.img (etc)"
20111 msgstr ""
20112
20113 #. type: textblock
20114 #: ../fish/guestfish.pod:1261
20115 msgid ""
20116 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
20117 "will be created in the file C<test1.img> in the current directory.  The "
20118 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
20119 "the same name will be overwritten."
20120 msgstr ""
20121
20122 #. type: textblock
20123 #: ../fish/guestfish.pod:1270
20124 msgid ""
20125 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, "
20126 "L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, "
20127 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, "
20128 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
20129 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
20130 "L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
20131 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<display(1)>, L<hexedit(1)>, "
20132 "L<febootstrap-supermin-helper(8)>."
20133 msgstr ""
20134
20135 #. type: textblock
20136 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3354 ../test-tool/libguestfs-test-tool.pod:112
20137 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
20138 msgstr ""
20139
20140 #. type: textblock
20141 #: ../fish/virt-copy-in.pod:5
20142 msgid "virt-copy-in - Copy files and directories into a virtual machine disk image."
20143 msgstr ""
20144
20145 #. type: verbatim
20146 #: ../fish/virt-copy-in.pod:9
20147 #, no-wrap
20148 msgid ""
20149 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
20150 "\n"
20151 msgstr ""
20152
20153 #. type: verbatim
20154 #: ../fish/virt-copy-in.pod:11
20155 #, no-wrap
20156 msgid ""
20157 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
20158 "\n"
20159 msgstr ""
20160
20161 #. type: textblock
20162 #: ../fish/virt-copy-in.pod:15
20163 msgid ""
20164 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
20165 "causing disk corruption.  The virtual machine must be shut down before you "
20166 "use this command."
20167 msgstr ""
20168
20169 #. type: textblock
20170 #: ../fish/virt-copy-in.pod:21
20171 msgid ""
20172 "C<virt-copy-in> copies files and directories from the local disk into a "
20173 "virtual machine disk image or named libvirt domain."
20174 msgstr ""
20175
20176 #. type: textblock
20177 #: ../fish/virt-copy-in.pod:24
20178 msgid ""
20179 "You can give one of more filenames and directories on the command line.  "
20180 "Directories are copied in recursively.  The final parameter must be the "
20181 "destination directory in the disk image which must be an absolute path "
20182 "starting with a C</> character."
20183 msgstr ""
20184
20185 #. type: verbatim
20186 #: ../fish/virt-copy-in.pod:33
20187 #, no-wrap
20188 msgid ""
20189 " virt-copy-in -d MyGuest resolv.conf /etc\n"
20190 "\n"
20191 msgstr ""
20192
20193 #. type: textblock
20194 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
20195 msgid "Upload a home directory to a guest:"
20196 msgstr ""
20197
20198 #. type: verbatim
20199 #: ../fish/virt-copy-in.pod:37
20200 #, no-wrap
20201 msgid ""
20202 " virt-copy-in -d MyGuest skel /home\n"
20203 "\n"
20204 msgstr ""
20205
20206 #. type: =head1
20207 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28 ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
20208 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
20209 msgstr ""
20210
20211 #. type: textblock
20212 #: ../fish/virt-copy-in.pod:41
20213 msgid ""
20214 "This command is just a simple shell script wrapper around the "
20215 "L<guestfish(1)> C<copy-in> command.  For anything more complex than a "
20216 "trivial copy, you are probably better off using guestfish directly."
20217 msgstr ""
20218
20219 #. type: textblock
20220 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36 ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
20221 msgid ""
20222 "Since the shell script just passes options straight to guestfish, read "
20223 "L<guestfish(1)> to see the full list of options."
20224 msgstr ""
20225
20226 #. type: textblock
20227 #: ../fish/virt-copy-in.pod:52
20228 msgid ""
20229 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
20230 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20231 msgstr ""
20232
20233 #. type: textblock
20234 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55 ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
20235 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
20236 msgstr ""
20237
20238 #. type: textblock
20239 #: ../fish/virt-copy-out.pod:5
20240 msgid ""
20241 "virt-copy-out - Copy files and directories out of a virtual machine disk "
20242 "image."
20243 msgstr ""
20244
20245 #. type: verbatim
20246 #: ../fish/virt-copy-out.pod:9
20247 #, no-wrap
20248 msgid ""
20249 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
20250 "\n"
20251 msgstr ""
20252
20253 #. type: verbatim
20254 #: ../fish/virt-copy-out.pod:11
20255 #, no-wrap
20256 msgid ""
20257 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
20258 "\n"
20259 msgstr ""
20260
20261 #. type: textblock
20262 #: ../fish/virt-copy-out.pod:15
20263 msgid ""
20264 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
20265 "image or named libvirt domain."
20266 msgstr ""
20267
20268 #. type: textblock
20269 #: ../fish/virt-copy-out.pod:18
20270 msgid ""
20271 "You can give one of more filenames and directories on the command line.  "
20272 "Directories are copied out recursively."
20273 msgstr ""
20274
20275 #. type: textblock
20276 #: ../fish/virt-copy-out.pod:23
20277 msgid "Download the home directories from a virtual machine:"
20278 msgstr ""
20279
20280 #. type: verbatim
20281 #: ../fish/virt-copy-out.pod:25
20282 #, no-wrap
20283 msgid ""
20284 " mkdir homes\n"
20285 " virt-copy-out -d MyGuest /home homes\n"
20286 "\n"
20287 msgstr ""
20288
20289 #. type: textblock
20290 #: ../fish/virt-copy-out.pod:30
20291 msgid ""
20292 "This command is just a simple shell script wrapper around the "
20293 "L<guestfish(1)> C<copy-out> command.  For anything more complex than a "
20294 "trivial copy, you are probably better off using guestfish directly."
20295 msgstr ""
20296
20297 #. type: textblock
20298 #: ../fish/virt-copy-out.pod:41
20299 msgid ""
20300 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, "
20301 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20302 msgstr ""
20303
20304 #. type: textblock
20305 #: ../fish/virt-tar-in.pod:5
20306 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
20307 msgstr ""
20308
20309 #. type: verbatim
20310 #: ../fish/virt-tar-in.pod:9
20311 #, no-wrap
20312 msgid ""
20313 " virt-tar-in -a disk.img data.tar /destination\n"
20314 "\n"
20315 msgstr ""
20316
20317 #. type: verbatim
20318 #: ../fish/virt-tar-in.pod:11
20319 #, no-wrap
20320 msgid ""
20321 " virt-tar-in -d domain data.tar /destination\n"
20322 "\n"
20323 msgstr ""
20324
20325 #. type: verbatim
20326 #: ../fish/virt-tar-in.pod:13
20327 #, no-wrap
20328 msgid ""
20329 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
20330 "\n"
20331 msgstr ""
20332
20333 #. type: textblock
20334 #: ../fish/virt-tar-in.pod:17
20335 msgid ""
20336 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
20337 "causing disk corruption.  The virtual machine must be shut down before you "
20338 "use this command."
20339 msgstr ""
20340
20341 #. type: textblock
20342 #: ../fish/virt-tar-in.pod:23
20343 msgid ""
20344 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
20345 "image or named libvirt domain."
20346 msgstr ""
20347
20348 #. type: textblock
20349 #: ../fish/virt-tar-in.pod:26
20350 msgid ""
20351 "The first parameter is the tar file.  Use C<-> to read the tar file from "
20352 "standard input.  The second parameter is the absolute target directory to "
20353 "unpack into."
20354 msgstr ""
20355
20356 #. type: verbatim
20357 #: ../fish/virt-tar-in.pod:34
20358 #, no-wrap
20359 msgid ""
20360 " virt-tar-in -d MyGuest homes.tar /home\n"
20361 "\n"
20362 msgstr ""
20363
20364 #. type: textblock
20365 #: ../fish/virt-tar-in.pod:38
20366 msgid ""
20367 "This command is just a simple shell script wrapper around the "
20368 "L<guestfish(1)> C<tar-in> command.  For anything more complex than a trivial "
20369 "copy, you are probably better off using guestfish directly."
20370 msgstr ""
20371
20372 #. type: textblock
20373 #: ../fish/virt-tar-in.pod:49
20374 msgid ""
20375 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20376 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, "
20377 "L<http://libguestfs.org/>."
20378 msgstr ""
20379
20380 #. type: textblock
20381 #: ../fish/virt-tar-out.pod:5
20382 msgid "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
20383 msgstr ""
20384
20385 #. type: verbatim
20386 #: ../fish/virt-tar-out.pod:9
20387 #, no-wrap
20388 msgid ""
20389 " virt-tar-out -a disk.img /dir files.tar\n"
20390 "\n"
20391 msgstr ""
20392
20393 #. type: verbatim
20394 #: ../fish/virt-tar-out.pod:11
20395 #, no-wrap
20396 msgid ""
20397 " virt-tar-out -d domain /dir files.tar\n"
20398 "\n"
20399 msgstr ""
20400
20401 #. type: verbatim
20402 #: ../fish/virt-tar-out.pod:13
20403 #, no-wrap
20404 msgid ""
20405 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
20406 "\n"
20407 msgstr ""
20408
20409 #. type: textblock
20410 #: ../fish/virt-tar-out.pod:17
20411 msgid "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
20412 msgstr ""
20413
20414 #. type: textblock
20415 #: ../fish/virt-tar-out.pod:20
20416 msgid ""
20417 "The first parameter is the absolute path of the virtual machine directory.  "
20418 "The second parameter is the tar file to write.  Use C<-> to write to "
20419 "standard output."
20420 msgstr ""
20421
20422 #. type: textblock
20423 #: ../fish/virt-tar-out.pod:26
20424 msgid "Download the home directories from a guest:"
20425 msgstr ""
20426
20427 #. type: verbatim
20428 #: ../fish/virt-tar-out.pod:28
20429 #, no-wrap
20430 msgid ""
20431 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
20432 "\n"
20433 msgstr ""
20434
20435 #. type: textblock
20436 #: ../fish/virt-tar-out.pod:32
20437 msgid ""
20438 "This command is just a simple shell script wrapper around the "
20439 "L<guestfish(1)> C<tar-out> command.  For anything more complex than a "
20440 "trivial copy, you are probably better off using guestfish directly."
20441 msgstr ""
20442
20443 #. type: textblock
20444 #: ../fish/virt-tar-out.pod:43
20445 msgid ""
20446 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20447 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
20448 msgstr ""
20449
20450 #. type: textblock
20451 #: ../fuse/guestmount.pod:5
20452 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
20453 msgstr ""
20454
20455 #. type: verbatim
20456 #: ../fuse/guestmount.pod:9
20457 #, no-wrap
20458 msgid ""
20459 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
20460 "\n"
20461 msgstr ""
20462
20463 #. type: verbatim
20464 #: ../fuse/guestmount.pod:11
20465 #, no-wrap
20466 msgid ""
20467 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
20468 "\n"
20469 msgstr ""
20470
20471 #. type: verbatim
20472 #: ../fuse/guestmount.pod:13
20473 #, no-wrap
20474 msgid ""
20475 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
20476 "\n"
20477 msgstr ""
20478
20479 #. type: textblock
20480 #: ../fuse/guestmount.pod:17
20481 msgid ""
20482 "You must I<not> use C<guestmount> in read-write mode on live virtual "
20483 "machines.  If you do this, you risk disk corruption in the VM."
20484 msgstr ""
20485
20486 #. type: textblock
20487 #: ../fuse/guestmount.pod:22
20488 msgid ""
20489 "The guestmount program can be used to mount virtual machine filesystems and "
20490 "other disk images on the host.  It uses libguestfs for access to the guest "
20491 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
20492 "a mountable device."
20493 msgstr ""
20494
20495 #. type: textblock
20496 #: ../fuse/guestmount.pod:27
20497 msgid ""
20498 "Along with other options, you have to give at least one device (I<-a> "
20499 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
20500 "option) or use the I<-i> inspection option or the I<--live> option.  How "
20501 "this works is better explained in the L<guestfish(1)> manual page, or by "
20502 "looking at the examples below."
20503 msgstr ""
20504
20505 #. type: textblock
20506 #: ../fuse/guestmount.pod:33
20507 msgid ""
20508 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
20509 "by you, and the filesystem will not be visible to any other users unless you "
20510 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
20511 "the filesystem, use the C<fusermount -u> command."
20512 msgstr ""
20513
20514 #. type: textblock
20515 #: ../fuse/guestmount.pod:41
20516 msgid ""
20517 "For a typical Windows guest which has its main filesystem on the first "
20518 "partition:"
20519 msgstr ""
20520
20521 #. type: verbatim
20522 #: ../fuse/guestmount.pod:44
20523 #, no-wrap
20524 msgid ""
20525 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
20526 "\n"
20527 msgstr ""
20528
20529 #. type: textblock
20530 #: ../fuse/guestmount.pod:46
20531 msgid ""
20532 "For a typical Linux guest which has a /boot filesystem on the first "
20533 "partition, and the root filesystem on a logical volume:"
20534 msgstr ""
20535
20536 #. type: verbatim
20537 #: ../fuse/guestmount.pod:49
20538 #, no-wrap
20539 msgid ""
20540 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
20541 "\n"
20542 msgstr ""
20543
20544 #. type: textblock
20545 #: ../fuse/guestmount.pod:51
20546 msgid "To get libguestfs to detect guest mountpoints for you:"
20547 msgstr ""
20548
20549 #. type: verbatim
20550 #: ../fuse/guestmount.pod:53
20551 #, no-wrap
20552 msgid ""
20553 " guestmount -a guest.img -i --ro /mnt\n"
20554 "\n"
20555 msgstr ""
20556
20557 #. type: textblock
20558 #: ../fuse/guestmount.pod:55
20559 msgid "For a libvirt guest called \"Guest\" you could do:"
20560 msgstr ""
20561
20562 #. type: verbatim
20563 #: ../fuse/guestmount.pod:57
20564 #, no-wrap
20565 msgid ""
20566 " guestmount -d Guest -i --ro /mnt\n"
20567 "\n"
20568 msgstr ""
20569
20570 #. type: textblock
20571 #: ../fuse/guestmount.pod:59
20572 msgid ""
20573 "If you don't know what filesystems are contained in a guest or disk image, "
20574 "use L<virt-filesystems(1)> first:"
20575 msgstr ""
20576
20577 #. type: verbatim
20578 #: ../fuse/guestmount.pod:62
20579 #, no-wrap
20580 msgid ""
20581 " virt-filesystems MyGuest\n"
20582 "\n"
20583 msgstr ""
20584
20585 #. type: textblock
20586 #: ../fuse/guestmount.pod:64
20587 msgid ""
20588 "If you want to trace the libguestfs calls but without excessive debugging "
20589 "information, we recommend:"
20590 msgstr ""
20591
20592 #. type: verbatim
20593 #: ../fuse/guestmount.pod:67
20594 #, no-wrap
20595 msgid ""
20596 " guestmount [...] --trace /mnt\n"
20597 "\n"
20598 msgstr ""
20599
20600 #. type: textblock
20601 #: ../fuse/guestmount.pod:69
20602 msgid "If you want to debug the program, we recommend:"
20603 msgstr ""
20604
20605 #. type: verbatim
20606 #: ../fuse/guestmount.pod:71
20607 #, no-wrap
20608 msgid ""
20609 " guestmount [...] --trace --verbose /mnt\n"
20610 "\n"
20611 msgstr ""
20612
20613 #. type: =head1
20614 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68 ../resize/virt-resize.pod:621
20615 msgid "NOTES"
20616 msgstr ""
20617
20618 #. type: =head2
20619 #: ../fuse/guestmount.pod:75
20620 msgid "Other users cannot see the filesystem by default"
20621 msgstr ""
20622
20623 #. type: textblock
20624 #: ../fuse/guestmount.pod:77
20625 msgid ""
20626 "If you mount a filesystem as one user (eg. root), then other users will not "
20627 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
20628 "option when mounting:"
20629 msgstr ""
20630
20631 #. type: verbatim
20632 #: ../fuse/guestmount.pod:81
20633 #, no-wrap
20634 msgid ""
20635 " sudo guestmount [...] -o allow_other /mnt\n"
20636 "\n"
20637 msgstr ""
20638
20639 #. type: =head2
20640 #: ../fuse/guestmount.pod:83
20641 msgid "Enabling FUSE"
20642 msgstr ""
20643
20644 #. type: textblock
20645 #: ../fuse/guestmount.pod:85
20646 msgid ""
20647 "On some distros, you may need to add yourself to a special group "
20648 "(eg. C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
20649 "Debian and derivatives."
20650 msgstr ""
20651
20652 #. type: textblock
20653 #: ../fuse/guestmount.pod:89
20654 msgid ""
20655 "On other distros, no special group is required.  It is not necessary on "
20656 "Fedora or Red Hat Enterprise Linux."
20657 msgstr ""
20658
20659 #. type: textblock
20660 #: ../fuse/guestmount.pod:100
20661 msgid "Add a block device or virtual machine image."
20662 msgstr ""
20663
20664 #. type: =item
20665 #: ../fuse/guestmount.pod:123
20666 msgid "B<--dir-cache-timeout N>"
20667 msgstr ""
20668
20669 #. type: textblock
20670 #: ../fuse/guestmount.pod:125
20671 msgid ""
20672 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
20673 "seconds.  The readdir cache [actually, there are several semi-independent "
20674 "caches] is populated after a readdir(2) call with the stat and extended "
20675 "attributes of the files in the directory, in anticipation that they will be "
20676 "requested soon after."
20677 msgstr ""
20678
20679 #. type: textblock
20680 #: ../fuse/guestmount.pod:131
20681 msgid ""
20682 "There is also a different attribute cache implemented by FUSE (see the FUSE "
20683 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
20684 "requests, only cache existing ones."
20685 msgstr ""
20686
20687 #. type: textblock
20688 #: ../fuse/guestmount.pod:151
20689 msgid ""
20690 "If you have untrusted raw-format guest disk images, you should use this "
20691 "option to specify the disk format.  This avoids a possible security problem "
20692 "with malicious guests (CVE-2010-3851).  See also "
20693 "L<guestfs(3)/guestfs_add_drive_opts>."
20694 msgstr ""
20695
20696 #. type: =item
20697 #: ../fuse/guestmount.pod:156
20698 msgid "B<--fuse-help>"
20699 msgstr ""
20700
20701 #. type: textblock
20702 #: ../fuse/guestmount.pod:158
20703 msgid "Display help on special FUSE options (see I<-o> below)."
20704 msgstr ""
20705
20706 #. type: textblock
20707 #: ../fuse/guestmount.pod:162
20708 msgid "Display brief help and exit."
20709 msgstr ""
20710
20711 #. type: textblock
20712 #: ../fuse/guestmount.pod:186
20713 msgid ""
20714 "Mount the named partition or logical volume on the given mountpoint B<in the "
20715 "guest> (this has nothing to do with mountpoints in the host)."
20716 msgstr ""
20717
20718 #. type: textblock
20719 #: ../fuse/guestmount.pod:189
20720 msgid ""
20721 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
20722 "something on C</>."
20723 msgstr ""
20724
20725 #. type: textblock
20726 #: ../fuse/guestmount.pod:206
20727 msgid ""
20728 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
20729 "unmounted.  If you specify this option, then we don't attempt to sync the "
20730 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
20731 msgstr ""
20732
20733 #. type: =item
20734 #: ../fuse/guestmount.pod:211
20735 msgid "B<-o option>"
20736 msgstr ""
20737
20738 #. type: =item
20739 #: ../fuse/guestmount.pod:213
20740 msgid "B<--option option>"
20741 msgstr ""
20742
20743 #. type: textblock
20744 #: ../fuse/guestmount.pod:215
20745 msgid "Pass extra options to FUSE."
20746 msgstr ""
20747
20748 #. type: textblock
20749 #: ../fuse/guestmount.pod:217
20750 msgid ""
20751 "To get a list of all the extra options supported by FUSE, use the command "
20752 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
20753 "of them are a good idea."
20754 msgstr ""
20755
20756 #. type: verbatim
20757 #: ../fuse/guestmount.pod:221
20758 #, no-wrap
20759 msgid ""
20760 " guestmount --fuse-help\n"
20761 "\n"
20762 msgstr ""
20763
20764 #. type: textblock
20765 #: ../fuse/guestmount.pod:223
20766 msgid "Some potentially useful FUSE options:"
20767 msgstr ""
20768
20769 #. type: =item
20770 #: ../fuse/guestmount.pod:227
20771 msgid "B<-o allow_other>"
20772 msgstr ""
20773
20774 #. type: textblock
20775 #: ../fuse/guestmount.pod:229
20776 msgid "Allow other users to see the filesystem."
20777 msgstr ""
20778
20779 #. type: =item
20780 #: ../fuse/guestmount.pod:231
20781 msgid "B<-o attr_timeout=N>"
20782 msgstr ""
20783
20784 #. type: textblock
20785 #: ../fuse/guestmount.pod:233
20786 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
20787 msgstr ""
20788
20789 #. type: =item
20790 #: ../fuse/guestmount.pod:235
20791 msgid "B<-o kernel_cache>"
20792 msgstr ""
20793
20794 #. type: textblock
20795 #: ../fuse/guestmount.pod:237
20796 msgid ""
20797 "Allow the kernel to cache files (reduces the number of reads that have to go "
20798 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
20799 "afford the extra memory usage."
20800 msgstr ""
20801
20802 #. type: =item
20803 #: ../fuse/guestmount.pod:241
20804 msgid "B<-o uid=N> B<-o gid=N>"
20805 msgstr ""
20806
20807 #. type: textblock
20808 #: ../fuse/guestmount.pod:243
20809 msgid ""
20810 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
20811 "the chosen values."
20812 msgstr ""
20813
20814 #. type: textblock
20815 #: ../fuse/guestmount.pod:252
20816 msgid ""
20817 "Add devices and mount everything read-only.  Also disallow writes and make "
20818 "the disk appear read-only to FUSE."
20819 msgstr ""
20820
20821 #. type: textblock
20822 #: ../fuse/guestmount.pod:255
20823 msgid ""
20824 "This is highly recommended if you are not going to edit the guest disk.  If "
20825 "the guest is running and this option is I<not> supplied, then there is a "
20826 "strong risk of disk corruption in the guest.  We try to prevent this from "
20827 "happening, but it is not always possible."
20828 msgstr ""
20829
20830 #. type: textblock
20831 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
20832 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20833 msgstr ""
20834
20835 #. type: textblock
20836 #: ../fuse/guestmount.pod:264
20837 msgid "Enable SELinux support for the guest."
20838 msgstr ""
20839
20840 #. type: textblock
20841 #: ../fuse/guestmount.pod:270
20842 msgid "Enable verbose messages from underlying libguestfs."
20843 msgstr ""
20844
20845 #. type: textblock
20846 #: ../fuse/guestmount.pod:276
20847 msgid "Display the program version and exit."
20848 msgstr ""
20849
20850 #. type: textblock
20851 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308 ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
20852 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20853 msgstr ""
20854
20855 #. type: =item
20856 #: ../fuse/guestmount.pod:289
20857 msgid "B<--trace>"
20858 msgstr ""
20859
20860 #. type: textblock
20861 #: ../fuse/guestmount.pod:291
20862 msgid "Trace libguestfs calls and entry into each FUSE function."
20863 msgstr ""
20864
20865 #. type: textblock
20866 #: ../fuse/guestmount.pod:293
20867 msgid "This also stops the daemon from forking into the background."
20868 msgstr ""
20869
20870 #. type: textblock
20871 #: ../fuse/guestmount.pod:319
20872 msgid ""
20873 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20874 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
20875 "L<http://fuse.sf.net/>."
20876 msgstr ""
20877
20878 #. type: textblock
20879 #: ../fuse/guestmount.pod:334
20880 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
20881 msgstr ""
20882
20883 #. type: textblock
20884 #: ../inspector/virt-inspector.pod:5
20885 msgid ""
20886 "virt-inspector - Display operating system version and other information "
20887 "about a virtual machine"
20888 msgstr ""
20889
20890 #. type: verbatim
20891 #: ../inspector/virt-inspector.pod:9
20892 #, no-wrap
20893 msgid ""
20894 " virt-inspector [--options] -d domname\n"
20895 "\n"
20896 msgstr ""
20897
20898 #. type: verbatim
20899 #: ../inspector/virt-inspector.pod:11
20900 #, no-wrap
20901 msgid ""
20902 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
20903 "\n"
20904 msgstr ""
20905
20906 #. type: verbatim
20907 #: ../inspector/virt-inspector.pod:15
20908 #, no-wrap
20909 msgid ""
20910 " virt-inspector domname\n"
20911 "\n"
20912 msgstr ""
20913
20914 #. type: verbatim
20915 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
20916 #, no-wrap
20917 msgid ""
20918 " virt-inspector disk.img [disk.img ...]\n"
20919 "\n"
20920 msgstr ""
20921
20922 #. type: textblock
20923 #: ../inspector/virt-inspector.pod:21
20924 msgid ""
20925 "B<virt-inspector> examines a virtual machine or disk image and tries to "
20926 "determine the version of the operating system and other information about "
20927 "the virtual machine."
20928 msgstr ""
20929
20930 #. type: textblock
20931 #: ../inspector/virt-inspector.pod:25
20932 msgid "Virt-inspector produces XML output for feeding into other programs."
20933 msgstr ""
20934
20935 #. type: textblock
20936 #: ../inspector/virt-inspector.pod:27
20937 msgid ""
20938 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
20939 "the libvirt domain (see: C<virsh list --all>)."
20940 msgstr ""
20941
20942 #. type: textblock
20943 #: ../inspector/virt-inspector.pod:30
20944 msgid ""
20945 "You can also run virt-inspector directly on disk images from a single "
20946 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
20947 "has several block devices, in which case you should list several I<-a> "
20948 "options one after another, with the first corresponding to the guest's "
20949 "C</dev/sda>, the second to the guest's C</dev/sdb> and so on."
20950 msgstr ""
20951
20952 #. type: textblock
20953 #: ../inspector/virt-inspector.pod:37
20954 msgid ""
20955 "You can also run virt-inspector on install disks, live CDs, bootable USB "
20956 "keys and similar."
20957 msgstr ""
20958
20959 #. type: textblock
20960 #: ../inspector/virt-inspector.pod:40
20961 msgid ""
20962 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
20963 "inspect several virtual machines, you have to run virt-inspector several "
20964 "times (for example, from a shell script for-loop)."
20965 msgstr ""
20966
20967 #. type: textblock
20968 #: ../inspector/virt-inspector.pod:45
20969 msgid ""
20970 "Because virt-inspector needs direct access to guest images, it won't "
20971 "normally work over remote libvirt connections."
20972 msgstr ""
20973
20974 #. type: textblock
20975 #: ../inspector/virt-inspector.pod:48
20976 msgid ""
20977 "All of the information available from virt-inspector is also available "
20978 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
20979 "The same information can also be fetched using guestfish or via libguestfs "
20980 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
20981 "WITH OTHER PROGRAMMING LANGUAGES>)."
20982 msgstr ""
20983
20984 #. type: textblock
20985 #: ../inspector/virt-inspector.pod:81
20986 msgid ""
20987 "Libvirt is only used if you specify a C<domname> on the command line.  If "
20988 "you specify guest block devices directly (I<-a>), then libvirt is not used "
20989 "at all."
20990 msgstr ""
20991
20992 #. type: textblock
20993 #: ../inspector/virt-inspector.pod:94
20994 msgid ""
20995 "When prompting for keys and passphrases, virt-inspector normally turns "
20996 "echoing off so you cannot see what you are typing.  If you are not worried "
20997 "about Tempest attacks and there is no one else in the room you can specify "
20998 "this flag to see what you are typing."
20999 msgstr ""
21000
21001 #. type: textblock
21002 #: ../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
21003 msgid ""
21004 "Specify the format of disk images given on the command line.  If this is "
21005 "omitted then the format is autodetected from the content of the disk image."
21006 msgstr ""
21007
21008 #. type: textblock
21009 #: ../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
21010 msgid ""
21011 "If disk images are requested from libvirt, then this program asks libvirt "
21012 "for this information.  In this case, the value of the format parameter is "
21013 "ignored."
21014 msgstr ""
21015
21016 #. type: textblock
21017 #: ../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
21018 msgid ""
21019 "If working with untrusted raw-format guest disk images, you should ensure "
21020 "the format is always specified."
21021 msgstr ""
21022
21023 #. type: textblock
21024 #: ../inspector/virt-inspector.pod:139
21025 msgid "Previous versions of virt-inspector allowed you to write either:"
21026 msgstr ""
21027
21028 #. type: verbatim
21029 #: ../inspector/virt-inspector.pod:145
21030 #, no-wrap
21031 msgid ""
21032 " virt-inspector guestname\n"
21033 "\n"
21034 msgstr ""
21035
21036 #. type: =head1
21037 #: ../inspector/virt-inspector.pod:153
21038 msgid "XML FORMAT"
21039 msgstr ""
21040
21041 #. type: textblock
21042 #: ../inspector/virt-inspector.pod:155
21043 msgid ""
21044 "The virt-inspector XML is described precisely in a RELAX NG schema file "
21045 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
21046 "just an overview."
21047 msgstr ""
21048
21049 #. type: textblock
21050 #: ../inspector/virt-inspector.pod:159
21051 msgid ""
21052 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
21053 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
21054 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
21055 "which is vanishingly rare in real world VMs."
21056 msgstr ""
21057
21058 #. type: =head2
21059 #: ../inspector/virt-inspector.pod:164
21060 msgid "E<lt>operatingsystemE<gt>"
21061 msgstr ""
21062
21063 #. type: textblock
21064 #: ../inspector/virt-inspector.pod:166
21065 msgid ""
21066 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
21067 "describe the operating system, its architecture, the descriptive \"product "
21068 "name\" string, the type of OS and so on, as in this example:"
21069 msgstr ""
21070
21071 #. type: verbatim
21072 #: ../inspector/virt-inspector.pod:170
21073 #, no-wrap
21074 msgid ""
21075 " <operatingsystems>\n"
21076 "   <operatingsystem>\n"
21077 "     <root>/dev/sda2</root>\n"
21078 "     <name>windows</name>\n"
21079 "     <arch>i386</arch>\n"
21080 "     <distro>windows</distro>\n"
21081 "     <product_name>Windows 7 Enterprise</product_name>\n"
21082 "     <product_variant>Client</product_variant>\n"
21083 "     <major_version>6</major_version>\n"
21084 "     <minor_version>1</minor_version>\n"
21085 "     <windows_systemroot>/Windows</windows_systemroot>\n"
21086 "     <format>installed</format>\n"
21087 "\n"
21088 msgstr ""
21089
21090 #. type: textblock
21091 #: ../inspector/virt-inspector.pod:183
21092 msgid ""
21093 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
21094 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
21095 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
21096 "architecture.  The other fields are fairly self-explanatory, but because "
21097 "these fields are taken directly from the libguestfs inspection API you can "
21098 "find precise information from L<guestfs(3)/INSPECTION>."
21099 msgstr ""
21100
21101 #. type: textblock
21102 #: ../inspector/virt-inspector.pod:191
21103 msgid ""
21104 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
21105 "of view of libguestfs (block devices may have completely different names "
21106 "inside the VM itself)."
21107 msgstr ""
21108
21109 #. type: =head2
21110 #: ../inspector/virt-inspector.pod:195
21111 msgid "E<lt>mountpointsE<gt>"
21112 msgstr ""
21113
21114 #. type: textblock
21115 #: ../inspector/virt-inspector.pod:197
21116 msgid ""
21117 "Un*x-like guests typically have multiple filesystems which are mounted at "
21118 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
21119 "element which looks like this:"
21120 msgstr ""
21121
21122 #. type: verbatim
21123 #: ../inspector/virt-inspector.pod:201
21124 #, no-wrap
21125 msgid ""
21126 " <operatingsystems>\n"
21127 "   <operatingsystem>\n"
21128 "     ...\n"
21129 "     <mountpoints>\n"
21130 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
21131 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
21132 "     </mountpoints>\n"
21133 "\n"
21134 msgstr ""
21135
21136 #. type: textblock
21137 #: ../inspector/virt-inspector.pod:209
21138 msgid ""
21139 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
21140 "and may have completely different names inside the guest.  Only mountable "
21141 "filesystems appear in this list, not things like swap devices."
21142 msgstr ""
21143
21144 #. type: =head2
21145 #: ../inspector/virt-inspector.pod:214
21146 msgid "E<lt>filesystemsE<gt>"
21147 msgstr ""
21148
21149 #. type: textblock
21150 #: ../inspector/virt-inspector.pod:216
21151 msgid ""
21152 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
21153 "filesystems belonging to the guest, including swap and empty partitions.  "
21154 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
21155 "this OS or shared with this OS and other OSes)."
21156 msgstr ""
21157
21158 #. type: textblock
21159 #: ../inspector/virt-inspector.pod:222
21160 msgid "You might see something like this:"
21161 msgstr ""
21162
21163 #. type: verbatim
21164 #: ../inspector/virt-inspector.pod:224
21165 #, no-wrap
21166 msgid ""
21167 " <operatingsystems>\n"
21168 "   <operatingsystem>\n"
21169 "     ...\n"
21170 "     <filesystems>\n"
21171 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21172 "         <type>ext4</type>\n"
21173 "         <label>Fedora-13-x86_64</label>\n"
21174 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
21175 "       </filesystem>\n"
21176 "\n"
21177 msgstr ""
21178
21179 #. type: textblock
21180 #: ../inspector/virt-inspector.pod:234
21181 msgid ""
21182 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
21183 "the label, and the UUID."
21184 msgstr ""
21185
21186 #. type: =head2
21187 #: ../inspector/virt-inspector.pod:237
21188 msgid "E<lt>applicationsE<gt>"
21189 msgstr ""
21190
21191 #. type: textblock
21192 #: ../inspector/virt-inspector.pod:239
21193 msgid ""
21194 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
21195 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
21196 "machine."
21197 msgstr ""
21198
21199 #. type: textblock
21200 #: ../inspector/virt-inspector.pod:243
21201 msgid ""
21202 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
21203 "Typical values would be C<rpm> and C<deb>."
21204 msgstr ""
21205
21206 #. type: textblock
21207 #: ../inspector/virt-inspector.pod:246
21208 msgid ""
21209 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
21210 "Typical values include C<yum>, C<up2date> and C<apt>"
21211 msgstr ""
21212
21213 #. type: textblock
21214 #: ../inspector/virt-inspector.pod:249
21215 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
21216 msgstr ""
21217
21218 #. type: verbatim
21219 #: ../inspector/virt-inspector.pod:252
21220 #, no-wrap
21221 msgid ""
21222 " <operatingsystems>\n"
21223 "   <operatingsystem>\n"
21224 "     ...\n"
21225 "     <applications>\n"
21226 "       <application>\n"
21227 "         <name>coreutils</name>\n"
21228 "         <version>8.5</version>\n"
21229 "         <release>1</release>\n"
21230 "       </application>\n"
21231 "\n"
21232 msgstr ""
21233
21234 #. type: textblock
21235 #: ../inspector/virt-inspector.pod:262
21236 msgid ""
21237 "The version and release fields may not be available for some types guests.  "
21238 "Other fields are possible, see "
21239 "L<guestfs(3)/guestfs_inspect_list_applications>."
21240 msgstr ""
21241
21242 #. type: =head2
21243 #: ../inspector/virt-inspector.pod:266
21244 msgid "E<lt>drive_mappingsE<gt>"
21245 msgstr ""
21246
21247 #. type: textblock
21248 #: ../inspector/virt-inspector.pod:268
21249 msgid ""
21250 "For operating systems like Windows which use drive letters, virt-inspector "
21251 "is able to find out how drive letters map to filesystems."
21252 msgstr ""
21253
21254 #. type: verbatim
21255 #: ../inspector/virt-inspector.pod:272
21256 #, no-wrap
21257 msgid ""
21258 " <operatingsystems>\n"
21259 "   <operatingsystem>\n"
21260 "     ...\n"
21261 "     <drive_mappings>\n"
21262 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
21263 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
21264 "     </drive_mappings>\n"
21265 "\n"
21266 msgstr ""
21267
21268 #. type: textblock
21269 #: ../inspector/virt-inspector.pod:280
21270 msgid ""
21271 "In the example above, drive C maps to the filesystem on the second partition "
21272 "on the first disk, and drive E maps to the filesystem on the first partition "
21273 "on the second disk."
21274 msgstr ""
21275
21276 #. type: textblock
21277 #: ../inspector/virt-inspector.pod:284
21278 msgid ""
21279 "Note that this only covers permanent local filesystem mappings, not things "
21280 "like network shares.  Furthermore NTFS volume mount points may not be listed "
21281 "here."
21282 msgstr ""
21283
21284 #. type: =head2
21285 #: ../inspector/virt-inspector.pod:288
21286 msgid "E<lt>iconE<gt>"
21287 msgstr ""
21288
21289 #. type: textblock
21290 #: ../inspector/virt-inspector.pod:290
21291 msgid ""
21292 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
21293 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
21294 "very large and high quality."
21295 msgstr ""
21296
21297 #. type: verbatim
21298 #: ../inspector/virt-inspector.pod:294
21299 #, no-wrap
21300 msgid ""
21301 " <operatingsystems>\n"
21302 "   <operatingsystem>\n"
21303 "     ...\n"
21304 "     <icon>\n"
21305 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
21306 "       [... many lines of base64 data ...]\n"
21307 "     </icon>\n"
21308 "\n"
21309 msgstr ""
21310
21311 #. type: textblock
21312 #: ../inspector/virt-inspector.pod:302
21313 msgid ""
21314 "To display the icon, you have to extract it and convert the base64 data back "
21315 "to a binary file.  Use an XPath query or simply an editor to extract the "
21316 "data, then use the coreutils L<base64(1)> program to do the conversion back "
21317 "to a PNG file:"
21318 msgstr ""
21319
21320 #. type: verbatim
21321 #: ../inspector/virt-inspector.pod:307
21322 #, no-wrap
21323 msgid ""
21324 " base64 -i -d < icon.data > icon.png\n"
21325 "\n"
21326 msgstr ""
21327
21328 #. type: =head2
21329 #: ../inspector/virt-inspector.pod:309
21330 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
21331 msgstr ""
21332
21333 #. type: textblock
21334 #: ../inspector/virt-inspector.pod:311
21335 msgid ""
21336 "Virt-inspector can detect some operating system installers on install disks, "
21337 "live CDs, bootable USB keys and more."
21338 msgstr ""
21339
21340 #. type: textblock
21341 #: ../inspector/virt-inspector.pod:314
21342 msgid ""
21343 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
21344 "fields may be present to indicate a live CD, network installer, or one part "
21345 "of a multipart CD.  For example:"
21346 msgstr ""
21347
21348 #. type: verbatim
21349 #: ../inspector/virt-inspector.pod:318
21350 #, no-wrap
21351 msgid ""
21352 " <operatingsystems>\n"
21353 "   <operatingsystem>\n"
21354 "     <root>/dev/sda</root>\n"
21355 "     <name>linux</name>\n"
21356 "     <arch>i386</arch>\n"
21357 "     <distro>ubuntu</distro>\n"
21358 "     <product_name>Ubuntu 10.10 &quot;Maverick "
21359 "Meerkat&quot;</product_name>\n"
21360 "     <major_version>10</major_version>\n"
21361 "     <minor_version>10</minor_version>\n"
21362 "     <format>installer</format>\n"
21363 "     <live/>\n"
21364 "\n"
21365 msgstr ""
21366
21367 #. type: =head1
21368 #: ../inspector/virt-inspector.pod:330
21369 msgid "USING XPATH"
21370 msgstr ""
21371
21372 #. type: textblock
21373 #: ../inspector/virt-inspector.pod:332
21374 msgid ""
21375 "You can use the XPath query language to select parts of the XML.  We "
21376 "recommend using C<xmlstarlet> to perform XPath queries from the command "
21377 "line."
21378 msgstr ""
21379
21380 #. type: verbatim
21381 #: ../inspector/virt-inspector.pod:338
21382 #, no-wrap
21383 msgid ""
21384 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
21385 " <filesystems>\n"
21386 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21387 "        <type>ext4</type>\n"
21388 " [...]\n"
21389 "\n"
21390 msgstr ""
21391
21392 #. type: verbatim
21393 #: ../inspector/virt-inspector.pod:344
21394 #, no-wrap
21395 msgid ""
21396 " $ virt-inspector -d Guest | \\\n"
21397 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
21398 " ext4\n"
21399 "\n"
21400 msgstr ""
21401
21402 #. type: verbatim
21403 #: ../inspector/virt-inspector.pod:348
21404 #, no-wrap
21405 msgid ""
21406 " $ virt-inspector -d Guest | \\\n"
21407 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
21408 " [displays the guest icon, if there is one]\n"
21409 "\n"
21410 msgstr ""
21411
21412 #. type: =head1
21413 #: ../inspector/virt-inspector.pod:359
21414 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
21415 msgstr ""
21416
21417 #. type: textblock
21418 #: ../inspector/virt-inspector.pod:361
21419 msgid ""
21420 "Early versions of libguestfs shipped with a different virt-inspector program "
21421 "written in Perl (the current version is written in C).  The XML output of "
21422 "the Perl virt-inspector was different and it could also output in other "
21423 "formats like text."
21424 msgstr ""
21425
21426 #. type: textblock
21427 #: ../inspector/virt-inspector.pod:366
21428 msgid "The old virt-inspector is no longer supported or shipped with libguestfs."
21429 msgstr ""
21430
21431 #. type: textblock
21432 #: ../inspector/virt-inspector.pod:369
21433 msgid ""
21434 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
21435 "versions of virt-inspector with different names:"
21436 msgstr ""
21437
21438 #. type: verbatim
21439 #: ../inspector/virt-inspector.pod:372
21440 #, no-wrap
21441 msgid ""
21442 " virt-inspector     Old Perl version.\n"
21443 " virt-inspector2    New C version.\n"
21444 "\n"
21445 msgstr ""
21446
21447 #. type: textblock
21448 #: ../inspector/virt-inspector.pod:382
21449 msgid ""
21450 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, "
21451 "L<base64(1)>, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
21452 msgstr ""
21453
21454 #. type: textblock
21455 #: ../inspector/virt-inspector.pod:399
21456 msgid "Matthew Booth L<mbooth@redhat.com>"
21457 msgstr ""
21458
21459 #. type: textblock
21460 #: ../java/examples/guestfs-java.pod:5
21461 msgid "guestfs-java - How to use libguestfs from Java"
21462 msgstr ""
21463
21464 #. type: verbatim
21465 #: ../java/examples/guestfs-java.pod:9
21466 #, no-wrap
21467 msgid ""
21468 " import com.redhat.et.libguestfs.*;\n"
21469 " \n"
21470 msgstr ""
21471
21472 #. type: verbatim
21473 #: ../java/examples/guestfs-java.pod:11
21474 #, no-wrap
21475 msgid ""
21476 " GuestFS g = new GuestFS ();\n"
21477 " g.add_drive_opts (\"disk.img\", null);\n"
21478 " g.launch ();\n"
21479 "\n"
21480 msgstr ""
21481
21482 #. type: textblock
21483 #: ../java/examples/guestfs-java.pod:17
21484 msgid ""
21485 "This manual page documents how to call libguestfs from the Java programming "
21486 "language.  This page just documents the differences from the C API and gives "
21487 "some examples.  If you are not familiar with using libguestfs, you also need "
21488 "to read L<guestfs(3)>."
21489 msgstr ""
21490
21491 #. type: =head2
21492 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
21493 msgid "CLOSING THE HANDLE"
21494 msgstr ""
21495
21496 #. type: textblock
21497 #: ../java/examples/guestfs-java.pod:24
21498 msgid ""
21499 "The handle is closed when it is reaped by the garbage collector.  Because "
21500 "libguestfs handles include a lot of state, it is also possible to close (and "
21501 "hence free) them explicitly by calling the C<close> method."
21502 msgstr ""
21503
21504 #. type: =head2
21505 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60 ../python/examples/guestfs-python.pod:21 ../ruby/examples/guestfs-ruby.pod:22
21506 msgid "EXCEPTIONS"
21507 msgstr ""
21508
21509 #. type: textblock
21510 #: ../java/examples/guestfs-java.pod:31
21511 msgid ""
21512 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
21513 "exception.  This has a single parameter which is the error message (a "
21514 "C<String>)."
21515 msgstr ""
21516
21517 #. type: textblock
21518 #: ../java/examples/guestfs-java.pod:35
21519 msgid "Calling any method on a closed handle raises the same exception."
21520 msgstr ""
21521
21522 #. type: textblock
21523 #: ../java/examples/guestfs-java.pod:47
21524 msgid ""
21525 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
21526 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
21527 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
21528 "L<http://caml.inria.fr/>."
21529 msgstr ""
21530
21531 #. type: textblock
21532 #: ../ocaml/examples/guestfs-ocaml.pod:5
21533 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
21534 msgstr ""
21535
21536 #. type: textblock
21537 #: ../ocaml/examples/guestfs-ocaml.pod:9
21538 msgid "Module style:"
21539 msgstr ""
21540
21541 #. type: verbatim
21542 #: ../ocaml/examples/guestfs-ocaml.pod:11
21543 #, no-wrap
21544 msgid ""
21545 " let g = Guestfs.create () in\n"
21546 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21547 " Guestfs.launch g;\n"
21548 "\n"
21549 msgstr ""
21550
21551 #. type: textblock
21552 #: ../ocaml/examples/guestfs-ocaml.pod:15
21553 msgid "Object-oriented style:"
21554 msgstr ""
21555
21556 #. type: verbatim
21557 #: ../ocaml/examples/guestfs-ocaml.pod:17
21558 #, no-wrap
21559 msgid ""
21560 " let g = new Guestfs.guestfs () in\n"
21561 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21562 " g#launch ();\n"
21563 "\n"
21564 msgstr ""
21565
21566 #. type: verbatim
21567 #: ../ocaml/examples/guestfs-ocaml.pod:21
21568 #, no-wrap
21569 msgid ""
21570 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
21571 "or:\n"
21572 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
21573 "\n"
21574 msgstr ""
21575
21576 #. type: textblock
21577 #: ../ocaml/examples/guestfs-ocaml.pod:27
21578 msgid ""
21579 "This manual page documents how to call libguestfs from the OCaml programming "
21580 "language.  This page just documents the differences from the C API and gives "
21581 "some examples.  If you are not familiar with using libguestfs, you also need "
21582 "to read L<guestfs(3)>."
21583 msgstr ""
21584
21585 #. type: =head2
21586 #: ../ocaml/examples/guestfs-ocaml.pod:32
21587 msgid "PROGRAMMING STYLES"
21588 msgstr ""
21589
21590 #. type: textblock
21591 #: ../ocaml/examples/guestfs-ocaml.pod:34
21592 msgid ""
21593 "There are two different programming styles supported by the OCaml bindings.  "
21594 "You can use a module style, with each C function mapped to an OCaml "
21595 "function:"
21596 msgstr ""
21597
21598 #. type: verbatim
21599 #: ../ocaml/examples/guestfs-ocaml.pod:38
21600 #, no-wrap
21601 msgid ""
21602 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
21603 "\n"
21604 msgstr ""
21605
21606 #. type: textblock
21607 #: ../ocaml/examples/guestfs-ocaml.pod:40
21608 msgid "becomes:"
21609 msgstr ""
21610
21611 #. type: verbatim
21612 #: ../ocaml/examples/guestfs-ocaml.pod:42
21613 #, no-wrap
21614 msgid ""
21615 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
21616 "\n"
21617 msgstr ""
21618
21619 #. type: textblock
21620 #: ../ocaml/examples/guestfs-ocaml.pod:44
21621 msgid ""
21622 "Alternately you can use an object-oriented style, calling methods on the "
21623 "class C<Guestfs.guestfs>:"
21624 msgstr ""
21625
21626 #. type: verbatim
21627 #: ../ocaml/examples/guestfs-ocaml.pod:47
21628 #, no-wrap
21629 msgid ""
21630 " method set_verbose : bool -> unit\n"
21631 "\n"
21632 msgstr ""
21633
21634 #. type: textblock
21635 #: ../ocaml/examples/guestfs-ocaml.pod:49
21636 msgid ""
21637 "The object-oriented style is usually briefer, and the minor performance "
21638 "penalty isn't noticable in the general overhead of performing libguestfs "
21639 "functions."
21640 msgstr ""
21641
21642 #. type: textblock
21643 #: ../ocaml/examples/guestfs-ocaml.pod:55
21644 msgid ""
21645 "The handle is closed when it is reaped by the garbage collector.  Because "
21646 "libguestfs handles include a lot of state, it is also possible to close (and "
21647 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
21648 "method."
21649 msgstr ""
21650
21651 #. type: textblock
21652 #: ../ocaml/examples/guestfs-ocaml.pod:62
21653 msgid ""
21654 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
21655 "exception.  This has a single parameter which is the error message (a "
21656 "string)."
21657 msgstr ""
21658
21659 #. type: textblock
21660 #: ../ocaml/examples/guestfs-ocaml.pod:66
21661 msgid ""
21662 "Calling any function/method on a closed handle raises "
21663 "C<Guestfs.Handle_closed>.  The single parameter is the name of the function "
21664 "that you called."
21665 msgstr ""
21666
21667 #. type: textblock
21668 #: ../ocaml/examples/guestfs-ocaml.pod:80
21669 msgid ""
21670 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
21671 "L<guestfs-java(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
21672 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
21673 "L<http://caml.inria.fr/>."
21674 msgstr ""
21675
21676 #. type: textblock
21677 #: ../perl/examples/guestfs-perl.pod:5
21678 msgid "guestfs-perl - How to use libguestfs from Perl"
21679 msgstr ""
21680
21681 #. type: verbatim
21682 #: ../perl/examples/guestfs-perl.pod:9
21683 #, no-wrap
21684 msgid ""
21685 " use Sys::Guestfs;\n"
21686 " \n"
21687 msgstr ""
21688
21689 #. type: verbatim
21690 #: ../perl/examples/guestfs-perl.pod:11
21691 #, no-wrap
21692 msgid ""
21693 " my $h = Sys::Guestfs->new ();\n"
21694 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
21695 " $h->launch ();\n"
21696 " $h->mount_options ('', '/dev/sda1', '/');\n"
21697 " $h->touch ('/hello');\n"
21698 " $h->sync ();\n"
21699 "\n"
21700 msgstr ""
21701
21702 #. type: textblock
21703 #: ../perl/examples/guestfs-perl.pod:20
21704 msgid ""
21705 "This manual page documents how to call libguestfs from the Perl programming "
21706 "language.  This page just documents the differences from the C API and gives "
21707 "some examples.  If you are not familiar with using libguestfs, you also need "
21708 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
21709 msgstr ""
21710
21711 #. type: =head2
21712 #: ../perl/examples/guestfs-perl.pod:26
21713 msgid "ERRORS"
21714 msgstr ""
21715
21716 #. type: textblock
21717 #: ../perl/examples/guestfs-perl.pod:28
21718 msgid ""
21719 "Errors from libguestfs functions turn into calls to C<croak> (see "
21720 "L<Carp(3)>)."
21721 msgstr ""
21722
21723 #. type: textblock
21724 #: ../perl/examples/guestfs-perl.pod:41
21725 msgid ""
21726 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, "
21727 "L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
21728 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, "
21729 "L<http://libguestfs.org/>."
21730 msgstr ""
21731
21732 #. type: textblock
21733 #: ../python/examples/guestfs-python.pod:5
21734 msgid "guestfs-python - How to use libguestfs from Python"
21735 msgstr ""
21736
21737 #. type: verbatim
21738 #: ../python/examples/guestfs-python.pod:9
21739 #, no-wrap
21740 msgid ""
21741 " import guestfs\n"
21742 " g = guestfs.GuestFS ()\n"
21743 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
21744 " g.launch\n"
21745 "\n"
21746 msgstr ""
21747
21748 #. type: textblock
21749 #: ../python/examples/guestfs-python.pod:16
21750 msgid ""
21751 "This manual page documents how to call libguestfs from the Python "
21752 "programming language.  This page just documents the differences from the C "
21753 "API and gives some examples.  If you are not familiar with using libguestfs, "
21754 "you also need to read L<guestfs(3)>."
21755 msgstr ""
21756
21757 #. type: textblock
21758 #: ../python/examples/guestfs-python.pod:23
21759 msgid ""
21760 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
21761 "single string argument which is the error message."
21762 msgstr ""
21763
21764 #. type: =head2
21765 #: ../python/examples/guestfs-python.pod:26
21766 msgid "MORE DOCUMENTATION"
21767 msgstr ""
21768
21769 #. type: textblock
21770 #: ../python/examples/guestfs-python.pod:28
21771 msgid "Type:"
21772 msgstr ""
21773
21774 #. type: verbatim
21775 #: ../python/examples/guestfs-python.pod:30
21776 #, no-wrap
21777 msgid ""
21778 " $ python\n"
21779 " >>> import guestfs\n"
21780 " >>> help (guestfs)\n"
21781 "\n"
21782 msgstr ""
21783
21784 #. type: textblock
21785 #: ../python/examples/guestfs-python.pod:44
21786 msgid ""
21787 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
21788 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
21789 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21790 msgstr ""
21791
21792 #. type: textblock
21793 #: ../rescue/virt-rescue.pod:5
21794 msgid "virt-rescue - Run a rescue shell on a virtual machine"
21795 msgstr ""
21796
21797 #. type: verbatim
21798 #: ../rescue/virt-rescue.pod:9
21799 #, no-wrap
21800 msgid ""
21801 " virt-rescue [--options] -d domname\n"
21802 "\n"
21803 msgstr ""
21804
21805 #. type: verbatim
21806 #: ../rescue/virt-rescue.pod:11
21807 #, no-wrap
21808 msgid ""
21809 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
21810 "\n"
21811 msgstr ""
21812
21813 #. type: verbatim
21814 #: ../rescue/virt-rescue.pod:15
21815 #, no-wrap
21816 msgid ""
21817 " virt-rescue [--options] domname\n"
21818 "\n"
21819 msgstr ""
21820
21821 #. type: verbatim
21822 #: ../rescue/virt-rescue.pod:17
21823 #, no-wrap
21824 msgid ""
21825 " virt-rescue [--options] disk.img [disk.img ...]\n"
21826 "\n"
21827 msgstr ""
21828
21829 #. type: textblock
21830 #: ../rescue/virt-rescue.pod:21
21831 msgid ""
21832 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
21833 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
21834 "you from doing this, but doesn't catch all cases."
21835 msgstr ""
21836
21837 #. type: textblock
21838 #: ../rescue/virt-rescue.pod:25
21839 msgid ""
21840 "However if you use the I<--ro> (read only) option, then you can attach a "
21841 "shell to a live virtual machine.  The results might be strange or "
21842 "inconsistent at times but you won't get disk corruption."
21843 msgstr ""
21844
21845 #. type: textblock
21846 #: ../rescue/virt-rescue.pod:31
21847 msgid ""
21848 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
21849 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
21850 "recovery tools which you can use to examine or rescue a virtual machine or "
21851 "disk image."
21852 msgstr ""
21853
21854 #. type: textblock
21855 #: ../rescue/virt-rescue.pod:36
21856 msgid ""
21857 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
21858 "on disk image(s):"
21859 msgstr ""
21860
21861 #. type: verbatim
21862 #: ../rescue/virt-rescue.pod:39
21863 #, no-wrap
21864 msgid ""
21865 " virt-rescue -d GuestName\n"
21866 "\n"
21867 msgstr ""
21868
21869 #. type: verbatim
21870 #: ../rescue/virt-rescue.pod:41
21871 #, no-wrap
21872 msgid ""
21873 " virt-rescue --ro -a /path/to/disk.img\n"
21874 "\n"
21875 msgstr ""
21876
21877 #. type: verbatim
21878 #: ../rescue/virt-rescue.pod:43
21879 #, no-wrap
21880 msgid ""
21881 " virt-rescue -a /dev/sdc\n"
21882 "\n"
21883 msgstr ""
21884
21885 #. type: textblock
21886 #: ../rescue/virt-rescue.pod:45
21887 msgid "For live VMs you I<must> use the --ro option."
21888 msgstr ""
21889
21890 #. type: textblock
21891 #: ../rescue/virt-rescue.pod:47
21892 msgid ""
21893 "When you run virt-rescue on a virtual machine or disk image, you are placed "
21894 "in an interactive bash shell where you can use many ordinary Linux "
21895 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
21896 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
21897 "is an empty directory called C</sysroot> where you can mount filesystems."
21898 msgstr ""
21899
21900 #. type: textblock
21901 #: ../rescue/virt-rescue.pod:54
21902 msgid ""
21903 "In the example below, we list logical volumes, then choose one to mount "
21904 "under C</sysroot>:"
21905 msgstr ""
21906
21907 #. type: verbatim
21908 #: ../rescue/virt-rescue.pod:57
21909 #, no-wrap
21910 msgid ""
21911 " ><rescue> lvs\n"
21912 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
21913 " lv_root vg_f11x64 -wi-a-   8.83G\n"
21914 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
21915 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
21916 " ><rescue> ls /sysroot\n"
21917 "\n"
21918 msgstr ""
21919
21920 #. type: textblock
21921 #: ../rescue/virt-rescue.pod:64
21922 msgid ""
21923 "If you don't know what filesystems are available on the virtual machine then "
21924 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
21925 msgstr ""
21926
21927 #. type: textblock
21928 #: ../rescue/virt-rescue.pod:70
21929 msgid ""
21930 "Virt-rescue can be used on I<any> disk image file or device, not just a "
21931 "virtual machine.  For example you can use it on a blank file if you want to "
21932 "partition that file (although we would recommend using L<guestfish(1)> "
21933 "instead as it is more suitable for this purpose).  You can even use "
21934 "virt-rescue on things like SD cards."
21935 msgstr ""
21936
21937 #. type: textblock
21938 #: ../rescue/virt-rescue.pod:76
21939 msgid ""
21940 "Virt-rescue does not require root.  You only need to run it as root if you "
21941 "need root to open the disk image."
21942 msgstr ""
21943
21944 #. type: textblock
21945 #: ../rescue/virt-rescue.pod:79
21946 msgid ""
21947 "This tool is just designed for quick interactive hacking on a virtual "
21948 "machine.  For more structured access to a virtual machine disk image, you "
21949 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
21950 "make scripted changes to guests, use L<guestfish(1)>."
21951 msgstr ""
21952
21953 #. type: =item
21954 #: ../rescue/virt-rescue.pod:103
21955 msgid "B<--append kernelopts>"
21956 msgstr ""
21957
21958 #. type: textblock
21959 #: ../rescue/virt-rescue.pod:105
21960 msgid "Pass additional options to the rescue kernel."
21961 msgstr ""
21962
21963 #. type: verbatim
21964 #: ../rescue/virt-rescue.pod:135
21965 #, no-wrap
21966 msgid ""
21967 " virt-rescue --format=raw -a disk.img\n"
21968 "\n"
21969 msgstr ""
21970
21971 #. type: verbatim
21972 #: ../rescue/virt-rescue.pod:139
21973 #, no-wrap
21974 msgid ""
21975 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
21976 "\n"
21977 msgstr ""
21978
21979 #. type: =item
21980 #: ../rescue/virt-rescue.pod:148
21981 msgid "B<-m MB>"
21982 msgstr ""
21983
21984 #. type: =item
21985 #: ../rescue/virt-rescue.pod:150
21986 msgid "B<--memsize MB>"
21987 msgstr ""
21988
21989 #. type: textblock
21990 #: ../rescue/virt-rescue.pod:152
21991 msgid ""
21992 "Change the amount of memory allocated to the rescue system.  The default is "
21993 "set by libguestfs and is small but adequate for running system tools.  The "
21994 "occasional program might need more memory.  The parameter is specified in "
21995 "megabytes."
21996 msgstr ""
21997
21998 #. type: =item
21999 #: ../rescue/virt-rescue.pod:157
22000 msgid "B<--network>"
22001 msgstr ""
22002
22003 #. type: textblock
22004 #: ../rescue/virt-rescue.pod:159
22005 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
22006 msgstr ""
22007
22008 #. type: textblock
22009 #: ../rescue/virt-rescue.pod:165
22010 msgid "Open the image read-only."
22011 msgstr ""
22012
22013 #. type: textblock
22014 #: ../rescue/virt-rescue.pod:175
22015 msgid ""
22016 "Enable SELinux in the rescue appliance.  You should read "
22017 "L<guestfs(3)/SELINUX> before using this option."
22018 msgstr ""
22019
22020 #. type: =item
22021 #: ../rescue/virt-rescue.pod:178
22022 msgid "B<--smp> N"
22023 msgstr ""
22024
22025 #. type: textblock
22026 #: ../rescue/virt-rescue.pod:180
22027 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
22028 msgstr ""
22029
22030 #. type: textblock
22031 #: ../rescue/virt-rescue.pod:198
22032 msgid ""
22033 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
22034 "are done read-write."
22035 msgstr ""
22036
22037 #. type: textblock
22038 #: ../rescue/virt-rescue.pod:211
22039 msgid "Previous versions of virt-rescue allowed you to write either:"
22040 msgstr ""
22041
22042 #. type: verbatim
22043 #: ../rescue/virt-rescue.pod:213
22044 #, no-wrap
22045 msgid ""
22046 " virt-rescue disk.img [disk.img ...]\n"
22047 "\n"
22048 msgstr ""
22049
22050 #. type: verbatim
22051 #: ../rescue/virt-rescue.pod:217
22052 #, no-wrap
22053 msgid ""
22054 " virt-rescue guestname\n"
22055 "\n"
22056 msgstr ""
22057
22058 #. type: =head1
22059 #: ../rescue/virt-rescue.pod:225
22060 msgid "NETWORK"
22061 msgstr ""
22062
22063 #. type: textblock
22064 #: ../rescue/virt-rescue.pod:227
22065 msgid ""
22066 "Adding the I<--network> option enables QEMU user networking in the rescue "
22067 "appliance.  There are some differences between user networking and ordinary "
22068 "networking:"
22069 msgstr ""
22070
22071 #. type: =item
22072 #: ../rescue/virt-rescue.pod:233
22073 msgid "ping does not work"
22074 msgstr ""
22075
22076 #. type: textblock
22077 #: ../rescue/virt-rescue.pod:235
22078 msgid ""
22079 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
22080 "send the ping packets, and because virt-rescue must be able to run as "
22081 "non-root, QEMU user networking is not able to emulate the L<ping(8)> "
22082 "command.  The ping command will appear to resolve addresses but will not be "
22083 "able to send or receive any packets.  This does not mean that the network is "
22084 "not working."
22085 msgstr ""
22086
22087 #. type: =item
22088 #: ../rescue/virt-rescue.pod:242
22089 msgid "cannot receive connections"
22090 msgstr ""
22091
22092 #. type: textblock
22093 #: ../rescue/virt-rescue.pod:244
22094 msgid "QEMU user networking cannot receive incoming connections."
22095 msgstr ""
22096
22097 #. type: =item
22098 #: ../rescue/virt-rescue.pod:246
22099 msgid "making TCP connections"
22100 msgstr ""
22101
22102 #. type: textblock
22103 #: ../rescue/virt-rescue.pod:248
22104 msgid ""
22105 "The virt-rescue appliance needs to be small and so does not include many "
22106 "network tools.  In particular there is no L<telnet(1)> command.  You can "
22107 "make TCP connections from the shell using the magical "
22108 "C</dev/tcp/E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
22109 msgstr ""
22110
22111 #. type: verbatim
22112 #: ../rescue/virt-rescue.pod:253
22113 #, no-wrap
22114 msgid ""
22115 " exec 3<>/dev/tcp/redhat.com/80\n"
22116 " echo \"GET /\" >&3\n"
22117 " cat <&3\n"
22118 "\n"
22119 msgstr ""
22120
22121 #. type: textblock
22122 #: ../rescue/virt-rescue.pod:257
22123 msgid "See L<bash(1)> for more details."
22124 msgstr ""
22125
22126 #. type: textblock
22127 #: ../rescue/virt-rescue.pod:263
22128 msgid ""
22129 "Several environment variables affect virt-rescue.  See "
22130 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
22131 msgstr ""
22132
22133 #. type: textblock
22134 #: ../rescue/virt-rescue.pod:290
22135 msgid ""
22136 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
22137 "L<http://libguestfs.org/>."
22138 msgstr ""
22139
22140 #. type: textblock
22141 #: ../resize/virt-resize.pod:5
22142 msgid "virt-resize - Resize a virtual machine disk"
22143 msgstr ""
22144
22145 #. type: verbatim
22146 #: ../resize/virt-resize.pod:9
22147 #, no-wrap
22148 msgid ""
22149 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
22150 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
22151 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
22152 "\n"
22153 msgstr ""
22154
22155 #. type: textblock
22156 #: ../resize/virt-resize.pod:15
22157 msgid ""
22158 "Virt-resize is a tool which can resize a virtual machine disk, making it "
22159 "larger or smaller overall, and resizing or deleting any partitions contained "
22160 "within."
22161 msgstr ""
22162
22163 #. type: textblock
22164 #: ../resize/virt-resize.pod:19
22165 msgid ""
22166 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
22167 "not> be used on live virtual machines - for consistent results, shut the "
22168 "virtual machine down before resizing it."
22169 msgstr ""
22170
22171 #. type: textblock
22172 #: ../resize/virt-resize.pod:23
22173 msgid ""
22174 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
22175 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
22176 msgstr ""
22177
22178 #. type: =item
22179 #: ../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
22180 msgid "1."
22181 msgstr ""
22182
22183 #. type: textblock
22184 #: ../resize/virt-resize.pod:33
22185 msgid ""
22186 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
22187 "fill the extra 5GB of space."
22188 msgstr ""
22189
22190 #. type: verbatim
22191 #: ../resize/virt-resize.pod:36
22192 #, no-wrap
22193 msgid ""
22194 " virt-filesystems --long -h --all -a olddisk\n"
22195 " \n"
22196 msgstr ""
22197
22198 #. type: verbatim
22199 #: ../resize/virt-resize.pod:38
22200 #, no-wrap
22201 msgid ""
22202 " truncate -r olddisk newdisk\n"
22203 " truncate -s +5G newdisk\n"
22204 " \n"
22205 msgstr ""
22206
22207 #. type: verbatim
22208 #: ../resize/virt-resize.pod:41
22209 #, no-wrap
22210 msgid ""
22211 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
22212 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
22213 "\n"
22214 msgstr ""
22215
22216 #. type: =item
22217 #: ../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
22218 msgid "2."
22219 msgstr ""
22220
22221 #. type: textblock
22222 #: ../resize/virt-resize.pod:46
22223 msgid ""
22224 "As above, but make the /boot partition 200MB bigger, while giving the "
22225 "remaining space to /dev/sda2:"
22226 msgstr ""
22227
22228 #. type: verbatim
22229 #: ../resize/virt-resize.pod:49
22230 #, no-wrap
22231 msgid ""
22232 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22233 "   olddisk newdisk\n"
22234 "\n"
22235 msgstr ""
22236
22237 #. type: =item
22238 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:610 ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:501 ../src/guestfs.pod:1451
22239 msgid "3."
22240 msgstr ""
22241
22242 #. type: textblock
22243 #: ../resize/virt-resize.pod:54
22244 msgid ""
22245 "As in the first example, but expand a logical volume as the final step.  "
22246 "This is what you would typically use for Linux guests that use LVM:"
22247 msgstr ""
22248
22249 #. type: verbatim
22250 #: ../resize/virt-resize.pod:58
22251 #, no-wrap
22252 msgid ""
22253 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
22254 "   olddisk newdisk\n"
22255 "\n"
22256 msgstr ""
22257
22258 #. type: =item
22259 #: ../resize/virt-resize.pod:61
22260 msgid "4."
22261 msgstr ""
22262
22263 #. type: textblock
22264 #: ../resize/virt-resize.pod:63
22265 msgid ""
22266 "As in the first example, but the output format will be qcow2 instead of a "
22267 "raw disk:"
22268 msgstr ""
22269
22270 #. type: verbatim
22271 #: ../resize/virt-resize.pod:66
22272 #, no-wrap
22273 msgid ""
22274 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
22275 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
22276 "\n"
22277 msgstr ""
22278
22279 #. type: =head1
22280 #: ../resize/virt-resize.pod:71
22281 msgid "DETAILED USAGE"
22282 msgstr ""
22283
22284 #. type: =head2
22285 #: ../resize/virt-resize.pod:73
22286 msgid "EXPANDING A VIRTUAL MACHINE DISK"
22287 msgstr ""
22288
22289 #. type: =item
22290 #: ../resize/virt-resize.pod:77
22291 msgid "1. Shut down the virtual machine"
22292 msgstr ""
22293
22294 #. type: =item
22295 #: ../resize/virt-resize.pod:79
22296 msgid "2. Locate input disk image"
22297 msgstr ""
22298
22299 #. type: textblock
22300 #: ../resize/virt-resize.pod:81
22301 msgid ""
22302 "Locate the input disk image (ie. the file or device on the host containing "
22303 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
22304 "dumpxml> like this to find the disk image name:"
22305 msgstr ""
22306
22307 #. type: verbatim
22308 #: ../resize/virt-resize.pod:85
22309 #, no-wrap
22310 msgid ""
22311 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
22312 " Found 1 nodes:\n"
22313 " -- NODE --\n"
22314 " <source dev=\"/dev/vg/lv_guest\" />\n"
22315 "\n"
22316 msgstr ""
22317
22318 #. type: =item
22319 #: ../resize/virt-resize.pod:90
22320 msgid "3. Look at current sizing"
22321 msgstr ""
22322
22323 #. type: textblock
22324 #: ../resize/virt-resize.pod:92
22325 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
22326 msgstr ""
22327
22328 #. type: verbatim
22329 #: ../resize/virt-resize.pod:95
22330 #, no-wrap
22331 msgid ""
22332 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
22333 " Name       Type       Size  Parent\n"
22334 " /dev/sda1  partition  101M  /dev/sda\n"
22335 " /dev/sda2  partition  7.9G  /dev/sda\n"
22336 " /dev/sda   device     8.0G  -\n"
22337 "\n"
22338 msgstr ""
22339
22340 #. type: textblock
22341 #: ../resize/virt-resize.pod:101
22342 msgid ""
22343 "(This example is a virtual machine with an 8 GB disk which we would like to "
22344 "expand up to 10 GB)."
22345 msgstr ""
22346
22347 #. type: =item
22348 #: ../resize/virt-resize.pod:104
22349 msgid "4. Create output disk"
22350 msgstr ""
22351
22352 #. type: textblock
22353 #: ../resize/virt-resize.pod:106
22354 msgid ""
22355 "Virt-resize cannot do in-place disk modifications.  You have to have space "
22356 "to store the resized output disk."
22357 msgstr ""
22358
22359 #. type: textblock
22360 #: ../resize/virt-resize.pod:109
22361 msgid "To store the resized disk image in a file, create a file of a suitable size:"
22362 msgstr ""
22363
22364 #. type: verbatim
22365 #: ../resize/virt-resize.pod:112
22366 #, no-wrap
22367 msgid ""
22368 " # rm -f outdisk\n"
22369 " # truncate -s 10G outdisk\n"
22370 "\n"
22371 msgstr ""
22372
22373 #. type: textblock
22374 #: ../resize/virt-resize.pod:115
22375 msgid "Or use L<lvcreate(1)> to create a logical volume:"
22376 msgstr ""
22377
22378 #. type: verbatim
22379 #: ../resize/virt-resize.pod:117
22380 #, no-wrap
22381 msgid ""
22382 " # lvcreate -L 10G -n lv_name vg_name\n"
22383 "\n"
22384 msgstr ""
22385
22386 #. type: textblock
22387 #: ../resize/virt-resize.pod:119
22388 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
22389 msgstr ""
22390
22391 #. type: verbatim
22392 #: ../resize/virt-resize.pod:121
22393 #, no-wrap
22394 msgid ""
22395 " # virsh pool-list\n"
22396 " # virsh vol-create-as poolname newvol 10G\n"
22397 "\n"
22398 msgstr ""
22399
22400 #. type: =item
22401 #: ../resize/virt-resize.pod:124
22402 msgid "5. Resize"
22403 msgstr ""
22404
22405 #. type: textblock
22406 #: ../resize/virt-resize.pod:126
22407 msgid ""
22408 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
22409 "file) and the output disk.  The output disk is the one created in the "
22410 "previous step."
22411 msgstr ""
22412
22413 #. type: verbatim
22414 #: ../resize/virt-resize.pod:130
22415 #, no-wrap
22416 msgid ""
22417 " # virt-resize indisk outdisk\n"
22418 "\n"
22419 msgstr ""
22420
22421 #. type: textblock
22422 #: ../resize/virt-resize.pod:132
22423 msgid ""
22424 "This command just copies disk image C<indisk> to disk image C<outdisk> "
22425 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
22426 "larger, then an extra, empty partition is created at the end of the disk "
22427 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
22428 "error."
22429 msgstr ""
22430
22431 #. type: textblock
22432 #: ../resize/virt-resize.pod:138
22433 msgid ""
22434 "More realistically you'd want to expand existing partitions in the disk "
22435 "image by passing extra options (for the full list see the L</OPTIONS> "
22436 "section below)."
22437 msgstr ""
22438
22439 #. type: textblock
22440 #: ../resize/virt-resize.pod:142
22441 msgid ""
22442 "L</--expand> is the most useful option.  It expands the named partition "
22443 "within the disk to fill any extra space:"
22444 msgstr ""
22445
22446 #. type: verbatim
22447 #: ../resize/virt-resize.pod:145
22448 #, no-wrap
22449 msgid ""
22450 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
22451 "\n"
22452 msgstr ""
22453
22454 #. type: textblock
22455 #: ../resize/virt-resize.pod:147
22456 msgid ""
22457 "(In this case, an extra partition is I<not> created at the end of the disk, "
22458 "because there will be no unused space)."
22459 msgstr ""
22460
22461 #. type: textblock
22462 #: ../resize/virt-resize.pod:150
22463 msgid ""
22464 "L</--resize> is the other commonly used option.  The following would "
22465 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
22466 "rest of the available space:"
22467 msgstr ""
22468
22469 #. type: verbatim
22470 #: ../resize/virt-resize.pod:154
22471 #, no-wrap
22472 msgid ""
22473 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22474 "     indisk outdisk\n"
22475 "\n"
22476 msgstr ""
22477
22478 #. type: textblock
22479 #: ../resize/virt-resize.pod:157
22480 msgid ""
22481 "If the expanded partition in the image contains a filesystem or LVM PV, then "
22482 "if virt-resize knows how, it will resize the contents, the equivalent of "
22483 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
22484 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
22485 "filesystems, so you would have to online resize them after booting the "
22486 "guest."
22487 msgstr ""
22488
22489 #. type: textblock
22490 #: ../resize/virt-resize.pod:164
22491 msgid "Other options are covered below."
22492 msgstr ""
22493
22494 #. type: =item
22495 #: ../resize/virt-resize.pod:166
22496 msgid "6. Test"
22497 msgstr ""
22498
22499 #. type: textblock
22500 #: ../resize/virt-resize.pod:168
22501 msgid "Thoroughly test the new disk image I<before> discarding the old one."
22502 msgstr ""
22503
22504 #. type: textblock
22505 #: ../resize/virt-resize.pod:170
22506 msgid "If you are using libvirt, edit the XML to point at the new disk:"
22507 msgstr ""
22508
22509 #. type: verbatim
22510 #: ../resize/virt-resize.pod:172
22511 #, no-wrap
22512 msgid ""
22513 " # virsh edit guestname\n"
22514 "\n"
22515 msgstr ""
22516
22517 #. type: textblock
22518 #: ../resize/virt-resize.pod:174
22519 msgid ""
22520 "Change E<lt>source ...E<gt>, see "
22521 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
22522 msgstr ""
22523
22524 #. type: textblock
22525 #: ../resize/virt-resize.pod:177
22526 msgid "Then start up the domain with the new, resized disk:"
22527 msgstr ""
22528
22529 #. type: verbatim
22530 #: ../resize/virt-resize.pod:179
22531 #, no-wrap
22532 msgid ""
22533 " # virsh start guestname\n"
22534 "\n"
22535 msgstr ""
22536
22537 #. type: textblock
22538 #: ../resize/virt-resize.pod:181
22539 msgid ""
22540 "and check that it still works.  See also the L</NOTES> section below for "
22541 "additional information."
22542 msgstr ""
22543
22544 #. type: =item
22545 #: ../resize/virt-resize.pod:184
22546 msgid "7. Resize LVs etc inside the guest"
22547 msgstr ""
22548
22549 #. type: textblock
22550 #: ../resize/virt-resize.pod:186
22551 msgid "(This can also be done offline using L<guestfish(1)>)"
22552 msgstr ""
22553
22554 #. type: textblock
22555 #: ../resize/virt-resize.pod:188
22556 msgid ""
22557 "Once the guest has booted you should see the new space available, at least "
22558 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
22559 "may need to resize LVs inside PVs, and also resize filesystem types that "
22560 "virt-resize does not know how to expand."
22561 msgstr ""
22562
22563 #. type: =head2
22564 #: ../resize/virt-resize.pod:195
22565 msgid "SHRINKING A VIRTUAL MACHINE DISK"
22566 msgstr ""
22567
22568 #. type: textblock
22569 #: ../resize/virt-resize.pod:197
22570 msgid ""
22571 "Shrinking is somewhat more complex than expanding, and only an overview is "
22572 "given here."
22573 msgstr ""
22574
22575 #. type: textblock
22576 #: ../resize/virt-resize.pod:200
22577 msgid ""
22578 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
22579 "filesystems).  The user has to shrink content before passing the disk image "
22580 "to virt-resize, and virt-resize will check that the content has been shrunk "
22581 "properly."
22582 msgstr ""
22583
22584 #. type: textblock
22585 #: ../resize/virt-resize.pod:205
22586 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
22587 msgstr ""
22588
22589 #. type: textblock
22590 #: ../resize/virt-resize.pod:207
22591 msgid ""
22592 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
22593 "steps 3 and 4 above to allocate a new disk image."
22594 msgstr ""
22595
22596 #. type: textblock
22597 #: ../resize/virt-resize.pod:210
22598 msgid "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
22599 msgstr ""
22600
22601 #. type: =head2
22602 #: ../resize/virt-resize.pod:213
22603 msgid "IGNORING OR DELETING PARTITIONS"
22604 msgstr ""
22605
22606 #. type: textblock
22607 #: ../resize/virt-resize.pod:215
22608 msgid ""
22609 "virt-resize also gives a convenient way to ignore or delete partitions when "
22610 "copying from the input disk to the output disk.  Ignoring a partition speeds "
22611 "up the copy where you don't care about the existing contents of a "
22612 "partition.  Deleting a partition removes it completely, but note that it "
22613 "also renumbers any partitions after the one which is deleted, which can "
22614 "leave some guests unbootable."
22615 msgstr ""
22616
22617 #. type: =head2
22618 #: ../resize/virt-resize.pod:222
22619 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
22620 msgstr ""
22621
22622 #. type: textblock
22623 #: ../resize/virt-resize.pod:224
22624 msgid ""
22625 "If the input disk is in qcow2 format, then you may prefer that the output is "
22626 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
22627 "the fly.  The output format is simply determined by the format of the empty "
22628 "output container that you provide.  Thus to create qcow2 output, use:"
22629 msgstr ""
22630
22631 #. type: verbatim
22632 #: ../resize/virt-resize.pod:230
22633 #, no-wrap
22634 msgid ""
22635 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
22636 "\n"
22637 msgstr ""
22638
22639 #. type: textblock
22640 #: ../resize/virt-resize.pod:232
22641 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
22642 msgstr ""
22643
22644 #. type: textblock
22645 #: ../resize/virt-resize.pod:234
22646 msgid "Similarly, to get non-sparse raw output use:"
22647 msgstr ""
22648
22649 #. type: verbatim
22650 #: ../resize/virt-resize.pod:236
22651 #, no-wrap
22652 msgid ""
22653 " fallocate -l size outdisk\n"
22654 "\n"
22655 msgstr ""
22656
22657 #. type: textblock
22658 #: ../resize/virt-resize.pod:238
22659 msgid ""
22660 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
22661 "if=/dev/zero of=outdisk bs=1M count=..>)"
22662 msgstr ""
22663
22664 #. type: =head2
22665 #: ../resize/virt-resize.pod:241
22666 msgid "LOGICAL PARTITIONS"
22667 msgstr ""
22668
22669 #. type: textblock
22670 #: ../resize/virt-resize.pod:243
22671 msgid ""
22672 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
22673 "tables) cannot be resized."
22674 msgstr ""
22675
22676 #. type: textblock
22677 #: ../resize/virt-resize.pod:246
22678 msgid ""
22679 "To understand what is going on, firstly one of the four partitions "
22680 "C</dev/sda1-4> will have MBR partition type C<05> or C<0f>.  This is called "
22681 "the B<extended partition>.  Use L<virt-filesystems(1)> to see the MBR "
22682 "partition type."
22683 msgstr ""
22684
22685 #. type: textblock
22686 #: ../resize/virt-resize.pod:251
22687 msgid "Logical partitions live inside the extended partition."
22688 msgstr ""
22689
22690 #. type: textblock
22691 #: ../resize/virt-resize.pod:253
22692 msgid ""
22693 "The extended partition can be expanded, but not shrunk (unless you force it, "
22694 "which is not advisable).  When the extended partition is copied across, all "
22695 "the logical partitions contained inside are copied over implicitly.  "
22696 "Virt-resize does not look inside the extended partition, so it copies the "
22697 "logical partitions blindly."
22698 msgstr ""
22699
22700 #. type: textblock
22701 #: ../resize/virt-resize.pod:259
22702 msgid ""
22703 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
22704 "line.  Doing so will give an error."
22705 msgstr ""
22706
22707 #. type: textblock
22708 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
22709 msgid "Display help."
22710 msgstr ""
22711
22712 #. type: =item
22713 #: ../resize/virt-resize.pod:270
22714 msgid "B<--align-first auto>"
22715 msgstr ""
22716
22717 #. type: =item
22718 #: ../resize/virt-resize.pod:272
22719 msgid "B<--align-first never>"
22720 msgstr ""
22721
22722 #. type: =item
22723 #: ../resize/virt-resize.pod:274
22724 msgid "B<--align-first always>"
22725 msgstr ""
22726
22727 #. type: textblock
22728 #: ../resize/virt-resize.pod:276
22729 msgid ""
22730 "Align the first partition for improved performance (see also the "
22731 "I<--alignment> option)."
22732 msgstr ""
22733
22734 #. type: textblock
22735 #: ../resize/virt-resize.pod:279
22736 msgid ""
22737 "The default is I<--align-first auto> which only aligns the first partition "
22738 "if it is safe to do so.  That is, only when we know how to fix the "
22739 "bootloader automatically, and at the moment that can only be done for "
22740 "Windows guests."
22741 msgstr ""
22742
22743 #. type: textblock
22744 #: ../resize/virt-resize.pod:284
22745 msgid ""
22746 "I<--align-first never> means we never move the first partition.  This is the "
22747 "safest option.  Try this if the guest does not boot after resizing."
22748 msgstr ""
22749
22750 #. type: textblock
22751 #: ../resize/virt-resize.pod:288
22752 msgid ""
22753 "I<--align-first always> means we always align the first partition (if it "
22754 "needs to be aligned).  For some guests this will break the bootloader, "
22755 "making the guest unbootable."
22756 msgstr ""
22757
22758 #. type: =item
22759 #: ../resize/virt-resize.pod:292
22760 msgid "B<--alignment N>"
22761 msgstr ""
22762
22763 #. type: textblock
22764 #: ../resize/virt-resize.pod:294
22765 msgid ""
22766 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
22767 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
22768 msgstr ""
22769
22770 #. type: textblock
22771 #: ../resize/virt-resize.pod:298
22772 msgid ""
22773 "Assuming 512 byte sector size inside the guest, here are some suitable "
22774 "values for this:"
22775 msgstr ""
22776
22777 #. type: =item
22778 #: ../resize/virt-resize.pod:303
22779 msgid "I<--alignment 1> (512 bytes)"
22780 msgstr ""
22781
22782 #. type: textblock
22783 #: ../resize/virt-resize.pod:305
22784 msgid ""
22785 "The partitions would be packed together as closely as possible, but would be "
22786 "completely unaligned.  In some cases this can cause very poor performance.  "
22787 "See L<virt-alignment-scan(1)> for further details."
22788 msgstr ""
22789
22790 #. type: =item
22791 #: ../resize/virt-resize.pod:309
22792 msgid "I<--alignment 8> (4K)"
22793 msgstr ""
22794
22795 #. type: textblock
22796 #: ../resize/virt-resize.pod:311
22797 msgid ""
22798 "This would be the minimum acceptable alignment for reasonable performance on "
22799 "modern hosts."
22800 msgstr ""
22801
22802 #. type: =item
22803 #: ../resize/virt-resize.pod:314
22804 msgid "I<--alignment 128> (64K)"
22805 msgstr ""
22806
22807 #. type: textblock
22808 #: ../resize/virt-resize.pod:316
22809 msgid ""
22810 "This alignment provides good performance when the host is using high end "
22811 "network storage."
22812 msgstr ""
22813
22814 #. type: =item
22815 #: ../resize/virt-resize.pod:319
22816 msgid "I<--alignment 2048> (1M)"
22817 msgstr ""
22818
22819 #. type: textblock
22820 #: ../resize/virt-resize.pod:321
22821 msgid ""
22822 "This is the standard alignment used by all newly installed guests since "
22823 "around 2008."
22824 msgstr ""
22825
22826 #. type: =item
22827 #: ../resize/virt-resize.pod:326
22828 msgid "B<-d>"
22829 msgstr ""
22830
22831 #. type: =item
22832 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177 ../tools/virt-win-reg.pl:120
22833 msgid "B<--debug>"
22834 msgstr ""
22835
22836 #. type: textblock
22837 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
22838 msgid "Enable debugging messages."
22839 msgstr ""
22840
22841 #. type: =item
22842 #: ../resize/virt-resize.pod:332
22843 msgid "B<--delete part>"
22844 msgstr ""
22845
22846 #. type: textblock
22847 #: ../resize/virt-resize.pod:334
22848 msgid ""
22849 "Delete the named partition.  It would be more accurate to describe this as "
22850 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
22851 "the original disk image is left intact."
22852 msgstr ""
22853
22854 #. type: textblock
22855 #: ../resize/virt-resize.pod:338
22856 msgid ""
22857 "Note that when you delete a partition, then anything contained in the "
22858 "partition is also deleted.  Furthermore, this causes any partitions that "
22859 "come after to be I<renumbered>, which can easily make your guest unbootable."
22860 msgstr ""
22861
22862 #. type: textblock
22863 #: ../resize/virt-resize.pod:343 ../resize/virt-resize.pod:404 ../resize/virt-resize.pod:531 ../sparsify/virt-sparsify.pod:145
22864 msgid "You can give this option multiple times."
22865 msgstr ""
22866
22867 #. type: =item
22868 #: ../resize/virt-resize.pod:345
22869 msgid "B<--expand part>"
22870 msgstr ""
22871
22872 #. type: textblock
22873 #: ../resize/virt-resize.pod:347
22874 msgid ""
22875 "Expand the named partition so it uses up all extra space (space left over "
22876 "after any other resize changes that you request have been done)."
22877 msgstr ""
22878
22879 #. type: textblock
22880 #: ../resize/virt-resize.pod:350
22881 msgid ""
22882 "If virt-resize knows how, it will expand the direct content of the "
22883 "partition.  For example, if the partition is an LVM PV, it will expand the "
22884 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
22885 "content it doesn't know about alone."
22886 msgstr ""
22887
22888 #. type: textblock
22889 #: ../resize/virt-resize.pod:355
22890 msgid "Currently virt-resize can resize:"
22891 msgstr ""
22892
22893 #. type: textblock
22894 #: ../resize/virt-resize.pod:361
22895 msgid "ext2, ext3 and ext4 filesystems."
22896 msgstr ""
22897
22898 #. type: textblock
22899 #: ../resize/virt-resize.pod:365
22900 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
22901 msgstr ""
22902
22903 #. type: textblock
22904 #: ../resize/virt-resize.pod:367
22905 msgid ""
22906 "The filesystem must have been shut down consistently last time it was used.  "
22907 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
22908 "consistency check, so at the first boot after resizing Windows will check "
22909 "the disk."
22910 msgstr ""
22911
22912 #. type: textblock
22913 #: ../resize/virt-resize.pod:374
22914 msgid ""
22915 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
22916 "inside the PV, but see the I<--LV-expand> option.  The user could also "
22917 "resize LVs as desired after boot."
22918 msgstr ""
22919
22920 #. type: textblock
22921 #: ../resize/virt-resize.pod:380
22922 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
22923 msgstr ""
22924
22925 #. type: textblock
22926 #: ../resize/virt-resize.pod:384 ../resize/virt-resize.pod:559
22927 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
22928 msgstr ""
22929
22930 #. type: =item
22931 #: ../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
22932 msgid "B<--format> raw"
22933 msgstr ""
22934
22935 #. type: textblock
22936 #: ../resize/virt-resize.pod:388 ../sparsify/virt-sparsify.pod:129
22937 msgid ""
22938 "Specify the format of the input disk image.  If this flag is not given then "
22939 "it is auto-detected from the image itself."
22940 msgstr ""
22941
22942 #. type: textblock
22943 #: ../resize/virt-resize.pod:394
22944 msgid ""
22945 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
22946 "AND NON-SPARSE RAW FORMATS>."
22947 msgstr ""
22948
22949 #. type: =item
22950 #: ../resize/virt-resize.pod:397
22951 msgid "B<--ignore part>"
22952 msgstr ""
22953
22954 #. type: textblock
22955 #: ../resize/virt-resize.pod:399
22956 msgid ""
22957 "Ignore the named partition.  Effectively this means the partition is "
22958 "allocated on the destination disk, but the content is not copied across from "
22959 "the source disk.  The content of the partition will be blank (all zero "
22960 "bytes)."
22961 msgstr ""
22962
22963 #. type: =item
22964 #: ../resize/virt-resize.pod:406
22965 msgid "B<--LV-expand logvol>"
22966 msgstr ""
22967
22968 #. type: textblock
22969 #: ../resize/virt-resize.pod:408
22970 msgid ""
22971 "This takes the logical volume and, as a final step, expands it to fill all "
22972 "the space available in its volume group.  A typical usage, assuming a Linux "
22973 "guest with a single PV C</dev/sda2> and a root device called "
22974 "C</dev/vg_guest/lv_root> would be:"
22975 msgstr ""
22976
22977 #. type: verbatim
22978 #: ../resize/virt-resize.pod:413
22979 #, no-wrap
22980 msgid ""
22981 " virt-resize indisk outdisk \\\n"
22982 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
22983 "\n"
22984 msgstr ""
22985
22986 #. type: textblock
22987 #: ../resize/virt-resize.pod:416
22988 msgid ""
22989 "This would first expand the partition (and PV), and then expand the root "
22990 "device to fill the extra space in the PV."
22991 msgstr ""
22992
22993 #. type: textblock
22994 #: ../resize/virt-resize.pod:419
22995 msgid ""
22996 "The contents of the LV are also resized if virt-resize knows how to do "
22997 "that.  You can stop virt-resize from trying to expand the content by using "
22998 "the option I<--no-expand-content>."
22999 msgstr ""
23000
23001 #. type: textblock
23002 #: ../resize/virt-resize.pod:423
23003 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
23004 msgstr ""
23005
23006 #. type: textblock
23007 #: ../resize/virt-resize.pod:425
23008 msgid ""
23009 "You can give this option multiple times, I<but> it doesn't make sense to do "
23010 "this unless the logical volumes you specify are all in different volume "
23011 "groups."
23012 msgstr ""
23013
23014 #. type: =item
23015 #: ../resize/virt-resize.pod:429 ../sparsify/virt-sparsify.pod:147
23016 msgid "B<--machine-readable>"
23017 msgstr ""
23018
23019 #. type: textblock
23020 #: ../resize/virt-resize.pod:431 ../sparsify/virt-sparsify.pod:149
23021 msgid ""
23022 "This option is used to make the output more machine friendly when being "
23023 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
23024 msgstr ""
23025
23026 #. type: =item
23027 #: ../resize/virt-resize.pod:437
23028 msgid "B<--dryrun>"
23029 msgstr ""
23030
23031 #. type: textblock
23032 #: ../resize/virt-resize.pod:439
23033 msgid "Print a summary of what would be done, but don't do anything."
23034 msgstr ""
23035
23036 #. type: =item
23037 #: ../resize/virt-resize.pod:441
23038 msgid "B<--no-copy-boot-loader>"
23039 msgstr ""
23040
23041 #. type: textblock
23042 #: ../resize/virt-resize.pod:443
23043 msgid ""
23044 "By default, virt-resize copies over some sectors at the start of the disk "
23045 "(up to the beginning of the first partition).  Commonly these sectors "
23046 "contain the Master Boot Record (MBR) and the boot loader, and are required "
23047 "in order for the guest to boot correctly."
23048 msgstr ""
23049
23050 #. type: textblock
23051 #: ../resize/virt-resize.pod:448
23052 msgid ""
23053 "If you specify this flag, then this initial copy is not done.  You may need "
23054 "to reinstall the boot loader in this case."
23055 msgstr ""
23056
23057 #. type: =item
23058 #: ../resize/virt-resize.pod:451
23059 msgid "B<--no-extra-partition>"
23060 msgstr ""
23061
23062 #. type: textblock
23063 #: ../resize/virt-resize.pod:453
23064 msgid ""
23065 "By default, virt-resize creates an extra partition if there is any extra, "
23066 "unused space after all resizing has happened.  Use this option to prevent "
23067 "the extra partition from being created.  If you do this then the extra space "
23068 "will be inaccessible until you run fdisk, parted, or some other partitioning "
23069 "tool in the guest."
23070 msgstr ""
23071
23072 #. type: textblock
23073 #: ../resize/virt-resize.pod:459
23074 msgid ""
23075 "Note that if the surplus space is smaller than 10 MB, no extra partition "
23076 "will be created."
23077 msgstr ""
23078
23079 #. type: =item
23080 #: ../resize/virt-resize.pod:462
23081 msgid "B<--no-expand-content>"
23082 msgstr ""
23083
23084 #. type: textblock
23085 #: ../resize/virt-resize.pod:464
23086 msgid ""
23087 "By default, virt-resize will try to expand the direct contents of "
23088 "partitions, if it knows how (see I<--expand> option above)."
23089 msgstr ""
23090
23091 #. type: textblock
23092 #: ../resize/virt-resize.pod:467
23093 msgid ""
23094 "If you give the I<--no-expand-content> option then virt-resize will not "
23095 "attempt this."
23096 msgstr ""
23097
23098 #. type: =item
23099 #: ../resize/virt-resize.pod:470
23100 msgid "B<--ntfsresize-force>"
23101 msgstr ""
23102
23103 #. type: textblock
23104 #: ../resize/virt-resize.pod:472
23105 msgid ""
23106 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
23107 "the NTFS disk is marked as needing a consistency check.  You have to use "
23108 "this option if you want to resize a Windows guest multiple times without "
23109 "booting into Windows between each resize."
23110 msgstr ""
23111
23112 #. type: =item
23113 #: ../resize/virt-resize.pod:478
23114 msgid "B<--output-format> raw"
23115 msgstr ""
23116
23117 #. type: textblock
23118 #: ../resize/virt-resize.pod:480
23119 msgid ""
23120 "Specify the format of the output disk image.  If this flag is not given then "
23121 "it is auto-detected from the image itself."
23122 msgstr ""
23123
23124 #. type: textblock
23125 #: ../resize/virt-resize.pod:486
23126 msgid ""
23127 "Note that this option I<does not create> the output format.  This option "
23128 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
23129 "need to create the output disk with the right format.  See L</QCOW2 AND "
23130 "NON-SPARSE RAW FORMATS>."
23131 msgstr ""
23132
23133 #. type: textblock
23134 #: ../resize/virt-resize.pod:495
23135 msgid "Don't print the summary."
23136 msgstr ""
23137
23138 #. type: =item
23139 #: ../resize/virt-resize.pod:497
23140 msgid "B<--resize part=size>"
23141 msgstr ""
23142
23143 #. type: textblock
23144 #: ../resize/virt-resize.pod:499
23145 msgid ""
23146 "Resize the named partition (expanding or shrinking it) so that it has the "
23147 "given size."
23148 msgstr ""
23149
23150 #. type: textblock
23151 #: ../resize/virt-resize.pod:502
23152 msgid ""
23153 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
23154 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
23155 "size; or as a relative number or percentage.  For example:"
23156 msgstr ""
23157
23158 #. type: verbatim
23159 #: ../resize/virt-resize.pod:508
23160 #, no-wrap
23161 msgid ""
23162 " --resize /dev/sda2=10G\n"
23163 "\n"
23164 msgstr ""
23165
23166 #. type: verbatim
23167 #: ../resize/virt-resize.pod:510
23168 #, no-wrap
23169 msgid ""
23170 " --resize /dev/sda4=90%\n"
23171 "\n"
23172 msgstr ""
23173
23174 #. type: verbatim
23175 #: ../resize/virt-resize.pod:512
23176 #, no-wrap
23177 msgid ""
23178 " --resize /dev/sda2=+1G\n"
23179 "\n"
23180 msgstr ""
23181
23182 #. type: verbatim
23183 #: ../resize/virt-resize.pod:514
23184 #, no-wrap
23185 msgid ""
23186 " --resize /dev/sda2=-200M\n"
23187 "\n"
23188 msgstr ""
23189
23190 #. type: verbatim
23191 #: ../resize/virt-resize.pod:516
23192 #, no-wrap
23193 msgid ""
23194 " --resize /dev/sda1=+128K\n"
23195 "\n"
23196 msgstr ""
23197
23198 #. type: verbatim
23199 #: ../resize/virt-resize.pod:518
23200 #, no-wrap
23201 msgid ""
23202 " --resize /dev/sda1=+10%\n"
23203 "\n"
23204 msgstr ""
23205
23206 #. type: verbatim
23207 #: ../resize/virt-resize.pod:520
23208 #, no-wrap
23209 msgid ""
23210 " --resize /dev/sda1=-10%\n"
23211 "\n"
23212 msgstr ""
23213
23214 #. type: textblock
23215 #: ../resize/virt-resize.pod:522
23216 msgid ""
23217 "You can increase the size of any partition.  Virt-resize will expand the "
23218 "direct content of the partition if it knows how (see I<--expand> below)."
23219 msgstr ""
23220
23221 #. type: textblock
23222 #: ../resize/virt-resize.pod:526
23223 msgid ""
23224 "You can only I<decrease> the size of partitions that contain filesystems or "
23225 "PVs which have already been shrunk.  Virt-resize will check this has been "
23226 "done before proceeding, or else will print an error (see also "
23227 "I<--resize-force>)."
23228 msgstr ""
23229
23230 #. type: =item
23231 #: ../resize/virt-resize.pod:533
23232 msgid "B<--resize-force part=size>"
23233 msgstr ""
23234
23235 #. type: textblock
23236 #: ../resize/virt-resize.pod:535
23237 msgid ""
23238 "This is the same as I<--resize> except that it will let you decrease the "
23239 "size of any partition.  Generally this means you will lose any data which "
23240 "was at the end of the partition you shrink, but you may not care about that "
23241 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
23242 "as a swap partition)."
23243 msgstr ""
23244
23245 #. type: textblock
23246 #: ../resize/virt-resize.pod:541
23247 msgid "See also the I<--ignore> option."
23248 msgstr ""
23249
23250 #. type: =item
23251 #: ../resize/virt-resize.pod:543
23252 msgid "B<--shrink part>"
23253 msgstr ""
23254
23255 #. type: textblock
23256 #: ../resize/virt-resize.pod:545
23257 msgid ""
23258 "Shrink the named partition until the overall disk image fits in the "
23259 "destination.  The named partition B<must> contain a filesystem or PV which "
23260 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
23261 "online tools).  Virt-resize will check this and give an error if it has not "
23262 "been done."
23263 msgstr ""
23264
23265 #. type: textblock
23266 #: ../resize/virt-resize.pod:551
23267 msgid ""
23268 "The amount by which the overall disk must be shrunk (after carrying out all "
23269 "other operations requested by the user) is called the \"deficit\".  For "
23270 "example, a straight copy (assume no other operations)  from a 5GB disk image "
23271 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
23272 "would give an error unless the user specified a partition to shrink and that "
23273 "partition had more than a gigabyte of free space."
23274 msgstr ""
23275
23276 #. type: =head1
23277 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:177
23278 msgid "MACHINE READABLE OUTPUT"
23279 msgstr ""
23280
23281 #. type: textblock
23282 #: ../resize/virt-resize.pod:571
23283 msgid ""
23284 "The I<--machine-readable> option can be used to make the output more machine "
23285 "friendly, which is useful when calling virt-resize from other programs, GUIs "
23286 "etc."
23287 msgstr ""
23288
23289 #. type: textblock
23290 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:183
23291 msgid "There are two ways to use this option."
23292 msgstr ""
23293
23294 #. type: textblock
23295 #: ../resize/virt-resize.pod:577
23296 msgid ""
23297 "Firstly use the option on its own to query the capabilities of the "
23298 "virt-resize binary.  Typical output looks like this:"
23299 msgstr ""
23300
23301 #. type: verbatim
23302 #: ../resize/virt-resize.pod:580
23303 #, no-wrap
23304 msgid ""
23305 " $ virt-resize --machine-readable\n"
23306 " virt-resize\n"
23307 " ntfsresize-force\n"
23308 " 32bitok\n"
23309 " ntfs\n"
23310 " btrfs\n"
23311 "\n"
23312 msgstr ""
23313
23314 #. type: textblock
23315 #: ../resize/virt-resize.pod:587 ../sparsify/virt-sparsify.pod:193
23316 msgid ""
23317 "A list of features is printed, one per line, and the program exits with "
23318 "status 0."
23319 msgstr ""
23320
23321 #. type: textblock
23322 #: ../resize/virt-resize.pod:590 ../sparsify/virt-sparsify.pod:196
23323 msgid ""
23324 "Secondly use the option in conjunction with other options to make the "
23325 "regular program output more machine friendly."
23326 msgstr ""
23327
23328 #. type: textblock
23329 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:199
23330 msgid "At the moment this means:"
23331 msgstr ""
23332
23333 #. type: textblock
23334 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:205
23335 msgid ""
23336 "Progress bar messages can be parsed from stdout by looking for this regular "
23337 "expression:"
23338 msgstr ""
23339
23340 #. type: verbatim
23341 #: ../resize/virt-resize.pod:602 ../sparsify/virt-sparsify.pod:208
23342 #, no-wrap
23343 msgid ""
23344 " ^[0-9]+/[0-9]+$\n"
23345 "\n"
23346 msgstr ""
23347
23348 #. type: textblock
23349 #: ../resize/virt-resize.pod:606 ../sparsify/virt-sparsify.pod:212
23350 msgid ""
23351 "The calling program should treat messages sent to stdout (except for "
23352 "progress bar messages) as status messages.  They can be logged and/or "
23353 "displayed to the user."
23354 msgstr ""
23355
23356 #. type: textblock
23357 #: ../resize/virt-resize.pod:612
23358 msgid ""
23359 "The calling program should treat messages sent to stderr as error messages.  "
23360 "In addition, virt-resize exits with a non-zero status code if there was a "
23361 "fatal error."
23362 msgstr ""
23363
23364 #. type: textblock
23365 #: ../resize/virt-resize.pod:618
23366 msgid ""
23367 "Versions of the program prior to 1.13.9 did not support the "
23368 "I<--machine-readable> option and will return an error."
23369 msgstr ""
23370
23371 #. type: =head2
23372 #: ../resize/virt-resize.pod:623
23373 msgid "\"Partition 1 does not end on cylinder boundary.\""
23374 msgstr ""
23375
23376 #. type: textblock
23377 #: ../resize/virt-resize.pod:625
23378 msgid ""
23379 "Virt-resize aligns partitions to multiples of 128 sectors (see the "
23380 "I<--alignment> parameter).  Usually this means the partitions will not be "
23381 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
23382 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
23383 "drives.  Alignment of partitions to cylinders is not required by any modern "
23384 "operating system."
23385 msgstr ""
23386
23387 #. type: =head2
23388 #: ../resize/virt-resize.pod:632
23389 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
23390 msgstr ""
23391
23392 #. type: textblock
23393 #: ../resize/virt-resize.pod:634
23394 msgid ""
23395 "In Windows Vista and later versions, Microsoft switched to using a separate "
23396 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
23397 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
23398 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
23399 "the second partition (ie. C: drive)  should work."
23400 msgstr ""
23401
23402 #. type: textblock
23403 #: ../resize/virt-resize.pod:641
23404 msgid ""
23405 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
23406 "NTFS partitions have been expanded.  This is just a safety check and (unless "
23407 "it find errors) is nothing to worry about."
23408 msgstr ""
23409
23410 #. type: =head2
23411 #: ../resize/virt-resize.pod:645
23412 msgid "GUEST BOOT STUCK AT \"GRUB\""
23413 msgstr ""
23414
23415 #. type: textblock
23416 #: ../resize/virt-resize.pod:647
23417 msgid ""
23418 "If a Linux guest does not boot after resizing, and the boot is stuck after "
23419 "printing C<GRUB> on the console, try reinstalling grub."
23420 msgstr ""
23421
23422 #. type: verbatim
23423 #: ../resize/virt-resize.pod:650
23424 #, no-wrap
23425 msgid ""
23426 " guestfish -i -a newdisk\n"
23427 " ><fs> cat /boot/grub/device.map\n"
23428 " # check the contents of this file are sensible or\n"
23429 " # edit the file if necessary\n"
23430 " ><fs> grub-install / /dev/vda\n"
23431 " ><fs> exit\n"
23432 "\n"
23433 msgstr ""
23434
23435 #. type: textblock
23436 #: ../resize/virt-resize.pod:657
23437 msgid ""
23438 "For more flexible guest reconfiguration, including if you need to specify "
23439 "other parameters to grub-install, use L<virt-rescue(1)>."
23440 msgstr ""
23441
23442 #. type: =head1
23443 #: ../resize/virt-resize.pod:660
23444 msgid "ALTERNATIVE TOOLS"
23445 msgstr ""
23446
23447 #. type: textblock
23448 #: ../resize/virt-resize.pod:662
23449 msgid ""
23450 "There are several proprietary tools for resizing partitions.  We won't "
23451 "mention any here."
23452 msgstr ""
23453
23454 #. type: textblock
23455 #: ../resize/virt-resize.pod:665
23456 msgid ""
23457 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
23458 "operations on disk images.  They can resize and move partitions, but I don't "
23459 "think they can do anything with the contents, and they certainly don't "
23460 "understand LVM."
23461 msgstr ""
23462
23463 #. type: textblock
23464 #: ../resize/virt-resize.pod:670
23465 msgid ""
23466 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
23467 "but at a much lower level.  You will probably end up hand-calculating sector "
23468 "offsets, which is something that virt-resize was designed to avoid.  If you "
23469 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
23470 "I<--debug> flag."
23471 msgstr ""
23472
23473 #. type: textblock
23474 #: ../resize/virt-resize.pod:690
23475 msgid ""
23476 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
23477 "L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
23478 "L<ntfsresize(8)>, L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
23479 "L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
23480 "L<virt-sparsify(1)>, L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
23481 msgstr ""
23482
23483 #. type: textblock
23484 #: ../ruby/examples/guestfs-ruby.pod:5
23485 msgid "guestfs-ruby - How to use libguestfs from Ruby"
23486 msgstr ""
23487
23488 #. type: verbatim
23489 #: ../ruby/examples/guestfs-ruby.pod:9
23490 #, no-wrap
23491 msgid ""
23492 " require 'guestfs'\n"
23493 " g = Guestfs::Guestfs.new()\n"
23494 " g.add_drive_opts(\"disk.img\",\n"
23495 "                  :readonly => 1, :format => \"raw\")\n"
23496 " g.launch()\n"
23497 "\n"
23498 msgstr ""
23499
23500 #. type: textblock
23501 #: ../ruby/examples/guestfs-ruby.pod:17
23502 msgid ""
23503 "This manual page documents how to call libguestfs from the Ruby programming "
23504 "language.  This page just documents the differences from the C API and gives "
23505 "some examples.  If you are not familiar with using libguestfs, you also need "
23506 "to read L<guestfs(3)>."
23507 msgstr ""
23508
23509 #. type: textblock
23510 #: ../ruby/examples/guestfs-ruby.pod:24
23511 msgid ""
23512 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
23513 "This has a single parameter which is the error message (a string)."
23514 msgstr ""
23515
23516 #. type: textblock
23517 #: ../ruby/examples/guestfs-ruby.pod:38
23518 msgid ""
23519 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
23520 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
23521 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
23522 msgstr ""
23523
23524 #. type: textblock
23525 #: ../sparsify/virt-sparsify.pod:5
23526 msgid "virt-sparsify - Make a virtual machine disk sparse"
23527 msgstr ""
23528
23529 #. type: verbatim
23530 #: ../sparsify/virt-sparsify.pod:9
23531 #, no-wrap
23532 msgid ""
23533 " virt-sparsify [--options] indisk outdisk\n"
23534 "\n"
23535 msgstr ""
23536
23537 #. type: textblock
23538 #: ../sparsify/virt-sparsify.pod:13
23539 msgid ""
23540 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
23541 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
23542 "the disk image can be converted back to free space on the host."
23543 msgstr ""
23544
23545 #. type: textblock
23546 #: ../sparsify/virt-sparsify.pod:18
23547 msgid ""
23548 "Virt-sparsify can locate and sparsify free space in most filesystems "
23549 "(eg. ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
23550 msgstr ""
23551
23552 #. type: textblock
23553 #: ../sparsify/virt-sparsify.pod:21
23554 msgid ""
23555 "Virt-sparsify can also convert between some disk formats, for example "
23556 "converting a raw disk image to a thin-provisioned qcow2 image."
23557 msgstr ""
23558
23559 #. type: textblock
23560 #: ../sparsify/virt-sparsify.pod:24
23561 msgid ""
23562 "Virt-sparsify can operate on any disk image, not just ones from virtual "
23563 "machines.  If a virtual machine has more than one attached disk, you must "
23564 "sparsify each one separately."
23565 msgstr ""
23566
23567 #. type: =head2
23568 #: ../sparsify/virt-sparsify.pod:28
23569 msgid "IMPORTANT LIMITATIONS"
23570 msgstr ""
23571
23572 #. type: textblock
23573 #: ../sparsify/virt-sparsify.pod:34
23574 msgid ""
23575 "Virt-sparsify does not do in-place modifications.  It copies from a source "
23576 "image to a destination image, leaving the source unchanged.  I<Check that "
23577 "the sparsification was successful before deleting the source image>."
23578 msgstr ""
23579
23580 #. type: textblock
23581 #: ../sparsify/virt-sparsify.pod:41
23582 msgid "The virtual machine I<must be shut down> before using this tool."
23583 msgstr ""
23584
23585 #. type: textblock
23586 #: ../sparsify/virt-sparsify.pod:45
23587 msgid ""
23588 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
23589 "(1 temporary copy + 1 destination image).  This is in the worst case and "
23590 "usually much less space is required."
23591 msgstr ""
23592
23593 #. type: textblock
23594 #: ../sparsify/virt-sparsify.pod:51
23595 msgid "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
23596 msgstr ""
23597
23598 #. type: textblock
23599 #: ../sparsify/virt-sparsify.pod:56
23600 msgid "Virt-sparsify cannot handle encrypted disks."
23601 msgstr ""
23602
23603 #. type: textblock
23604 #: ../sparsify/virt-sparsify.pod:60
23605 msgid ""
23606 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
23607 "this space is often used for critical items like bootloaders so it's not "
23608 "really unused."
23609 msgstr ""
23610
23611 #. type: textblock
23612 #: ../sparsify/virt-sparsify.pod:66
23613 msgid ""
23614 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
23615 "to do this unless we can be sure there is no hibernation data, so at the "
23616 "moment swap partitions are ignored."
23617 msgstr ""
23618
23619 #. type: textblock
23620 #: ../sparsify/virt-sparsify.pod:72
23621 msgid ""
23622 "You may also want to read the manual pages for the associated tools "
23623 "L<virt-filesystems(1)> and L<virt-df(1)> before starting."
23624 msgstr ""
23625
23626 #. type: textblock
23627 #: ../sparsify/virt-sparsify.pod:77
23628 msgid "Typical usage is:"
23629 msgstr ""
23630
23631 #. type: verbatim
23632 #: ../sparsify/virt-sparsify.pod:79
23633 #, no-wrap
23634 msgid ""
23635 " virt-sparsify indisk outdisk\n"
23636 "\n"
23637 msgstr ""
23638
23639 #. type: textblock
23640 #: ../sparsify/virt-sparsify.pod:81
23641 msgid ""
23642 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
23643 "is created, or overwritten if it already exists.  The format of the input "
23644 "disk is detected (eg. qcow2) and the same format is used for the output "
23645 "disk."
23646 msgstr ""
23647
23648 #. type: textblock
23649 #: ../sparsify/virt-sparsify.pod:86
23650 msgid "To convert between formats, use the I<--convert> option:"
23651 msgstr ""
23652
23653 #. type: verbatim
23654 #: ../sparsify/virt-sparsify.pod:88
23655 #, no-wrap
23656 msgid ""
23657 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
23658 "\n"
23659 msgstr ""
23660
23661 #. type: textblock
23662 #: ../sparsify/virt-sparsify.pod:90
23663 msgid ""
23664 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
23665 "can find within the source disk image.  You can get it to ignore (don't zero "
23666 "free space on) certain filesystems by doing:"
23667 msgstr ""
23668
23669 #. type: verbatim
23670 #: ../sparsify/virt-sparsify.pod:94
23671 #, no-wrap
23672 msgid ""
23673 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
23674 "\n"
23675 msgstr ""
23676
23677 #. type: textblock
23678 #: ../sparsify/virt-sparsify.pod:96
23679 msgid "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
23680 msgstr ""
23681
23682 #. type: =item
23683 #: ../sparsify/virt-sparsify.pod:107
23684 msgid "B<--convert> raw"
23685 msgstr ""
23686
23687 #. type: =item
23688 #: ../sparsify/virt-sparsify.pod:109
23689 msgid "B<--convert> qcow2"
23690 msgstr ""
23691
23692 #. type: =item
23693 #: ../sparsify/virt-sparsify.pod:111
23694 msgid "B<--convert> [other formats]"
23695 msgstr ""
23696
23697 #. type: textblock
23698 #: ../sparsify/virt-sparsify.pod:113
23699 msgid ""
23700 "Use C<output-format> as the format for the destination image.  If this is "
23701 "not specified, then the input format is used."
23702 msgstr ""
23703
23704 #. type: textblock
23705 #: ../sparsify/virt-sparsify.pod:116
23706 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
23707 msgstr ""
23708
23709 #. type: textblock
23710 #: ../sparsify/virt-sparsify.pod:118
23711 msgid ""
23712 "You can also use any format supported by the L<qemu-img(1)> program, "
23713 "eg. C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
23714 msgstr ""
23715
23716 #. type: textblock
23717 #: ../sparsify/virt-sparsify.pod:122
23718 msgid ""
23719 "Specifying the I<--convert> option is usually a good idea, because then "
23720 "virt-sparsify doesn't need to try to guess the input format."
23721 msgstr ""
23722
23723 #. type: =item
23724 #: ../sparsify/virt-sparsify.pod:127
23725 msgid "B<--format> qcow2"
23726 msgstr ""
23727
23728 #. type: =item
23729 #: ../sparsify/virt-sparsify.pod:135
23730 msgid "B<--ignore> filesystem"
23731 msgstr ""
23732
23733 #. type: =item
23734 #: ../sparsify/virt-sparsify.pod:137
23735 msgid "B<--ignore> volgroup"
23736 msgstr ""
23737
23738 #. type: textblock
23739 #: ../sparsify/virt-sparsify.pod:139
23740 msgid ""
23741 "Ignore the named filesystem.  Free space on the filesystem will not be "
23742 "zeroed, but existing blocks of zeroes will still be sparsified."
23743 msgstr ""
23744
23745 #. type: textblock
23746 #: ../sparsify/virt-sparsify.pod:142
23747 msgid ""
23748 "In the second form, this ignores the named volume group.  Use the volume "
23749 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
23750 msgstr ""
23751
23752 #. type: textblock
23753 #: ../sparsify/virt-sparsify.pod:157
23754 msgid "This disables progress bars and other unnecessary output."
23755 msgstr ""
23756
23757 #. type: textblock
23758 #: ../sparsify/virt-sparsify.pod:179
23759 msgid ""
23760 "The I<--machine-readable> option can be used to make the output more machine "
23761 "friendly, which is useful when calling virt-sparsify from other programs, "
23762 "GUIs etc."
23763 msgstr ""
23764
23765 #. type: textblock
23766 #: ../sparsify/virt-sparsify.pod:185
23767 msgid ""
23768 "Firstly use the option on its own to query the capabilities of the "
23769 "virt-sparsify binary.  Typical output looks like this:"
23770 msgstr ""
23771
23772 #. type: verbatim
23773 #: ../sparsify/virt-sparsify.pod:188
23774 #, no-wrap
23775 msgid ""
23776 " $ virt-sparsify --machine-readable\n"
23777 " virt-sparsify\n"
23778 " ntfs\n"
23779 " btrfs\n"
23780 "\n"
23781 msgstr ""
23782
23783 #. type: textblock
23784 #: ../sparsify/virt-sparsify.pod:218
23785 msgid ""
23786 "The calling program should treat messages sent to stderr as error messages.  "
23787 "In addition, virt-sparsify exits with a non-zero status code if there was a "
23788 "fatal error."
23789 msgstr ""
23790
23791 #. type: textblock
23792 #: ../sparsify/virt-sparsify.pod:224
23793 msgid ""
23794 "All versions of virt-sparsify have supported the I<--machine-readable> "
23795 "option."
23796 msgstr ""
23797
23798 #. type: textblock
23799 #: ../sparsify/virt-sparsify.pod:238
23800 msgid ""
23801 "Location of the temporary directory used for the potentially large temporary "
23802 "overlay file."
23803 msgstr ""
23804
23805 #. type: textblock
23806 #: ../sparsify/virt-sparsify.pod:241
23807 msgid ""
23808 "You should ensure there is enough free space in the worst case for a full "
23809 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
23810 "to another directory that has enough space."
23811 msgstr ""
23812
23813 #. type: textblock
23814 #: ../sparsify/virt-sparsify.pod:245
23815 msgid "This defaults to C</tmp>."
23816 msgstr ""
23817
23818 #. type: textblock
23819 #: ../sparsify/virt-sparsify.pod:249
23820 msgid "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
23821 msgstr ""
23822
23823 #. type: textblock
23824 #: ../sparsify/virt-sparsify.pod:253
23825 msgid ""
23826 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
23827 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, "
23828 "L<qemu-img(1)>, L<http://libguestfs.org/>."
23829 msgstr ""
23830
23831 #. type: =head2
23832 #: ../src/guestfs-actions.pod:1
23833 msgid "guestfs_add_cdrom"
23834 msgstr ""
23835
23836 #. type: verbatim
23837 #: ../src/guestfs-actions.pod:3
23838 #, no-wrap
23839 msgid ""
23840 " int\n"
23841 " guestfs_add_cdrom (guestfs_h *g,\n"
23842 "                    const char *filename);\n"
23843 "\n"
23844 msgstr ""
23845
23846 #. type: textblock
23847 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302 ../src/guestfs-actions.pod:323
23848 msgid ""
23849 "I<This function is deprecated.> In new code, use the "
23850 "L</guestfs_add_drive_opts> call instead."
23851 msgstr ""
23852
23853 #. type: textblock
23854 #: ../src/guestfs-actions.pod:24
23855 msgid ""
23856 "This call checks for the existence of C<filename>.  This stops you from "
23857 "specifying other types of drive which are supported by qemu such as C<nbd:> "
23858 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
23859 "instead."
23860 msgstr ""
23861
23862 #. type: textblock
23863 #: ../src/guestfs-actions.pod:31
23864 msgid ""
23865 "If you just want to add an ISO file (often you use this as an efficient way "
23866 "to transfer large files into the guest), then you should probably use "
23867 "C<guestfs_add_drive_ro> instead."
23868 msgstr ""
23869
23870 #. type: textblock
23871 #: ../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:1423 ../src/guestfs-actions.pod:1474 ../src/guestfs-actions.pod:1530 ../src/guestfs-actions.pod:1582 ../src/guestfs-actions.pod:1601 ../src/guestfs-actions.pod:1615 ../src/guestfs-actions.pod:1643 ../src/guestfs-actions.pod:1713 ../src/guestfs-actions.pod:1744 ../src/guestfs-actions.pod:1769 ../src/guestfs-actions.pod:1811 ../src/guestfs-actions.pod:1924 ../src/guestfs-actions.pod:1951 ../src/guestfs-actions.pod:2166 ../src/guestfs-actions.pod:2188 ../src/guestfs-actions.pod:2275 ../src/guestfs-actions.pod:2783 ../src/guestfs-actions.pod:2927 ../src/guestfs-actions.pod:2988 ../src/guestfs-actions.pod:3023 ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4095 ../src/guestfs-actions.pod:4120 ../src/guestfs-actions.pod:4309 ../src/guestfs-actions.pod:4323 ../src/guestfs-actions.pod:4336 ../src/guestfs-actions.pod:4350 ../src/guestfs-actions.pod:4365 ../src/guestfs-actions.pod:4401 ../src/guestfs-actions.pod:4473 ../src/guestfs-actions.pod:4493 ../src/guestfs-actions.pod:4510 ../src/guestfs-actions.pod:4533 ../src/guestfs-actions.pod:4556 ../src/guestfs-actions.pod:4591 ../src/guestfs-actions.pod:4610 ../src/guestfs-actions.pod:4629 ../src/guestfs-actions.pod:4664 ../src/guestfs-actions.pod:4676 ../src/guestfs-actions.pod:4712 ../src/guestfs-actions.pod:4728 ../src/guestfs-actions.pod:4741 ../src/guestfs-actions.pod:4756 ../src/guestfs-actions.pod:4773 ../src/guestfs-actions.pod:4866 ../src/guestfs-actions.pod:4886 ../src/guestfs-actions.pod:4899 ../src/guestfs-actions.pod:4950 ../src/guestfs-actions.pod:4968 ../src/guestfs-actions.pod:4986 ../src/guestfs-actions.pod:5002 ../src/guestfs-actions.pod:5016 ../src/guestfs-actions.pod:5030 ../src/guestfs-actions.pod:5047 ../src/guestfs-actions.pod:5062 ../src/guestfs-actions.pod:5089 ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5225 ../src/guestfs-actions.pod:5256 ../src/guestfs-actions.pod:5275 ../src/guestfs-actions.pod:5294 ../src/guestfs-actions.pod:5306 ../src/guestfs-actions.pod:5323 ../src/guestfs-actions.pod:5336 ../src/guestfs-actions.pod:5351 ../src/guestfs-actions.pod:5366 ../src/guestfs-actions.pod:5398 ../src/guestfs-actions.pod:5424 ../src/guestfs-actions.pod:5463 ../src/guestfs-actions.pod:5483 ../src/guestfs-actions.pod:5497 ../src/guestfs-actions.pod:5514 ../src/guestfs-actions.pod:5563 ../src/guestfs-actions.pod:5616 ../src/guestfs-actions.pod:5663 ../src/guestfs-actions.pod:5706 ../src/guestfs-actions.pod:5734 ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:5769 ../src/guestfs-actions.pod:5909 ../src/guestfs-actions.pod:5966 ../src/guestfs-actions.pod:5988 ../src/guestfs-actions.pod:6006 ../src/guestfs-actions.pod:6056 ../src/guestfs-actions.pod:6122 ../src/guestfs-actions.pod:6139 ../src/guestfs-actions.pod:6152 ../src/guestfs-actions.pod:6166 ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6474 ../src/guestfs-actions.pod:6493 ../src/guestfs-actions.pod:6507 ../src/guestfs-actions.pod:6519 ../src/guestfs-actions.pod:6533 ../src/guestfs-actions.pod:6545 ../src/guestfs-actions.pod:6559 ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6596 ../src/guestfs-actions.pod:6615 ../src/guestfs-actions.pod:6634 ../src/guestfs-actions.pod:6664 ../src/guestfs-actions.pod:6682 ../src/guestfs-actions.pod:6705 ../src/guestfs-actions.pod:6723 ../src/guestfs-actions.pod:6742 ../src/guestfs-actions.pod:6763 ../src/guestfs-actions.pod:6782 ../src/guestfs-actions.pod:6799 ../src/guestfs-actions.pod:6818 ../src/guestfs-actions.pod:6846 ../src/guestfs-actions.pod:6870 ../src/guestfs-actions.pod:6889 ../src/guestfs-actions.pod:6905 ../src/guestfs-actions.pod:6929 ../src/guestfs-actions.pod:6948 ../src/guestfs-actions.pod:6963 ../src/guestfs-actions.pod:6982 ../src/guestfs-actions.pod:7026 ../src/guestfs-actions.pod:7056 ../src/guestfs-actions.pod:7089 ../src/guestfs-actions.pod:7204 ../src/guestfs-actions.pod:7325 ../src/guestfs-actions.pod:7337 ../src/guestfs-actions.pod:7350 ../src/guestfs-actions.pod:7363 ../src/guestfs-actions.pod:7385 ../src/guestfs-actions.pod:7398 ../src/guestfs-actions.pod:7411 ../src/guestfs-actions.pod:7424 ../src/guestfs-actions.pod:7439 ../src/guestfs-actions.pod:7498 ../src/guestfs-actions.pod:7515 ../src/guestfs-actions.pod:7531 ../src/guestfs-actions.pod:7547 ../src/guestfs-actions.pod:7564 ../src/guestfs-actions.pod:7577 ../src/guestfs-actions.pod:7597 ../src/guestfs-actions.pod:7633 ../src/guestfs-actions.pod:7647 ../src/guestfs-actions.pod:7688 ../src/guestfs-actions.pod:7701 ../src/guestfs-actions.pod:7719 ../src/guestfs-actions.pod:7753 ../src/guestfs-actions.pod:7789 ../src/guestfs-actions.pod:7905 ../src/guestfs-actions.pod:7920 ../src/guestfs-actions.pod:7934 ../src/guestfs-actions.pod:7989 ../src/guestfs-actions.pod:8002 ../src/guestfs-actions.pod:8047 ../src/guestfs-actions.pod:8087 ../src/guestfs-actions.pod:8143 ../src/guestfs-actions.pod:8163 ../src/guestfs-actions.pod:8196 ../src/guestfs-actions.pod:8260 ../src/guestfs-actions.pod:8283 ../src/guestfs-actions.pod:8312
23872 msgid "This function returns 0 on success or -1 on error."
23873 msgstr ""
23874
23875 #. type: textblock
23876 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189 ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:2389 ../src/guestfs-actions.pod:2487 ../src/guestfs-actions.pod:2612 ../src/guestfs-actions.pod:4082 ../src/guestfs-actions.pod:4102 ../src/guestfs-actions.pod:5400 ../src/guestfs-actions.pod:6684 ../src/guestfs-actions.pod:6801 ../src/guestfs-actions.pod:6950 ../src/guestfs-actions.pod:7441 ../src/guestfs-actions.pod:7566 ../src/guestfs-actions.pod:8089
23877 msgid "(Added in 0.3)"
23878 msgstr ""
23879
23880 #. type: =head2
23881 #: ../src/guestfs-actions.pod:41
23882 msgid "guestfs_add_domain"
23883 msgstr ""
23884
23885 #. type: verbatim
23886 #: ../src/guestfs-actions.pod:43
23887 #, no-wrap
23888 msgid ""
23889 " int\n"
23890 " guestfs_add_domain (guestfs_h *g,\n"
23891 "                     const char *dom,\n"
23892 "                     ...);\n"
23893 "\n"
23894 msgstr ""
23895
23896 #. type: textblock
23897 #: ../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:1411 ../src/guestfs-actions.pod:1462 ../src/guestfs-actions.pod:1513 ../src/guestfs-actions.pod:3280 ../src/guestfs-actions.pod:5101 ../src/guestfs-actions.pod:5410 ../src/guestfs-actions.pod:5627
23898 msgid ""
23899 "You may supply a list of optional arguments to this call.  Use zero or more "
23900 "of the following pairs of parameters, and terminate the list with C<-1> on "
23901 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
23902 msgstr ""
23903
23904 #. type: verbatim
23905 #: ../src/guestfs-actions.pod:53
23906 #, no-wrap
23907 msgid ""
23908 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
23909 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
23910 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
23911 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
23912 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
23913 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
23914 "\n"
23915 msgstr ""
23916
23917 #. type: textblock
23918 #: ../src/guestfs-actions.pod:60
23919 msgid ""
23920 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
23921 "It works by connecting to libvirt, requesting the domain and domain XML from "
23922 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
23923 "one."
23924 msgstr ""
23925
23926 #. type: textblock
23927 #: ../src/guestfs-actions.pod:141
23928 msgid ""
23929 "The other optional parameters are passed directly through to "
23930 "C<guestfs_add_drive_opts>."
23931 msgstr ""
23932
23933 #. type: textblock
23934 #: ../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:1789 ../src/guestfs-actions.pod:2145 ../src/guestfs-actions.pod:2348 ../src/guestfs-actions.pod:2459 ../src/guestfs-actions.pod:2510 ../src/guestfs-actions.pod:2562 ../src/guestfs-actions.pod:2576 ../src/guestfs-actions.pod:2599 ../src/guestfs-actions.pod:2914 ../src/guestfs-actions.pod:3398 ../src/guestfs-actions.pod:3416 ../src/guestfs-actions.pod:5586 ../src/guestfs-actions.pod:5806 ../src/guestfs-actions.pod:6044 ../src/guestfs-actions.pod:6236 ../src/guestfs-actions.pod:6262 ../src/guestfs-actions.pod:7674 ../src/guestfs-actions.pod:8100 ../src/guestfs-actions.pod:8113 ../src/guestfs-actions.pod:8126
23935 msgid "On error this function returns -1."
23936 msgstr ""
23937
23938 #. type: textblock
23939 #: ../src/guestfs-actions.pod:146
23940 msgid "(Added in 1.7.4)"
23941 msgstr ""
23942
23943 #. type: =head2
23944 #: ../src/guestfs-actions.pod:148
23945 msgid "guestfs_add_domain_va"
23946 msgstr ""
23947
23948 #. type: verbatim
23949 #: ../src/guestfs-actions.pod:150
23950 #, no-wrap
23951 msgid ""
23952 " int\n"
23953 " guestfs_add_domain_va (guestfs_h *g,\n"
23954 "                        const char *dom,\n"
23955 "                        va_list args);\n"
23956 "\n"
23957 msgstr ""
23958
23959 #. type: textblock
23960 #: ../src/guestfs-actions.pod:155
23961 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
23962 msgstr ""
23963
23964 #. type: textblock
23965 #: ../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:1389 ../src/guestfs-actions.pod:1401 ../src/guestfs-actions.pod:1440 ../src/guestfs-actions.pod:1452 ../src/guestfs-actions.pod:1491 ../src/guestfs-actions.pod:1503 ../src/guestfs-actions.pod:1547 ../src/guestfs-actions.pod:1559 ../src/guestfs-actions.pod:3364 ../src/guestfs-actions.pod:3376 ../src/guestfs-actions.pod:5166 ../src/guestfs-actions.pod:5178 ../src/guestfs-actions.pod:5438 ../src/guestfs-actions.pod:5450 ../src/guestfs-actions.pod:5676 ../src/guestfs-actions.pod:5687
23966 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
23967 msgstr ""
23968
23969 #. type: =head2
23970 #: ../src/guestfs-actions.pod:159
23971 msgid "guestfs_add_domain_argv"
23972 msgstr ""
23973
23974 #. type: verbatim
23975 #: ../src/guestfs-actions.pod:161
23976 #, no-wrap
23977 msgid ""
23978 " int\n"
23979 " guestfs_add_domain_argv (guestfs_h *g,\n"
23980 "                          const char *dom,\n"
23981 "                          const struct guestfs_add_domain_argv *optargs);\n"
23982 "\n"
23983 msgstr ""
23984
23985 #. type: textblock
23986 #: ../src/guestfs-actions.pod:166
23987 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
23988 msgstr ""
23989
23990 #. type: =head2
23991 #: ../src/guestfs-actions.pod:170
23992 msgid "guestfs_add_drive"
23993 msgstr ""
23994
23995 #. type: verbatim
23996 #: ../src/guestfs-actions.pod:172
23997 #, no-wrap
23998 msgid ""
23999 " int\n"
24000 " guestfs_add_drive (guestfs_h *g,\n"
24001 "                    const char *filename);\n"
24002 "\n"
24003 msgstr ""
24004
24005 #. type: textblock
24006 #: ../src/guestfs-actions.pod:176
24007 msgid ""
24008 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
24009 "optional parameters, so the disk is added writable, with the format being "
24010 "detected automatically."
24011 msgstr ""
24012
24013 #. type: textblock
24014 #: ../src/guestfs-actions.pod:180
24015 msgid ""
24016 "Automatic detection of the format opens you up to a potential security hole "
24017 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
24018 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
24019 "you should think about replacing calls to this function with calls to "
24020 "C<guestfs_add_drive_opts>, and specifying the format."
24021 msgstr ""
24022
24023 #. type: =head2
24024 #: ../src/guestfs-actions.pod:191
24025 msgid "guestfs_add_drive_opts"
24026 msgstr ""
24027
24028 #. type: verbatim
24029 #: ../src/guestfs-actions.pod:193
24030 #, no-wrap
24031 msgid ""
24032 " int\n"
24033 " guestfs_add_drive_opts (guestfs_h *g,\n"
24034 "                         const char *filename,\n"
24035 "                         ...);\n"
24036 "\n"
24037 msgstr ""
24038
24039 #. type: verbatim
24040 #: ../src/guestfs-actions.pod:203
24041 #, no-wrap
24042 msgid ""
24043 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
24044 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
24045 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
24046 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
24047 "\n"
24048 msgstr ""
24049
24050 #. type: textblock
24051 #: ../src/guestfs-actions.pod:233
24052 msgid ""
24053 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
24054 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
24055 "Possible formats include C<raw> and C<qcow2>."
24056 msgstr ""
24057
24058 #. type: textblock
24059 #: ../src/guestfs-actions.pod:244
24060 msgid ""
24061 "This rarely-used option lets you emulate the behaviour of the deprecated "
24062 "C<guestfs_add_drive_with_if> call (q.v.)"
24063 msgstr ""
24064
24065 #. type: textblock
24066 #: ../src/guestfs-actions.pod:256
24067 msgid "(Added in 1.5.23)"
24068 msgstr ""
24069
24070 #. type: =head2
24071 #: ../src/guestfs-actions.pod:258
24072 msgid "guestfs_add_drive_opts_va"
24073 msgstr ""
24074
24075 #. type: verbatim
24076 #: ../src/guestfs-actions.pod:260
24077 #, no-wrap
24078 msgid ""
24079 " int\n"
24080 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
24081 "                            const char *filename,\n"
24082 "                            va_list args);\n"
24083 "\n"
24084 msgstr ""
24085
24086 #. type: textblock
24087 #: ../src/guestfs-actions.pod:265
24088 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
24089 msgstr ""
24090
24091 #. type: =head2
24092 #: ../src/guestfs-actions.pod:269
24093 msgid "guestfs_add_drive_opts_argv"
24094 msgstr ""
24095
24096 #. type: verbatim
24097 #: ../src/guestfs-actions.pod:271
24098 #, no-wrap
24099 msgid ""
24100 " int\n"
24101 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
24102 "                              const char *filename,\n"
24103 "                              const struct guestfs_add_drive_opts_argv "
24104 "*optargs);\n"
24105 "\n"
24106 msgstr ""
24107
24108 #. type: textblock
24109 #: ../src/guestfs-actions.pod:276
24110 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
24111 msgstr ""
24112
24113 #. type: =head2
24114 #: ../src/guestfs-actions.pod:280
24115 msgid "guestfs_add_drive_ro"
24116 msgstr ""
24117
24118 #. type: verbatim
24119 #: ../src/guestfs-actions.pod:282
24120 #, no-wrap
24121 msgid ""
24122 " int\n"
24123 " guestfs_add_drive_ro (guestfs_h *g,\n"
24124 "                       const char *filename);\n"
24125 "\n"
24126 msgstr ""
24127
24128 #. type: textblock
24129 #: ../src/guestfs-actions.pod:286
24130 msgid ""
24131 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
24132 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
24133 "disk is added read-only, with the format being detected automatically."
24134 msgstr ""
24135
24136 #. type: textblock
24137 #: ../src/guestfs-actions.pod:293
24138 msgid "(Added in 1.0.38)"
24139 msgstr ""
24140
24141 #. type: =head2
24142 #: ../src/guestfs-actions.pod:295
24143 msgid "guestfs_add_drive_ro_with_if"
24144 msgstr ""
24145
24146 #. type: verbatim
24147 #: ../src/guestfs-actions.pod:297
24148 #, no-wrap
24149 msgid ""
24150 " int\n"
24151 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
24152 "                               const char *filename,\n"
24153 "                               const char *iface);\n"
24154 "\n"
24155 msgstr ""
24156
24157 #. type: textblock
24158 #: ../src/guestfs-actions.pod:309
24159 msgid ""
24160 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
24161 "QEMU interface emulation to use at run time."
24162 msgstr ""
24163
24164 #. type: textblock
24165 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335 ../src/guestfs-actions.pod:2873
24166 msgid "(Added in 1.0.84)"
24167 msgstr ""
24168
24169 #. type: =head2
24170 #: ../src/guestfs-actions.pod:316
24171 msgid "guestfs_add_drive_with_if"
24172 msgstr ""
24173
24174 #. type: verbatim
24175 #: ../src/guestfs-actions.pod:318
24176 #, no-wrap
24177 msgid ""
24178 " int\n"
24179 " guestfs_add_drive_with_if (guestfs_h *g,\n"
24180 "                            const char *filename,\n"
24181 "                            const char *iface);\n"
24182 "\n"
24183 msgstr ""
24184
24185 #. type: textblock
24186 #: ../src/guestfs-actions.pod:330
24187 msgid ""
24188 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
24189 "QEMU interface emulation to use at run time."
24190 msgstr ""
24191
24192 #. type: =head2
24193 #: ../src/guestfs-actions.pod:337
24194 msgid "guestfs_aug_clear"
24195 msgstr ""
24196
24197 #. type: verbatim
24198 #: ../src/guestfs-actions.pod:339
24199 #, no-wrap
24200 msgid ""
24201 " int\n"
24202 " guestfs_aug_clear (guestfs_h *g,\n"
24203 "                    const char *augpath);\n"
24204 "\n"
24205 msgstr ""
24206
24207 #. type: textblock
24208 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2601
24209 msgid "(Added in 1.3.4)"
24210 msgstr ""
24211
24212 #. type: =head2
24213 #: ../src/guestfs-actions.pod:350
24214 msgid "guestfs_aug_close"
24215 msgstr ""
24216
24217 #. type: verbatim
24218 #: ../src/guestfs-actions.pod:352
24219 #, no-wrap
24220 msgid ""
24221 " int\n"
24222 " guestfs_aug_close (guestfs_h *g);\n"
24223 "\n"
24224 msgstr ""
24225
24226 #. type: textblock
24227 #: ../src/guestfs-actions.pod:355
24228 msgid ""
24229 "Close the current Augeas handle and free up any resources used by it.  After "
24230 "calling this, you have to call C<guestfs_aug_init> again before you can use "
24231 "any other Augeas functions."
24232 msgstr ""
24233
24234 #. type: textblock
24235 #: ../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:6313
24236 msgid "(Added in 0.7)"
24237 msgstr ""
24238
24239 #. type: =head2
24240 #: ../src/guestfs-actions.pod:364
24241 msgid "guestfs_aug_defnode"
24242 msgstr ""
24243
24244 #. type: verbatim
24245 #: ../src/guestfs-actions.pod:366
24246 #, no-wrap
24247 msgid ""
24248 " struct guestfs_int_bool *\n"
24249 " guestfs_aug_defnode (guestfs_h *g,\n"
24250 "                      const char *name,\n"
24251 "                      const char *expr,\n"
24252 "                      const char *val);\n"
24253 "\n"
24254 msgstr ""
24255
24256 #. type: textblock
24257 #: ../src/guestfs-actions.pod:375
24258 msgid ""
24259 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
24260 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
24261 "containing that single node."
24262 msgstr ""
24263
24264 #. type: textblock
24265 #: ../src/guestfs-actions.pod:383
24266 msgid ""
24267 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
24268 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
24269 msgstr ""
24270
24271 #. type: =head2
24272 #: ../src/guestfs-actions.pod:389
24273 msgid "guestfs_aug_defvar"
24274 msgstr ""
24275
24276 #. type: verbatim
24277 #: ../src/guestfs-actions.pod:391
24278 #, no-wrap
24279 msgid ""
24280 " int\n"
24281 " guestfs_aug_defvar (guestfs_h *g,\n"
24282 "                     const char *name,\n"
24283 "                     const char *expr);\n"
24284 "\n"
24285 msgstr ""
24286
24287 #. type: =head2
24288 #: ../src/guestfs-actions.pod:407
24289 msgid "guestfs_aug_get"
24290 msgstr ""
24291
24292 #. type: verbatim
24293 #: ../src/guestfs-actions.pod:409
24294 #, no-wrap
24295 msgid ""
24296 " char *\n"
24297 " guestfs_aug_get (guestfs_h *g,\n"
24298 "                  const char *augpath);\n"
24299 "\n"
24300 msgstr ""
24301
24302 #. type: textblock
24303 #: ../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:1658 ../src/guestfs-actions.pod:1675 ../src/guestfs-actions.pod:1694 ../src/guestfs-actions.pod:1828 ../src/guestfs-actions.pod:2016 ../src/guestfs-actions.pod:2128 ../src/guestfs-actions.pod:2291 ../src/guestfs-actions.pod:2308 ../src/guestfs-actions.pod:2375 ../src/guestfs-actions.pod:2418 ../src/guestfs-actions.pod:2439 ../src/guestfs-actions.pod:2624 ../src/guestfs-actions.pod:2838 ../src/guestfs-actions.pod:3042 ../src/guestfs-actions.pod:3144 ../src/guestfs-actions.pod:3248 ../src/guestfs-actions.pod:3267 ../src/guestfs-actions.pod:3482 ../src/guestfs-actions.pod:3510 ../src/guestfs-actions.pod:3531 ../src/guestfs-actions.pod:3565 ../src/guestfs-actions.pod:3628 ../src/guestfs-actions.pod:3648 ../src/guestfs-actions.pod:3668 ../src/guestfs-actions.pod:4295 ../src/guestfs-actions.pod:4648 ../src/guestfs-actions.pod:4818 ../src/guestfs-actions.pod:4928 ../src/guestfs-actions.pod:5824 ../src/guestfs-actions.pod:6025 ../src/guestfs-actions.pod:6211 ../src/guestfs-actions.pod:6389 ../src/guestfs-actions.pod:6438 ../src/guestfs-actions.pod:7110 ../src/guestfs-actions.pod:7126 ../src/guestfs-actions.pod:7150 ../src/guestfs-actions.pod:7174 ../src/guestfs-actions.pod:7848 ../src/guestfs-actions.pod:7867 ../src/guestfs-actions.pod:7885 ../src/guestfs-actions.pod:8059 ../src/guestfs-actions.pod:8376
24304 msgid ""
24305 "This function returns a string, or NULL on error.  I<The caller must free "
24306 "the returned string after use>."
24307 msgstr ""
24308
24309 #. type: =head2
24310 #: ../src/guestfs-actions.pod:421
24311 msgid "guestfs_aug_init"
24312 msgstr ""
24313
24314 #. type: verbatim
24315 #: ../src/guestfs-actions.pod:423
24316 #, no-wrap
24317 msgid ""
24318 " int\n"
24319 " guestfs_aug_init (guestfs_h *g,\n"
24320 "                   const char *root,\n"
24321 "                   int flags);\n"
24322 "\n"
24323 msgstr ""
24324
24325 #. type: textblock
24326 #: ../src/guestfs-actions.pod:432
24327 msgid "You must call this before using any other C<guestfs_aug_*> commands."
24328 msgstr ""
24329
24330 #. type: textblock
24331 #: ../src/guestfs-actions.pod:457
24332 msgid ""
24333 "This option is only useful when debugging Augeas lenses.  Use of this option "
24334 "may require additional memory for the libguestfs appliance.  You may need to "
24335 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
24336 "C<guestfs_set_memsize>."
24337 msgstr ""
24338
24339 #. type: textblock
24340 #: ../src/guestfs-actions.pod:472
24341 msgid "Do not load the tree in C<guestfs_aug_init>."
24342 msgstr ""
24343
24344 #. type: textblock
24345 #: ../src/guestfs-actions.pod:476
24346 msgid "To close the handle, you can call C<guestfs_aug_close>."
24347 msgstr ""
24348
24349 #. type: =head2
24350 #: ../src/guestfs-actions.pod:484
24351 msgid "guestfs_aug_insert"
24352 msgstr ""
24353
24354 #. type: verbatim
24355 #: ../src/guestfs-actions.pod:486
24356 #, no-wrap
24357 msgid ""
24358 " int\n"
24359 " guestfs_aug_insert (guestfs_h *g,\n"
24360 "                     const char *augpath,\n"
24361 "                     const char *label,\n"
24362 "                     int before);\n"
24363 "\n"
24364 msgstr ""
24365
24366 #. type: =head2
24367 #: ../src/guestfs-actions.pod:504
24368 msgid "guestfs_aug_load"
24369 msgstr ""
24370
24371 #. type: verbatim
24372 #: ../src/guestfs-actions.pod:506
24373 #, no-wrap
24374 msgid ""
24375 " int\n"
24376 " guestfs_aug_load (guestfs_h *g);\n"
24377 "\n"
24378 msgstr ""
24379
24380 #. type: =head2
24381 #: ../src/guestfs-actions.pod:518
24382 msgid "guestfs_aug_ls"
24383 msgstr ""
24384
24385 #. type: verbatim
24386 #: ../src/guestfs-actions.pod:520
24387 #, no-wrap
24388 msgid ""
24389 " char **\n"
24390 " guestfs_aug_ls (guestfs_h *g,\n"
24391 "                 const char *augpath);\n"
24392 "\n"
24393 msgstr ""
24394
24395 #. type: textblock
24396 #: ../src/guestfs-actions.pod:524
24397 msgid ""
24398 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
24399 "sorting the resulting nodes into alphabetical order."
24400 msgstr ""
24401
24402 #. type: textblock
24403 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543 ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1196 ../src/guestfs-actions.pod:1843 ../src/guestfs-actions.pod:1862 ../src/guestfs-actions.pod:1965 ../src/guestfs-actions.pod:1984 ../src/guestfs-actions.pod:2230 ../src/guestfs-actions.pod:2696 ../src/guestfs-actions.pod:2712 ../src/guestfs-actions.pod:2731 ../src/guestfs-actions.pod:2796 ../src/guestfs-actions.pod:2820 ../src/guestfs-actions.pod:2891 ../src/guestfs-actions.pod:2940 ../src/guestfs-actions.pod:3209 ../src/guestfs-actions.pod:3584 ../src/guestfs-actions.pod:3864 ../src/guestfs-actions.pod:4178 ../src/guestfs-actions.pod:4195 ../src/guestfs-actions.pod:4215 ../src/guestfs-actions.pod:4277 ../src/guestfs-actions.pod:4382 ../src/guestfs-actions.pod:4790 ../src/guestfs-actions.pod:5547 ../src/guestfs-actions.pod:6183 ../src/guestfs-actions.pod:6309 ../src/guestfs-actions.pod:6423 ../src/guestfs-actions.pod:7190 ../src/guestfs-actions.pod:7251 ../src/guestfs-actions.pod:7306 ../src/guestfs-actions.pod:7452 ../src/guestfs-actions.pod:7476 ../src/guestfs-actions.pod:7952 ../src/guestfs-actions.pod:7972 ../src/guestfs-actions.pod:8019 ../src/guestfs-actions.pod:8213 ../src/guestfs-actions.pod:8232 ../src/guestfs-actions.pod:8326 ../src/guestfs-actions.pod:8345 ../src/guestfs-actions.pod:8391 ../src/guestfs-actions.pod:8410
24404 msgid ""
24405 "This function returns a NULL-terminated array of strings (like "
24406 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
24407 "strings and the array after use>."
24408 msgstr ""
24409
24410 #. type: textblock
24411 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1121 ../src/guestfs-actions.pod:1139 ../src/guestfs-actions.pod:1900 ../src/guestfs-actions.pod:3942 ../src/guestfs-actions.pod:3973 ../src/guestfs-actions.pod:4631 ../src/guestfs-actions.pod:4681 ../src/guestfs-actions.pod:4868 ../src/guestfs-actions.pod:4901 ../src/guestfs-actions.pod:5064 ../src/guestfs-actions.pod:5551 ../src/guestfs-actions.pod:6124 ../src/guestfs-actions.pod:6521 ../src/guestfs-actions.pod:6535 ../src/guestfs-actions.pod:6547 ../src/guestfs-actions.pod:7031 ../src/guestfs-actions.pod:7690 ../src/guestfs-actions.pod:7703 ../src/guestfs-actions.pod:7936 ../src/guestfs-actions.pod:8201
24412 msgid "(Added in 0.8)"
24413 msgstr ""
24414
24415 #. type: =head2
24416 #: ../src/guestfs-actions.pod:533
24417 msgid "guestfs_aug_match"
24418 msgstr ""
24419
24420 #. type: verbatim
24421 #: ../src/guestfs-actions.pod:535
24422 #, no-wrap
24423 msgid ""
24424 " char **\n"
24425 " guestfs_aug_match (guestfs_h *g,\n"
24426 "                    const char *augpath);\n"
24427 "\n"
24428 msgstr ""
24429
24430 #. type: =head2
24431 #: ../src/guestfs-actions.pod:549
24432 msgid "guestfs_aug_mv"
24433 msgstr ""
24434
24435 #. type: verbatim
24436 #: ../src/guestfs-actions.pod:551
24437 #, no-wrap
24438 msgid ""
24439 " int\n"
24440 " guestfs_aug_mv (guestfs_h *g,\n"
24441 "                 const char *src,\n"
24442 "                 const char *dest);\n"
24443 "\n"
24444 msgstr ""
24445
24446 #. type: =head2
24447 #: ../src/guestfs-actions.pod:563
24448 msgid "guestfs_aug_rm"
24449 msgstr ""
24450
24451 #. type: verbatim
24452 #: ../src/guestfs-actions.pod:565
24453 #, no-wrap
24454 msgid ""
24455 " int\n"
24456 " guestfs_aug_rm (guestfs_h *g,\n"
24457 "                 const char *augpath);\n"
24458 "\n"
24459 msgstr ""
24460
24461 #. type: =head2
24462 #: ../src/guestfs-actions.pod:577
24463 msgid "guestfs_aug_save"
24464 msgstr ""
24465
24466 #. type: verbatim
24467 #: ../src/guestfs-actions.pod:579
24468 #, no-wrap
24469 msgid ""
24470 " int\n"
24471 " guestfs_aug_save (guestfs_h *g);\n"
24472 "\n"
24473 msgstr ""
24474
24475 #. type: textblock
24476 #: ../src/guestfs-actions.pod:584
24477 msgid ""
24478 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
24479 "are saved."
24480 msgstr ""
24481
24482 #. type: =head2
24483 #: ../src/guestfs-actions.pod:591
24484 msgid "guestfs_aug_set"
24485 msgstr ""
24486
24487 #. type: verbatim
24488 #: ../src/guestfs-actions.pod:593
24489 #, no-wrap
24490 msgid ""
24491 " int\n"
24492 " guestfs_aug_set (guestfs_h *g,\n"
24493 "                  const char *augpath,\n"
24494 "                  const char *val);\n"
24495 "\n"
24496 msgstr ""
24497
24498 #. type: textblock
24499 #: ../src/guestfs-actions.pod:600
24500 msgid ""
24501 "In the Augeas API, it is possible to clear a node by setting the value to "
24502 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
24503 "this call.  Instead you must use the C<guestfs_aug_clear> call."
24504 msgstr ""
24505
24506 #. type: =head2
24507 #: ../src/guestfs-actions.pod:609
24508 msgid "guestfs_available"
24509 msgstr ""
24510
24511 #. type: verbatim
24512 #: ../src/guestfs-actions.pod:611
24513 #, no-wrap
24514 msgid ""
24515 " int\n"
24516 " guestfs_available (guestfs_h *g,\n"
24517 "                    char *const *groups);\n"
24518 "\n"
24519 msgstr ""
24520
24521 #. type: textblock
24522 #: ../src/guestfs-actions.pod:619
24523 msgid ""
24524 "The libguestfs groups, and the functions that those groups correspond to, "
24525 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
24526 "runtime by calling C<guestfs_available_all_groups>."
24527 msgstr ""
24528
24529 #. type: textblock
24530 #: ../src/guestfs-actions.pod:643
24531 msgid "You must call C<guestfs_launch> before calling this function."
24532 msgstr ""
24533
24534 #. type: textblock
24535 #: ../src/guestfs-actions.pod:665
24536 msgid ""
24537 "This call was added in version C<1.0.80>.  In previous versions of "
24538 "libguestfs all you could do would be to speculatively execute a command to "
24539 "find out if the daemon implemented it.  See also C<guestfs_version>."
24540 msgstr ""
24541
24542 #. type: textblock
24543 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1645
24544 msgid "(Added in 1.0.80)"
24545 msgstr ""
24546
24547 #. type: =head2
24548 #: ../src/guestfs-actions.pod:676
24549 msgid "guestfs_available_all_groups"
24550 msgstr ""
24551
24552 #. type: verbatim
24553 #: ../src/guestfs-actions.pod:678
24554 #, no-wrap
24555 msgid ""
24556 " char **\n"
24557 " guestfs_available_all_groups (guestfs_h *g);\n"
24558 "\n"
24559 msgstr ""
24560
24561 #. type: textblock
24562 #: ../src/guestfs-actions.pod:681
24563 msgid ""
24564 "This command returns a list of all optional groups that this daemon knows "
24565 "about.  Note this returns both supported and unsupported groups.  To find "
24566 "out which ones the daemon can actually support you have to call "
24567 "C<guestfs_available> on each member of the returned list."
24568 msgstr ""
24569
24570 #. type: textblock
24571 #: ../src/guestfs-actions.pod:687
24572 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
24573 msgstr ""
24574
24575 #. type: textblock
24576 #: ../src/guestfs-actions.pod:693
24577 msgid "(Added in 1.3.15)"
24578 msgstr ""
24579
24580 #. type: =head2
24581 #: ../src/guestfs-actions.pod:695
24582 msgid "guestfs_base64_in"
24583 msgstr ""
24584
24585 #. type: verbatim
24586 #: ../src/guestfs-actions.pod:697
24587 #, no-wrap
24588 msgid ""
24589 " int\n"
24590 " guestfs_base64_in (guestfs_h *g,\n"
24591 "                    const char *base64file,\n"
24592 "                    const char *filename);\n"
24593 "\n"
24594 msgstr ""
24595
24596 #. type: textblock
24597 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
24598 msgid "(Added in 1.3.5)"
24599 msgstr ""
24600
24601 #. type: =head2
24602 #: ../src/guestfs-actions.pod:709
24603 msgid "guestfs_base64_out"
24604 msgstr ""
24605
24606 #. type: verbatim
24607 #: ../src/guestfs-actions.pod:711
24608 #, no-wrap
24609 msgid ""
24610 " int\n"
24611 " guestfs_base64_out (guestfs_h *g,\n"
24612 "                     const char *filename,\n"
24613 "                     const char *base64file);\n"
24614 "\n"
24615 msgstr ""
24616
24617 #. type: =head2
24618 #: ../src/guestfs-actions.pod:723
24619 msgid "guestfs_blockdev_flushbufs"
24620 msgstr ""
24621
24622 #. type: verbatim
24623 #: ../src/guestfs-actions.pod:725
24624 #, no-wrap
24625 msgid ""
24626 " int\n"
24627 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
24628 "                             const char *device);\n"
24629 "\n"
24630 msgstr ""
24631
24632 #. type: textblock
24633 #: ../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
24634 msgid "(Added in 0.9.3)"
24635 msgstr ""
24636
24637 #. type: =head2
24638 #: ../src/guestfs-actions.pod:738
24639 msgid "guestfs_blockdev_getbsz"
24640 msgstr ""
24641
24642 #. type: verbatim
24643 #: ../src/guestfs-actions.pod:740
24644 #, no-wrap
24645 msgid ""
24646 " int\n"
24647 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
24648 "                          const char *device);\n"
24649 "\n"
24650 msgstr ""
24651
24652 #. type: =head2
24653 #: ../src/guestfs-actions.pod:755
24654 msgid "guestfs_blockdev_getro"
24655 msgstr ""
24656
24657 #. type: verbatim
24658 #: ../src/guestfs-actions.pod:757
24659 #, no-wrap
24660 msgid ""
24661 " int\n"
24662 " guestfs_blockdev_getro (guestfs_h *g,\n"
24663 "                         const char *device);\n"
24664 "\n"
24665 msgstr ""
24666
24667 #. type: textblock
24668 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1883 ../src/guestfs-actions.pod:1898 ../src/guestfs-actions.pod:2387 ../src/guestfs-actions.pod:2398 ../src/guestfs-actions.pod:2470 ../src/guestfs-actions.pod:2496 ../src/guestfs-actions.pod:2536 ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2587 ../src/guestfs-actions.pod:2610 ../src/guestfs-actions.pod:3685 ../src/guestfs-actions.pod:3701 ../src/guestfs-actions.pod:3719 ../src/guestfs-actions.pod:3881 ../src/guestfs-actions.pod:3895 ../src/guestfs-actions.pod:3910 ../src/guestfs-actions.pod:3924 ../src/guestfs-actions.pod:3940 ../src/guestfs-actions.pod:3955 ../src/guestfs-actions.pod:3971 ../src/guestfs-actions.pod:3985 ../src/guestfs-actions.pod:3998 ../src/guestfs-actions.pod:4012 ../src/guestfs-actions.pod:4027 ../src/guestfs-actions.pod:4042 ../src/guestfs-actions.pod:4055 ../src/guestfs-actions.pod:4069 ../src/guestfs-actions.pod:5788
24669 msgid "This function returns a C truth value on success or -1 on error."
24670 msgstr ""
24671
24672 #. type: =head2
24673 #: ../src/guestfs-actions.pod:770
24674 msgid "guestfs_blockdev_getsize64"
24675 msgstr ""
24676
24677 #. type: verbatim
24678 #: ../src/guestfs-actions.pod:772
24679 #, no-wrap
24680 msgid ""
24681 " int64_t\n"
24682 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
24683 "                             const char *device);\n"
24684 "\n"
24685 msgstr ""
24686
24687 #. type: textblock
24688 #: ../src/guestfs-actions.pod:778
24689 msgid "See also C<guestfs_blockdev_getsz>."
24690 msgstr ""
24691
24692 #. type: =head2
24693 #: ../src/guestfs-actions.pod:786
24694 msgid "guestfs_blockdev_getss"
24695 msgstr ""
24696
24697 #. type: verbatim
24698 #: ../src/guestfs-actions.pod:788
24699 #, no-wrap
24700 msgid ""
24701 " int\n"
24702 " guestfs_blockdev_getss (guestfs_h *g,\n"
24703 "                         const char *device);\n"
24704 "\n"
24705 msgstr ""
24706
24707 #. type: textblock
24708 #: ../src/guestfs-actions.pod:795
24709 msgid ""
24710 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
24711 "that)."
24712 msgstr ""
24713
24714 #. type: =head2
24715 #: ../src/guestfs-actions.pod:804
24716 msgid "guestfs_blockdev_getsz"
24717 msgstr ""
24718
24719 #. type: verbatim
24720 #: ../src/guestfs-actions.pod:806
24721 #, no-wrap
24722 msgid ""
24723 " int64_t\n"
24724 " guestfs_blockdev_getsz (guestfs_h *g,\n"
24725 "                         const char *device);\n"
24726 "\n"
24727 msgstr ""
24728
24729 #. type: textblock
24730 #: ../src/guestfs-actions.pod:813
24731 msgid ""
24732 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
24733 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
24734 msgstr ""
24735
24736 #. type: =head2
24737 #: ../src/guestfs-actions.pod:823
24738 msgid "guestfs_blockdev_rereadpt"
24739 msgstr ""
24740
24741 #. type: verbatim
24742 #: ../src/guestfs-actions.pod:825
24743 #, no-wrap
24744 msgid ""
24745 " int\n"
24746 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
24747 "                            const char *device);\n"
24748 "\n"
24749 msgstr ""
24750
24751 #. type: =head2
24752 #: ../src/guestfs-actions.pod:837
24753 msgid "guestfs_blockdev_setbsz"
24754 msgstr ""
24755
24756 #. type: verbatim
24757 #: ../src/guestfs-actions.pod:839
24758 #, no-wrap
24759 msgid ""
24760 " int\n"
24761 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
24762 "                          const char *device,\n"
24763 "                          int blocksize);\n"
24764 "\n"
24765 msgstr ""
24766
24767 #. type: =head2
24768 #: ../src/guestfs-actions.pod:855
24769 msgid "guestfs_blockdev_setro"
24770 msgstr ""
24771
24772 #. type: verbatim
24773 #: ../src/guestfs-actions.pod:857
24774 #, no-wrap
24775 msgid ""
24776 " int\n"
24777 " guestfs_blockdev_setro (guestfs_h *g,\n"
24778 "                         const char *device);\n"
24779 "\n"
24780 msgstr ""
24781
24782 #. type: =head2
24783 #: ../src/guestfs-actions.pod:869
24784 msgid "guestfs_blockdev_setrw"
24785 msgstr ""
24786
24787 #. type: verbatim
24788 #: ../src/guestfs-actions.pod:871
24789 #, no-wrap
24790 msgid ""
24791 " int\n"
24792 " guestfs_blockdev_setrw (guestfs_h *g,\n"
24793 "                         const char *device);\n"
24794 "\n"
24795 msgstr ""
24796
24797 #. type: =head2
24798 #: ../src/guestfs-actions.pod:883
24799 msgid "guestfs_btrfs_filesystem_resize"
24800 msgstr ""
24801
24802 #. type: verbatim
24803 #: ../src/guestfs-actions.pod:885
24804 #, no-wrap
24805 msgid ""
24806 " int\n"
24807 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
24808 "                                  const char *mountpoint,\n"
24809 "                                  ...);\n"
24810 "\n"
24811 msgstr ""
24812
24813 #. type: verbatim
24814 #: ../src/guestfs-actions.pod:895
24815 #, no-wrap
24816 msgid ""
24817 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
24818 "\n"
24819 msgstr ""
24820
24821 #. type: textblock
24822 #: ../src/guestfs-actions.pod:918
24823 msgid "(Added in 1.11.17)"
24824 msgstr ""
24825
24826 #. type: =head2
24827 #: ../src/guestfs-actions.pod:920
24828 msgid "guestfs_btrfs_filesystem_resize_va"
24829 msgstr ""
24830
24831 #. type: verbatim
24832 #: ../src/guestfs-actions.pod:922
24833 #, no-wrap
24834 msgid ""
24835 " int\n"
24836 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
24837 "                                     const char *mountpoint,\n"
24838 "                                     va_list args);\n"
24839 "\n"
24840 msgstr ""
24841
24842 #. type: textblock
24843 #: ../src/guestfs-actions.pod:927
24844 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
24845 msgstr ""
24846
24847 #. type: =head2
24848 #: ../src/guestfs-actions.pod:931
24849 msgid "guestfs_btrfs_filesystem_resize_argv"
24850 msgstr ""
24851
24852 #. type: verbatim
24853 #: ../src/guestfs-actions.pod:933
24854 #, no-wrap
24855 msgid ""
24856 " int\n"
24857 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
24858 "                                       const char *mountpoint,\n"
24859 "                                       const struct "
24860 "guestfs_btrfs_filesystem_resize_argv *optargs);\n"
24861 "\n"
24862 msgstr ""
24863
24864 #. type: textblock
24865 #: ../src/guestfs-actions.pod:938
24866 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
24867 msgstr ""
24868
24869 #. type: =head2
24870 #: ../src/guestfs-actions.pod:942
24871 msgid "guestfs_case_sensitive_path"
24872 msgstr ""
24873
24874 #. type: verbatim
24875 #: ../src/guestfs-actions.pod:944
24876 #, no-wrap
24877 msgid ""
24878 " char *\n"
24879 " guestfs_case_sensitive_path (guestfs_h *g,\n"
24880 "                              const char *path);\n"
24881 "\n"
24882 msgstr ""
24883
24884 #. type: textblock
24885 #: ../src/guestfs-actions.pod:970
24886 msgid ""
24887 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
24888 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
24889 "how the directories were originally created under Windows)."
24890 msgstr ""
24891
24892 #. type: textblock
24893 #: ../src/guestfs-actions.pod:978
24894 msgid "See also C<guestfs_realpath>."
24895 msgstr ""
24896
24897 #. type: textblock
24898 #: ../src/guestfs-actions.pod:983 ../src/guestfs-actions.pod:7870
24899 msgid "(Added in 1.0.75)"
24900 msgstr ""
24901
24902 #. type: =head2
24903 #: ../src/guestfs-actions.pod:985
24904 msgid "guestfs_cat"
24905 msgstr ""
24906
24907 #. type: verbatim
24908 #: ../src/guestfs-actions.pod:987
24909 #, no-wrap
24910 msgid ""
24911 " char *\n"
24912 " guestfs_cat (guestfs_h *g,\n"
24913 "              const char *path);\n"
24914 "\n"
24915 msgstr ""
24916
24917 #. type: textblock
24918 #: ../src/guestfs-actions.pod:993
24919 msgid ""
24920 "Note that this function cannot correctly handle binary files (specifically, "
24921 "files containing C<\\0> character which is treated as end of string).  For "
24922 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
24923 "functions which have a more complex interface."
24924 msgstr ""
24925
24926 #. type: textblock
24927 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:4199 ../src/guestfs-actions.pod:4281 ../src/guestfs-actions.pod:4298 ../src/guestfs-actions.pod:4386 ../src/guestfs-actions.pod:4794 ../src/guestfs-actions.pod:4808 ../src/guestfs-actions.pod:6187 ../src/guestfs-actions.pod:6201 ../src/guestfs-actions.pod:8023 ../src/guestfs-actions.pod:8037
24928 msgid "(Added in 0.4)"
24929 msgstr ""
24930
24931 #. type: =head2
24932 #: ../src/guestfs-actions.pod:1006
24933 msgid "guestfs_checksum"
24934 msgstr ""
24935
24936 #. type: verbatim
24937 #: ../src/guestfs-actions.pod:1008
24938 #, no-wrap
24939 msgid ""
24940 " char *\n"
24941 " guestfs_checksum (guestfs_h *g,\n"
24942 "                   const char *csumtype,\n"
24943 "                   const char *path);\n"
24944 "\n"
24945 msgstr ""
24946
24947 #. type: textblock
24948 #: ../src/guestfs-actions.pod:1054
24949 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
24950 msgstr ""
24951
24952 #. type: textblock
24953 #: ../src/guestfs-actions.pod:1056
24954 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
24955 msgstr ""
24956
24957 #. type: textblock
24958 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1720 ../src/guestfs-actions.pod:2578 ../src/guestfs-actions.pod:3897 ../src/guestfs-actions.pod:3926 ../src/guestfs-actions.pod:3987 ../src/guestfs-actions.pod:4014 ../src/guestfs-actions.pod:7726
24959 msgid "(Added in 1.0.2)"
24960 msgstr ""
24961
24962 #. type: =head2
24963 #: ../src/guestfs-actions.pod:1063
24964 msgid "guestfs_checksum_device"
24965 msgstr ""
24966
24967 #. type: verbatim
24968 #: ../src/guestfs-actions.pod:1065
24969 #, no-wrap
24970 msgid ""
24971 " char *\n"
24972 " guestfs_checksum_device (guestfs_h *g,\n"
24973 "                          const char *csumtype,\n"
24974 "                          const char *device);\n"
24975 "\n"
24976 msgstr ""
24977
24978 #. type: textblock
24979 #: ../src/guestfs-actions.pod:1070
24980 msgid ""
24981 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24982 "device named C<device>.  For the types of checksums supported see the "
24983 "C<guestfs_checksum> command."
24984 msgstr ""
24985
24986 #. type: textblock
24987 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:5618 ../src/guestfs-actions.pod:5753 ../src/guestfs-actions.pod:5790 ../src/guestfs-actions.pod:5808 ../src/guestfs-actions.pod:5990 ../src/guestfs-actions.pod:7635 ../src/guestfs-actions.pod:7649 ../src/guestfs-actions.pod:8049
24988 msgid "(Added in 1.3.2)"
24989 msgstr ""
24990
24991 #. type: =head2
24992 #: ../src/guestfs-actions.pod:1079
24993 msgid "guestfs_checksums_out"
24994 msgstr ""
24995
24996 #. type: verbatim
24997 #: ../src/guestfs-actions.pod:1081
24998 #, no-wrap
24999 msgid ""
25000 " int\n"
25001 " guestfs_checksums_out (guestfs_h *g,\n"
25002 "                        const char *csumtype,\n"
25003 "                        const char *directory,\n"
25004 "                        const char *sumsfile);\n"
25005 "\n"
25006 msgstr ""
25007
25008 #. type: textblock
25009 #: ../src/guestfs-actions.pod:1101
25010 msgid "(Added in 1.3.7)"
25011 msgstr ""
25012
25013 #. type: =head2
25014 #: ../src/guestfs-actions.pod:1103
25015 msgid "guestfs_chmod"
25016 msgstr ""
25017
25018 #. type: verbatim
25019 #: ../src/guestfs-actions.pod:1105
25020 #, no-wrap
25021 msgid ""
25022 " int\n"
25023 " guestfs_chmod (guestfs_h *g,\n"
25024 "                int mode,\n"
25025 "                const char *path);\n"
25026 "\n"
25027 msgstr ""
25028
25029 #. type: =head2
25030 #: ../src/guestfs-actions.pod:1123
25031 msgid "guestfs_chown"
25032 msgstr ""
25033
25034 #. type: verbatim
25035 #: ../src/guestfs-actions.pod:1125
25036 #, no-wrap
25037 msgid ""
25038 " int\n"
25039 " guestfs_chown (guestfs_h *g,\n"
25040 "                int owner,\n"
25041 "                int group,\n"
25042 "                const char *path);\n"
25043 "\n"
25044 msgstr ""
25045
25046 #. type: =head2
25047 #: ../src/guestfs-actions.pod:1141
25048 msgid "guestfs_command"
25049 msgstr ""
25050
25051 #. type: verbatim
25052 #: ../src/guestfs-actions.pod:1143
25053 #, no-wrap
25054 msgid ""
25055 " char *\n"
25056 " guestfs_command (guestfs_h *g,\n"
25057 "                  char *const *arguments);\n"
25058 "\n"
25059 msgstr ""
25060
25061 #. type: textblock
25062 #: ../src/guestfs-actions.pod:1152
25063 msgid ""
25064 "The single parameter is an argv-style list of arguments.  The first element "
25065 "is the name of the program to run.  Subsequent elements are parameters.  The "
25066 "list must be non-empty (ie. must contain a program name).  Note that the "
25067 "command runs directly, and is I<not> invoked via the shell (see "
25068 "C<guestfs_sh>)."
25069 msgstr ""
25070
25071 #. type: textblock
25072 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1203 ../src/guestfs-actions.pod:2019
25073 msgid "(Added in 0.9.1)"
25074 msgstr ""
25075
25076 #. type: =head2
25077 #: ../src/guestfs-actions.pod:1185
25078 msgid "guestfs_command_lines"
25079 msgstr ""
25080
25081 #. type: verbatim
25082 #: ../src/guestfs-actions.pod:1187
25083 #, no-wrap
25084 msgid ""
25085 " char **\n"
25086 " guestfs_command_lines (guestfs_h *g,\n"
25087 "                        char *const *arguments);\n"
25088 "\n"
25089 msgstr ""
25090
25091 #. type: textblock
25092 #: ../src/guestfs-actions.pod:1191
25093 msgid ""
25094 "This is the same as C<guestfs_command>, but splits the result into a list of "
25095 "lines."
25096 msgstr ""
25097
25098 #. type: textblock
25099 #: ../src/guestfs-actions.pod:1194
25100 msgid "See also: C<guestfs_sh_lines>"
25101 msgstr ""
25102
25103 #. type: =head2
25104 #: ../src/guestfs-actions.pod:1205
25105 msgid "guestfs_compress_device_out"
25106 msgstr ""
25107
25108 #. type: verbatim
25109 #: ../src/guestfs-actions.pod:1207
25110 #, no-wrap
25111 msgid ""
25112 " int\n"
25113 " guestfs_compress_device_out (guestfs_h *g,\n"
25114 "                              const char *ctype,\n"
25115 "                              const char *device,\n"
25116 "                              const char *zdevice,\n"
25117 "                              ...);\n"
25118 "\n"
25119 msgstr ""
25120
25121 #. type: verbatim
25122 #: ../src/guestfs-actions.pod:1219
25123 #, no-wrap
25124 msgid ""
25125 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
25126 "\n"
25127 msgstr ""
25128
25129 #. type: textblock
25130 #: ../src/guestfs-actions.pod:1224
25131 msgid ""
25132 "The C<ctype> and optional C<level> parameters have the same meaning as in "
25133 "C<guestfs_compress_out>."
25134 msgstr ""
25135
25136 #. type: textblock
25137 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1288 ../src/guestfs-actions.pod:2564 ../src/guestfs-actions.pod:6907
25138 msgid "(Added in 1.13.15)"
25139 msgstr ""
25140
25141 #. type: =head2
25142 #: ../src/guestfs-actions.pod:1231
25143 msgid "guestfs_compress_device_out_va"
25144 msgstr ""
25145
25146 #. type: verbatim
25147 #: ../src/guestfs-actions.pod:1233
25148 #, no-wrap
25149 msgid ""
25150 " int\n"
25151 " guestfs_compress_device_out_va (guestfs_h *g,\n"
25152 "                                 const char *ctype,\n"
25153 "                                 const char *device,\n"
25154 "                                 const char *zdevice,\n"
25155 "                                 va_list args);\n"
25156 "\n"
25157 msgstr ""
25158
25159 #. type: textblock
25160 #: ../src/guestfs-actions.pod:1240
25161 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
25162 msgstr ""
25163
25164 #. type: =head2
25165 #: ../src/guestfs-actions.pod:1244
25166 msgid "guestfs_compress_device_out_argv"
25167 msgstr ""
25168
25169 #. type: verbatim
25170 #: ../src/guestfs-actions.pod:1246
25171 #, no-wrap
25172 msgid ""
25173 " int\n"
25174 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
25175 "                                   const char *ctype,\n"
25176 "                                   const char *device,\n"
25177 "                                   const char *zdevice,\n"
25178 "                                   const struct "
25179 "guestfs_compress_device_out_argv *optargs);\n"
25180 "\n"
25181 msgstr ""
25182
25183 #. type: textblock
25184 #: ../src/guestfs-actions.pod:1253
25185 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
25186 msgstr ""
25187
25188 #. type: =head2
25189 #: ../src/guestfs-actions.pod:1257
25190 msgid "guestfs_compress_out"
25191 msgstr ""
25192
25193 #. type: verbatim
25194 #: ../src/guestfs-actions.pod:1259
25195 #, no-wrap
25196 msgid ""
25197 " int\n"
25198 " guestfs_compress_out (guestfs_h *g,\n"
25199 "                       const char *ctype,\n"
25200 "                       const char *file,\n"
25201 "                       const char *zfile,\n"
25202 "                       ...);\n"
25203 "\n"
25204 msgstr ""
25205
25206 #. type: verbatim
25207 #: ../src/guestfs-actions.pod:1271
25208 #, no-wrap
25209 msgid ""
25210 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
25211 "\n"
25212 msgstr ""
25213
25214 #. type: =head2
25215 #: ../src/guestfs-actions.pod:1290
25216 msgid "guestfs_compress_out_va"
25217 msgstr ""
25218
25219 #. type: verbatim
25220 #: ../src/guestfs-actions.pod:1292
25221 #, no-wrap
25222 msgid ""
25223 " int\n"
25224 " guestfs_compress_out_va (guestfs_h *g,\n"
25225 "                          const char *ctype,\n"
25226 "                          const char *file,\n"
25227 "                          const char *zfile,\n"
25228 "                          va_list args);\n"
25229 "\n"
25230 msgstr ""
25231
25232 #. type: textblock
25233 #: ../src/guestfs-actions.pod:1299
25234 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
25235 msgstr ""
25236
25237 #. type: =head2
25238 #: ../src/guestfs-actions.pod:1303
25239 msgid "guestfs_compress_out_argv"
25240 msgstr ""
25241
25242 #. type: verbatim
25243 #: ../src/guestfs-actions.pod:1305
25244 #, no-wrap
25245 msgid ""
25246 " int\n"
25247 " guestfs_compress_out_argv (guestfs_h *g,\n"
25248 "                            const char *ctype,\n"
25249 "                            const char *file,\n"
25250 "                            const char *zfile,\n"
25251 "                            const struct guestfs_compress_out_argv "
25252 "*optargs);\n"
25253 "\n"
25254 msgstr ""
25255
25256 #. type: textblock
25257 #: ../src/guestfs-actions.pod:1312
25258 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
25259 msgstr ""
25260
25261 #. type: =head2
25262 #: ../src/guestfs-actions.pod:1316
25263 msgid "guestfs_config"
25264 msgstr ""
25265
25266 #. type: verbatim
25267 #: ../src/guestfs-actions.pod:1318
25268 #, no-wrap
25269 msgid ""
25270 " int\n"
25271 " guestfs_config (guestfs_h *g,\n"
25272 "                 const char *qemuparam,\n"
25273 "                 const char *qemuvalue);\n"
25274 "\n"
25275 msgstr ""
25276
25277 #. type: =head2
25278 #: ../src/guestfs-actions.pod:1336
25279 msgid "guestfs_copy_device_to_device"
25280 msgstr ""
25281
25282 #. type: verbatim
25283 #: ../src/guestfs-actions.pod:1338
25284 #, no-wrap
25285 msgid ""
25286 " int\n"
25287 " guestfs_copy_device_to_device (guestfs_h *g,\n"
25288 "                                const char *src,\n"
25289 "                                const char *dest,\n"
25290 "                                ...);\n"
25291 "\n"
25292 msgstr ""
25293
25294 #. type: verbatim
25295 #: ../src/guestfs-actions.pod:1349
25296 #, no-wrap
25297 msgid ""
25298 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
25299 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
25300 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
25301 "\n"
25302 msgstr ""
25303
25304 #. type: textblock
25305 #: ../src/guestfs-actions.pod:1353
25306 msgid ""
25307 "The four calls C<guestfs_copy_device_to_device>, "
25308 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
25309 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
25310 "destination (device|file)."
25311 msgstr ""
25312
25313 #. type: textblock
25314 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1425 ../src/guestfs-actions.pod:1476 ../src/guestfs-actions.pod:1532 ../src/guestfs-actions.pod:1584 ../src/guestfs-actions.pod:1715 ../src/guestfs-actions.pod:1746 ../src/guestfs-actions.pod:1791 ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:2190 ../src/guestfs-actions.pod:4097 ../src/guestfs-actions.pod:7721 ../src/guestfs-actions.pod:7755 ../src/guestfs-actions.pod:8262 ../src/guestfs-actions.pod:8285
25315 msgid ""
25316 "This long-running command can generate progress notification messages so "
25317 "that the caller can display a progress bar or indicator.  To receive these "
25318 "messages, the caller must register a progress event callback.  See "
25319 "L<guestfs(3)/GUESTFS_EVENT_PROGRESS>."
25320 msgstr ""
25321
25322 #. type: =head2
25323 #: ../src/guestfs-actions.pod:1379
25324 msgid "guestfs_copy_device_to_device_va"
25325 msgstr ""
25326
25327 #. type: verbatim
25328 #: ../src/guestfs-actions.pod:1381
25329 #, no-wrap
25330 msgid ""
25331 " int\n"
25332 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
25333 "                                   const char *src,\n"
25334 "                                   const char *dest,\n"
25335 "                                   va_list args);\n"
25336 "\n"
25337 msgstr ""
25338
25339 #. type: textblock
25340 #: ../src/guestfs-actions.pod:1387
25341 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
25342 msgstr ""
25343
25344 #. type: =head2
25345 #: ../src/guestfs-actions.pod:1391
25346 msgid "guestfs_copy_device_to_device_argv"
25347 msgstr ""
25348
25349 #. type: verbatim
25350 #: ../src/guestfs-actions.pod:1393
25351 #, no-wrap
25352 msgid ""
25353 " int\n"
25354 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
25355 "                                     const char *src,\n"
25356 "                                     const char *dest,\n"
25357 "                                     const struct "
25358 "guestfs_copy_device_to_device_argv *optargs);\n"
25359 "\n"
25360 msgstr ""
25361
25362 #. type: textblock
25363 #: ../src/guestfs-actions.pod:1399
25364 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
25365 msgstr ""
25366
25367 #. type: =head2
25368 #: ../src/guestfs-actions.pod:1403
25369 msgid "guestfs_copy_device_to_file"
25370 msgstr ""
25371
25372 #. type: verbatim
25373 #: ../src/guestfs-actions.pod:1405
25374 #, no-wrap
25375 msgid ""
25376 " int\n"
25377 " guestfs_copy_device_to_file (guestfs_h *g,\n"
25378 "                              const char *src,\n"
25379 "                              const char *dest,\n"
25380 "                              ...);\n"
25381 "\n"
25382 msgstr ""
25383
25384 #. type: verbatim
25385 #: ../src/guestfs-actions.pod:1416
25386 #, no-wrap
25387 msgid ""
25388 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
25389 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
25390 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
25391 "\n"
25392 msgstr ""
25393
25394 #. type: textblock
25395 #: ../src/guestfs-actions.pod:1420 ../src/guestfs-actions.pod:1471 ../src/guestfs-actions.pod:1522
25396 msgid "See C<guestfs_copy_device_to_device> for a general overview of this call."
25397 msgstr ""
25398
25399 #. type: =head2
25400 #: ../src/guestfs-actions.pod:1430
25401 msgid "guestfs_copy_device_to_file_va"
25402 msgstr ""
25403
25404 #. type: verbatim
25405 #: ../src/guestfs-actions.pod:1432
25406 #, no-wrap
25407 msgid ""
25408 " int\n"
25409 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
25410 "                                 const char *src,\n"
25411 "                                 const char *dest,\n"
25412 "                                 va_list args);\n"
25413 "\n"
25414 msgstr ""
25415
25416 #. type: textblock
25417 #: ../src/guestfs-actions.pod:1438
25418 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
25419 msgstr ""
25420
25421 #. type: =head2
25422 #: ../src/guestfs-actions.pod:1442
25423 msgid "guestfs_copy_device_to_file_argv"
25424 msgstr ""
25425
25426 #. type: verbatim
25427 #: ../src/guestfs-actions.pod:1444
25428 #, no-wrap
25429 msgid ""
25430 " int\n"
25431 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
25432 "                                   const char *src,\n"
25433 "                                   const char *dest,\n"
25434 "                                   const struct "
25435 "guestfs_copy_device_to_file_argv *optargs);\n"
25436 "\n"
25437 msgstr ""
25438
25439 #. type: textblock
25440 #: ../src/guestfs-actions.pod:1450
25441 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
25442 msgstr ""
25443
25444 #. type: =head2
25445 #: ../src/guestfs-actions.pod:1454
25446 msgid "guestfs_copy_file_to_device"
25447 msgstr ""
25448
25449 #. type: verbatim
25450 #: ../src/guestfs-actions.pod:1456
25451 #, no-wrap
25452 msgid ""
25453 " int\n"
25454 " guestfs_copy_file_to_device (guestfs_h *g,\n"
25455 "                              const char *src,\n"
25456 "                              const char *dest,\n"
25457 "                              ...);\n"
25458 "\n"
25459 msgstr ""
25460
25461 #. type: verbatim
25462 #: ../src/guestfs-actions.pod:1467
25463 #, no-wrap
25464 msgid ""
25465 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
25466 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
25467 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
25468 "\n"
25469 msgstr ""
25470
25471 #. type: =head2
25472 #: ../src/guestfs-actions.pod:1481
25473 msgid "guestfs_copy_file_to_device_va"
25474 msgstr ""
25475
25476 #. type: verbatim
25477 #: ../src/guestfs-actions.pod:1483
25478 #, no-wrap
25479 msgid ""
25480 " int\n"
25481 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
25482 "                                 const char *src,\n"
25483 "                                 const char *dest,\n"
25484 "                                 va_list args);\n"
25485 "\n"
25486 msgstr ""
25487
25488 #. type: textblock
25489 #: ../src/guestfs-actions.pod:1489
25490 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
25491 msgstr ""
25492
25493 #. type: =head2
25494 #: ../src/guestfs-actions.pod:1493
25495 msgid "guestfs_copy_file_to_device_argv"
25496 msgstr ""
25497
25498 #. type: verbatim
25499 #: ../src/guestfs-actions.pod:1495
25500 #, no-wrap
25501 msgid ""
25502 " int\n"
25503 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
25504 "                                   const char *src,\n"
25505 "                                   const char *dest,\n"
25506 "                                   const struct "
25507 "guestfs_copy_file_to_device_argv *optargs);\n"
25508 "\n"
25509 msgstr ""
25510
25511 #. type: textblock
25512 #: ../src/guestfs-actions.pod:1501
25513 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
25514 msgstr ""
25515
25516 #. type: =head2
25517 #: ../src/guestfs-actions.pod:1505
25518 msgid "guestfs_copy_file_to_file"
25519 msgstr ""
25520
25521 #. type: verbatim
25522 #: ../src/guestfs-actions.pod:1507
25523 #, no-wrap
25524 msgid ""
25525 " int\n"
25526 " guestfs_copy_file_to_file (guestfs_h *g,\n"
25527 "                            const char *src,\n"
25528 "                            const char *dest,\n"
25529 "                            ...);\n"
25530 "\n"
25531 msgstr ""
25532
25533 #. type: verbatim
25534 #: ../src/guestfs-actions.pod:1518
25535 #, no-wrap
25536 msgid ""
25537 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
25538 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
25539 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
25540 "\n"
25541 msgstr ""
25542
25543 #. type: textblock
25544 #: ../src/guestfs-actions.pod:1525
25545 msgid ""
25546 "This is B<not> the function you want for copying files.  This is for copying "
25547 "blocks within existing files.  See C<guestfs_cp>, C<guestfs_cp_a> and "
25548 "C<guestfs_mv> for general file copying and moving functions."
25549 msgstr ""
25550
25551 #. type: =head2
25552 #: ../src/guestfs-actions.pod:1537
25553 msgid "guestfs_copy_file_to_file_va"
25554 msgstr ""
25555
25556 #. type: verbatim
25557 #: ../src/guestfs-actions.pod:1539
25558 #, no-wrap
25559 msgid ""
25560 " int\n"
25561 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
25562 "                               const char *src,\n"
25563 "                               const char *dest,\n"
25564 "                               va_list args);\n"
25565 "\n"
25566 msgstr ""
25567
25568 #. type: textblock
25569 #: ../src/guestfs-actions.pod:1545
25570 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
25571 msgstr ""
25572
25573 #. type: =head2
25574 #: ../src/guestfs-actions.pod:1549
25575 msgid "guestfs_copy_file_to_file_argv"
25576 msgstr ""
25577
25578 #. type: verbatim
25579 #: ../src/guestfs-actions.pod:1551
25580 #, no-wrap
25581 msgid ""
25582 " int\n"
25583 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
25584 "                                 const char *src,\n"
25585 "                                 const char *dest,\n"
25586 "                                 const struct guestfs_copy_file_to_file_argv "
25587 "*optargs);\n"
25588 "\n"
25589 msgstr ""
25590
25591 #. type: textblock
25592 #: ../src/guestfs-actions.pod:1557
25593 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
25594 msgstr ""
25595
25596 #. type: =head2
25597 #: ../src/guestfs-actions.pod:1561
25598 msgid "guestfs_copy_size"
25599 msgstr ""
25600
25601 #. type: verbatim
25602 #: ../src/guestfs-actions.pod:1563
25603 #, no-wrap
25604 msgid ""
25605 " int\n"
25606 " guestfs_copy_size (guestfs_h *g,\n"
25607 "                    const char *src,\n"
25608 "                    const char *dest,\n"
25609 "                    int64_t size);\n"
25610 "\n"
25611 msgstr ""
25612
25613 #. type: textblock
25614 #: ../src/guestfs-actions.pod:1569 ../src/guestfs-actions.pod:1626
25615 msgid ""
25616 "I<This function is deprecated.> In new code, use the "
25617 "L</guestfs_copy_device_to_device> call instead."
25618 msgstr ""
25619
25620 #. type: textblock
25621 #: ../src/guestfs-actions.pod:1589 ../src/guestfs-actions.pod:4821 ../src/guestfs-actions.pod:6214 ../src/guestfs-actions.pod:7956 ../src/guestfs-actions.pod:7976 ../src/guestfs-actions.pod:8062
25622 msgid "(Added in 1.0.87)"
25623 msgstr ""
25624
25625 #. type: =head2
25626 #: ../src/guestfs-actions.pod:1591
25627 msgid "guestfs_cp"
25628 msgstr ""
25629
25630 #. type: verbatim
25631 #: ../src/guestfs-actions.pod:1593
25632 #, no-wrap
25633 msgid ""
25634 " int\n"
25635 " guestfs_cp (guestfs_h *g,\n"
25636 "             const char *src,\n"
25637 "             const char *dest);\n"
25638 "\n"
25639 msgstr ""
25640
25641 #. type: textblock
25642 #: ../src/guestfs-actions.pod:1603 ../src/guestfs-actions.pod:1617 ../src/guestfs-actions.pod:1697 ../src/guestfs-actions.pod:1771 ../src/guestfs-actions.pod:1885 ../src/guestfs-actions.pod:5565 ../src/guestfs-actions.pod:6058
25643 msgid "(Added in 1.0.18)"
25644 msgstr ""
25645
25646 #. type: =head2
25647 #: ../src/guestfs-actions.pod:1605
25648 msgid "guestfs_cp_a"
25649 msgstr ""
25650
25651 #. type: verbatim
25652 #: ../src/guestfs-actions.pod:1607
25653 #, no-wrap
25654 msgid ""
25655 " int\n"
25656 " guestfs_cp_a (guestfs_h *g,\n"
25657 "               const char *src,\n"
25658 "               const char *dest);\n"
25659 "\n"
25660 msgstr ""
25661
25662 #. type: =head2
25663 #: ../src/guestfs-actions.pod:1619
25664 msgid "guestfs_dd"
25665 msgstr ""
25666
25667 #. type: verbatim
25668 #: ../src/guestfs-actions.pod:1621
25669 #, no-wrap
25670 msgid ""
25671 " int\n"
25672 " guestfs_dd (guestfs_h *g,\n"
25673 "             const char *src,\n"
25674 "             const char *dest);\n"
25675 "\n"
25676 msgstr ""
25677
25678 #. type: textblock
25679 #: ../src/guestfs-actions.pod:1638
25680 msgid ""
25681 "If the destination is a device, it must be as large or larger than the "
25682 "source file or device, otherwise the copy will fail.  This command cannot do "
25683 "partial copies (see C<guestfs_copy_device_to_device>)."
25684 msgstr ""
25685
25686 #. type: =head2
25687 #: ../src/guestfs-actions.pod:1647
25688 msgid "guestfs_df"
25689 msgstr ""
25690
25691 #. type: verbatim
25692 #: ../src/guestfs-actions.pod:1649
25693 #, no-wrap
25694 msgid ""
25695 " char *\n"
25696 " guestfs_df (guestfs_h *g);\n"
25697 "\n"
25698 msgstr ""
25699
25700 #. type: textblock
25701 #: ../src/guestfs-actions.pod:1654 ../src/guestfs-actions.pod:1671
25702 msgid ""
25703 "This command is mostly useful for interactive sessions.  It is I<not> "
25704 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
25705 "from programs."
25706 msgstr ""
25707
25708 #. type: textblock
25709 #: ../src/guestfs-actions.pod:1661 ../src/guestfs-actions.pod:1678 ../src/guestfs-actions.pod:1796 ../src/guestfs-actions.pod:2803 ../src/guestfs-actions.pod:2827 ../src/guestfs-actions.pod:2895 ../src/guestfs-actions.pod:4931 ../src/guestfs-actions.pod:5465 ../src/guestfs-actions.pod:7459 ../src/guestfs-actions.pod:7483 ../src/guestfs-actions.pod:8102 ../src/guestfs-actions.pod:8115 ../src/guestfs-actions.pod:8128
25710 msgid "(Added in 1.0.54)"
25711 msgstr ""
25712
25713 #. type: =head2
25714 #: ../src/guestfs-actions.pod:1663
25715 msgid "guestfs_df_h"
25716 msgstr ""
25717
25718 #. type: verbatim
25719 #: ../src/guestfs-actions.pod:1665
25720 #, no-wrap
25721 msgid ""
25722 " char *\n"
25723 " guestfs_df_h (guestfs_h *g);\n"
25724 "\n"
25725 msgstr ""
25726
25727 #. type: =head2
25728 #: ../src/guestfs-actions.pod:1680
25729 msgid "guestfs_dmesg"
25730 msgstr ""
25731
25732 #. type: verbatim
25733 #: ../src/guestfs-actions.pod:1682
25734 #, no-wrap
25735 msgid ""
25736 " char *\n"
25737 " guestfs_dmesg (guestfs_h *g);\n"
25738 "\n"
25739 msgstr ""
25740
25741 #. type: textblock
25742 #: ../src/guestfs-actions.pod:1689
25743 msgid ""
25744 "Another way to get the same information is to enable verbose messages with "
25745 "C<guestfs_set_verbose> or by setting the environment variable "
25746 "C<LIBGUESTFS_DEBUG=1> before running the program."
25747 msgstr ""
25748
25749 #. type: =head2
25750 #: ../src/guestfs-actions.pod:1699
25751 msgid "guestfs_download"
25752 msgstr ""
25753
25754 #. type: verbatim
25755 #: ../src/guestfs-actions.pod:1701
25756 #, no-wrap
25757 msgid ""
25758 " int\n"
25759 " guestfs_download (guestfs_h *g,\n"
25760 "                   const char *remotefilename,\n"
25761 "                   const char *filename);\n"
25762 "\n"
25763 msgstr ""
25764
25765 #. type: textblock
25766 #: ../src/guestfs-actions.pod:1711
25767 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
25768 msgstr ""
25769
25770 #. type: =head2
25771 #: ../src/guestfs-actions.pod:1722
25772 msgid "guestfs_download_offset"
25773 msgstr ""
25774
25775 #. type: verbatim
25776 #: ../src/guestfs-actions.pod:1724
25777 #, no-wrap
25778 msgid ""
25779 " int\n"
25780 " guestfs_download_offset (guestfs_h *g,\n"
25781 "                          const char *remotefilename,\n"
25782 "                          const char *filename,\n"
25783 "                          int64_t offset,\n"
25784 "                          int64_t size);\n"
25785 "\n"
25786 msgstr ""
25787
25788 #. type: textblock
25789 #: ../src/guestfs-actions.pod:1737
25790 msgid ""
25791 "Note that there is no limit on the amount of data that can be downloaded "
25792 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
25793 "full amount unless an error occurs."
25794 msgstr ""
25795
25796 #. type: textblock
25797 #: ../src/guestfs-actions.pod:1742
25798 msgid "See also C<guestfs_download>, C<guestfs_pread>."
25799 msgstr ""
25800
25801 #. type: textblock
25802 #: ../src/guestfs-actions.pod:1751 ../src/guestfs-actions.pod:7760
25803 msgid "(Added in 1.5.17)"
25804 msgstr ""
25805
25806 #. type: =head2
25807 #: ../src/guestfs-actions.pod:1753
25808 msgid "guestfs_drop_caches"
25809 msgstr ""
25810
25811 #. type: verbatim
25812 #: ../src/guestfs-actions.pod:1755
25813 #, no-wrap
25814 msgid ""
25815 " int\n"
25816 " guestfs_drop_caches (guestfs_h *g,\n"
25817 "                      int whattodrop);\n"
25818 "\n"
25819 msgstr ""
25820
25821 #. type: =head2
25822 #: ../src/guestfs-actions.pod:1773
25823 msgid "guestfs_du"
25824 msgstr ""
25825
25826 #. type: verbatim
25827 #: ../src/guestfs-actions.pod:1775
25828 #, no-wrap
25829 msgid ""
25830 " int64_t\n"
25831 " guestfs_du (guestfs_h *g,\n"
25832 "             const char *path);\n"
25833 "\n"
25834 msgstr ""
25835
25836 #. type: =head2
25837 #: ../src/guestfs-actions.pod:1798
25838 msgid "guestfs_e2fsck_f"
25839 msgstr ""
25840
25841 #. type: verbatim
25842 #: ../src/guestfs-actions.pod:1800
25843 #, no-wrap
25844 msgid ""
25845 " int\n"
25846 " guestfs_e2fsck_f (guestfs_h *g,\n"
25847 "                   const char *device);\n"
25848 "\n"
25849 msgstr ""
25850
25851 #. type: textblock
25852 #: ../src/guestfs-actions.pod:1808
25853 msgid ""
25854 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
25855 "Normally you should use C<guestfs_fsck>."
25856 msgstr ""
25857
25858 #. type: textblock
25859 #: ../src/guestfs-actions.pod:1813
25860 msgid "(Added in 1.0.29)"
25861 msgstr ""
25862
25863 #. type: =head2
25864 #: ../src/guestfs-actions.pod:1815
25865 msgid "guestfs_echo_daemon"
25866 msgstr ""
25867
25868 #. type: verbatim
25869 #: ../src/guestfs-actions.pod:1817
25870 #, no-wrap
25871 msgid ""
25872 " char *\n"
25873 " guestfs_echo_daemon (guestfs_h *g,\n"
25874 "                      char *const *words);\n"
25875 "\n"
25876 msgstr ""
25877
25878 #. type: textblock
25879 #: ../src/guestfs-actions.pod:1826
25880 msgid "See also C<guestfs_ping_daemon>."
25881 msgstr ""
25882
25883 #. type: textblock
25884 #: ../src/guestfs-actions.pod:1831 ../src/guestfs-actions.pod:2589 ../src/guestfs-actions.pod:6931
25885 msgid "(Added in 1.0.69)"
25886 msgstr ""
25887
25888 #. type: =head2
25889 #: ../src/guestfs-actions.pod:1833
25890 msgid "guestfs_egrep"
25891 msgstr ""
25892
25893 #. type: verbatim
25894 #: ../src/guestfs-actions.pod:1835
25895 #, no-wrap
25896 msgid ""
25897 " char **\n"
25898 " guestfs_egrep (guestfs_h *g,\n"
25899 "                const char *regex,\n"
25900 "                const char *path);\n"
25901 "\n"
25902 msgstr ""
25903
25904 #. type: textblock
25905 #: ../src/guestfs-actions.pod:1850 ../src/guestfs-actions.pod:1869 ../src/guestfs-actions.pod:1926 ../src/guestfs-actions.pod:1972 ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:2719 ../src/guestfs-actions.pod:2738 ../src/guestfs-actions.pod:2916 ../src/guestfs-actions.pod:2929 ../src/guestfs-actions.pod:2944 ../src/guestfs-actions.pod:2990 ../src/guestfs-actions.pod:3012 ../src/guestfs-actions.pod:3025 ../src/guestfs-actions.pod:4311 ../src/guestfs-actions.pod:4325 ../src/guestfs-actions.pod:4338 ../src/guestfs-actions.pod:4352 ../src/guestfs-actions.pod:5353 ../src/guestfs-actions.pod:6392 ../src/guestfs-actions.pod:6441 ../src/guestfs-actions.pod:7327 ../src/guestfs-actions.pod:7339 ../src/guestfs-actions.pod:7352 ../src/guestfs-actions.pod:7365 ../src/guestfs-actions.pod:7387 ../src/guestfs-actions.pod:7400 ../src/guestfs-actions.pod:7413 ../src/guestfs-actions.pod:7426 ../src/guestfs-actions.pod:8220 ../src/guestfs-actions.pod:8239 ../src/guestfs-actions.pod:8333 ../src/guestfs-actions.pod:8352 ../src/guestfs-actions.pod:8398 ../src/guestfs-actions.pod:8417
25906 msgid "(Added in 1.0.66)"
25907 msgstr ""
25908
25909 #. type: =head2
25910 #: ../src/guestfs-actions.pod:1852
25911 msgid "guestfs_egrepi"
25912 msgstr ""
25913
25914 #. type: verbatim
25915 #: ../src/guestfs-actions.pod:1854
25916 #, no-wrap
25917 msgid ""
25918 " char **\n"
25919 " guestfs_egrepi (guestfs_h *g,\n"
25920 "                 const char *regex,\n"
25921 "                 const char *path);\n"
25922 "\n"
25923 msgstr ""
25924
25925 #. type: =head2
25926 #: ../src/guestfs-actions.pod:1871
25927 msgid "guestfs_equal"
25928 msgstr ""
25929
25930 #. type: verbatim
25931 #: ../src/guestfs-actions.pod:1873
25932 #, no-wrap
25933 msgid ""
25934 " int\n"
25935 " guestfs_equal (guestfs_h *g,\n"
25936 "                const char *file1,\n"
25937 "                const char *file2);\n"
25938 "\n"
25939 msgstr ""
25940
25941 #. type: =head2
25942 #: ../src/guestfs-actions.pod:1887
25943 msgid "guestfs_exists"
25944 msgstr ""
25945
25946 #. type: verbatim
25947 #: ../src/guestfs-actions.pod:1889
25948 #, no-wrap
25949 msgid ""
25950 " int\n"
25951 " guestfs_exists (guestfs_h *g,\n"
25952 "                 const char *path);\n"
25953 "\n"
25954 msgstr ""
25955
25956 #. type: textblock
25957 #: ../src/guestfs-actions.pod:1896
25958 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
25959 msgstr ""
25960
25961 #. type: =head2
25962 #: ../src/guestfs-actions.pod:1902
25963 msgid "guestfs_fallocate"
25964 msgstr ""
25965
25966 #. type: verbatim
25967 #: ../src/guestfs-actions.pod:1904
25968 #, no-wrap
25969 msgid ""
25970 " int\n"
25971 " guestfs_fallocate (guestfs_h *g,\n"
25972 "                    const char *path,\n"
25973 "                    int len);\n"
25974 "\n"
25975 msgstr ""
25976
25977 #. type: textblock
25978 #: ../src/guestfs-actions.pod:1909
25979 msgid ""
25980 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
25981 "call instead."
25982 msgstr ""
25983
25984 #. type: =head2
25985 #: ../src/guestfs-actions.pod:1928
25986 msgid "guestfs_fallocate64"
25987 msgstr ""
25988
25989 #. type: verbatim
25990 #: ../src/guestfs-actions.pod:1930
25991 #, no-wrap
25992 msgid ""
25993 " int\n"
25994 " guestfs_fallocate64 (guestfs_h *g,\n"
25995 "                      const char *path,\n"
25996 "                      int64_t len);\n"
25997 "\n"
25998 msgstr ""
25999
26000 #. type: textblock
26001 #: ../src/guestfs-actions.pod:1939
26002 msgid ""
26003 "Note that this call allocates disk blocks for the file.  To create a sparse "
26004 "file use C<guestfs_truncate_size> instead."
26005 msgstr ""
26006
26007 #. type: textblock
26008 #: ../src/guestfs-actions.pod:1942
26009 msgid ""
26010 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
26011 "oversight it only allowed 30 bit lengths to be specified, effectively "
26012 "limiting the maximum size of files created through that call to 1GB."
26013 msgstr ""
26014
26015 #. type: textblock
26016 #: ../src/guestfs-actions.pod:1953
26017 msgid "(Added in 1.3.17)"
26018 msgstr ""
26019
26020 #. type: =head2
26021 #: ../src/guestfs-actions.pod:1955
26022 msgid "guestfs_fgrep"
26023 msgstr ""
26024
26025 #. type: verbatim
26026 #: ../src/guestfs-actions.pod:1957
26027 #, no-wrap
26028 msgid ""
26029 " char **\n"
26030 " guestfs_fgrep (guestfs_h *g,\n"
26031 "                const char *pattern,\n"
26032 "                const char *path);\n"
26033 "\n"
26034 msgstr ""
26035
26036 #. type: =head2
26037 #: ../src/guestfs-actions.pod:1974
26038 msgid "guestfs_fgrepi"
26039 msgstr ""
26040
26041 #. type: verbatim
26042 #: ../src/guestfs-actions.pod:1976
26043 #, no-wrap
26044 msgid ""
26045 " char **\n"
26046 " guestfs_fgrepi (guestfs_h *g,\n"
26047 "                 const char *pattern,\n"
26048 "                 const char *path);\n"
26049 "\n"
26050 msgstr ""
26051
26052 #. type: =head2
26053 #: ../src/guestfs-actions.pod:1993
26054 msgid "guestfs_file"
26055 msgstr ""
26056
26057 #. type: verbatim
26058 #: ../src/guestfs-actions.pod:1995
26059 #, no-wrap
26060 msgid ""
26061 " char *\n"
26062 " guestfs_file (guestfs_h *g,\n"
26063 "               const char *path);\n"
26064 "\n"
26065 msgstr ""
26066
26067 #. type: textblock
26068 #: ../src/guestfs-actions.pod:2013
26069 msgid ""
26070 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
26071 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
26072 msgstr ""
26073
26074 #. type: =head2
26075 #: ../src/guestfs-actions.pod:2021
26076 msgid "guestfs_file_architecture"
26077 msgstr ""
26078
26079 #. type: verbatim
26080 #: ../src/guestfs-actions.pod:2023
26081 #, no-wrap
26082 msgid ""
26083 " char *\n"
26084 " guestfs_file_architecture (guestfs_h *g,\n"
26085 "                            const char *filename);\n"
26086 "\n"
26087 msgstr ""
26088
26089 #. type: textblock
26090 #: ../src/guestfs-actions.pod:2131 ../src/guestfs-actions.pod:2294 ../src/guestfs-actions.pod:2311 ../src/guestfs-actions.pod:3045 ../src/guestfs-actions.pod:3147 ../src/guestfs-actions.pod:3213 ../src/guestfs-actions.pod:3400 ../src/guestfs-actions.pod:3418 ../src/guestfs-actions.pod:3458 ../src/guestfs-actions.pod:3534 ../src/guestfs-actions.pod:3631 ../src/guestfs-actions.pod:3868 ../src/guestfs-actions.pod:4000
26091 msgid "(Added in 1.5.3)"
26092 msgstr ""
26093
26094 #. type: =head2
26095 #: ../src/guestfs-actions.pod:2133
26096 msgid "guestfs_filesize"
26097 msgstr ""
26098
26099 #. type: verbatim
26100 #: ../src/guestfs-actions.pod:2135
26101 #, no-wrap
26102 msgid ""
26103 " int64_t\n"
26104 " guestfs_filesize (guestfs_h *g,\n"
26105 "                   const char *file);\n"
26106 "\n"
26107 msgstr ""
26108
26109 #. type: textblock
26110 #: ../src/guestfs-actions.pod:2141
26111 msgid ""
26112 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
26113 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
26114 "devices, use C<guestfs_blockdev_getsize64>."
26115 msgstr ""
26116
26117 #. type: textblock
26118 #: ../src/guestfs-actions.pod:2147
26119 msgid "(Added in 1.0.82)"
26120 msgstr ""
26121
26122 #. type: =head2
26123 #: ../src/guestfs-actions.pod:2149
26124 msgid "guestfs_fill"
26125 msgstr ""
26126
26127 #. type: verbatim
26128 #: ../src/guestfs-actions.pod:2151
26129 #, no-wrap
26130 msgid ""
26131 " int\n"
26132 " guestfs_fill (guestfs_h *g,\n"
26133 "               int c,\n"
26134 "               int len,\n"
26135 "               const char *path);\n"
26136 "\n"
26137 msgstr ""
26138
26139 #. type: textblock
26140 #: ../src/guestfs-actions.pod:2161
26141 msgid ""
26142 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
26143 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
26144 "bytes use C<guestfs_fill_pattern>."
26145 msgstr ""
26146
26147 #. type: textblock
26148 #: ../src/guestfs-actions.pod:2173
26149 msgid "(Added in 1.0.79)"
26150 msgstr ""
26151
26152 #. type: =head2
26153 #: ../src/guestfs-actions.pod:2175
26154 msgid "guestfs_fill_pattern"
26155 msgstr ""
26156
26157 #. type: verbatim
26158 #: ../src/guestfs-actions.pod:2177
26159 #, no-wrap
26160 msgid ""
26161 " int\n"
26162 " guestfs_fill_pattern (guestfs_h *g,\n"
26163 "                       const char *pattern,\n"
26164 "                       int len,\n"
26165 "                       const char *path);\n"
26166 "\n"
26167 msgstr ""
26168
26169 #. type: textblock
26170 #: ../src/guestfs-actions.pod:2183
26171 msgid ""
26172 "This function is like C<guestfs_fill> except that it creates a new file of "
26173 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
26174 "pattern is truncated if necessary to ensure the length of the file is "
26175 "exactly C<len> bytes."
26176 msgstr ""
26177
26178 #. type: textblock
26179 #: ../src/guestfs-actions.pod:2195
26180 msgid "(Added in 1.3.12)"
26181 msgstr ""
26182
26183 #. type: =head2
26184 #: ../src/guestfs-actions.pod:2197
26185 msgid "guestfs_find"
26186 msgstr ""
26187
26188 #. type: verbatim
26189 #: ../src/guestfs-actions.pod:2199
26190 #, no-wrap
26191 msgid ""
26192 " char **\n"
26193 " guestfs_find (guestfs_h *g,\n"
26194 "               const char *directory);\n"
26195 "\n"
26196 msgstr ""
26197
26198 #. type: textblock
26199 #: ../src/guestfs-actions.pod:2215
26200 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
26201 msgstr ""
26202
26203 #. type: textblock
26204 #: ../src/guestfs-actions.pod:2228
26205 msgid "See also C<guestfs_find0>."
26206 msgstr ""
26207
26208 #. type: textblock
26209 #: ../src/guestfs-actions.pod:2237 ../src/guestfs-actions.pod:4758 ../src/guestfs-actions.pod:6476
26210 msgid "(Added in 1.0.27)"
26211 msgstr ""
26212
26213 #. type: =head2
26214 #: ../src/guestfs-actions.pod:2239
26215 msgid "guestfs_find0"
26216 msgstr ""
26217
26218 #. type: verbatim
26219 #: ../src/guestfs-actions.pod:2241
26220 #, no-wrap
26221 msgid ""
26222 " int\n"
26223 " guestfs_find0 (guestfs_h *g,\n"
26224 "                const char *directory,\n"
26225 "                const char *files);\n"
26226 "\n"
26227 msgstr ""
26228
26229 #. type: textblock
26230 #: ../src/guestfs-actions.pod:2250
26231 msgid ""
26232 "This command works the same way as C<guestfs_find> with the following "
26233 "exceptions:"
26234 msgstr ""
26235
26236 #. type: textblock
26237 #: ../src/guestfs-actions.pod:2277
26238 msgid "(Added in 1.0.74)"
26239 msgstr ""
26240
26241 #. type: =head2
26242 #: ../src/guestfs-actions.pod:2279
26243 msgid "guestfs_findfs_label"
26244 msgstr ""
26245
26246 #. type: verbatim
26247 #: ../src/guestfs-actions.pod:2281
26248 #, no-wrap
26249 msgid ""
26250 " char *\n"
26251 " guestfs_findfs_label (guestfs_h *g,\n"
26252 "                       const char *label);\n"
26253 "\n"
26254 msgstr ""
26255
26256 #. type: textblock
26257 #: ../src/guestfs-actions.pod:2289
26258 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
26259 msgstr ""
26260
26261 #. type: =head2
26262 #: ../src/guestfs-actions.pod:2296
26263 msgid "guestfs_findfs_uuid"
26264 msgstr ""
26265
26266 #. type: verbatim
26267 #: ../src/guestfs-actions.pod:2298
26268 #, no-wrap
26269 msgid ""
26270 " char *\n"
26271 " guestfs_findfs_uuid (guestfs_h *g,\n"
26272 "                      const char *uuid);\n"
26273 "\n"
26274 msgstr ""
26275
26276 #. type: textblock
26277 #: ../src/guestfs-actions.pod:2306
26278 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
26279 msgstr ""
26280
26281 #. type: =head2
26282 #: ../src/guestfs-actions.pod:2313
26283 msgid "guestfs_fsck"
26284 msgstr ""
26285
26286 #. type: verbatim
26287 #: ../src/guestfs-actions.pod:2315
26288 #, no-wrap
26289 msgid ""
26290 " int\n"
26291 " guestfs_fsck (guestfs_h *g,\n"
26292 "               const char *fstype,\n"
26293 "               const char *device);\n"
26294 "\n"
26295 msgstr ""
26296
26297 #. type: textblock
26298 #: ../src/guestfs-actions.pod:2350 ../src/guestfs-actions.pod:8267
26299 msgid "(Added in 1.0.16)"
26300 msgstr ""
26301
26302 #. type: =head2
26303 #: ../src/guestfs-actions.pod:2352
26304 msgid "guestfs_get_append"
26305 msgstr ""
26306
26307 #. type: verbatim
26308 #: ../src/guestfs-actions.pod:2354
26309 #, no-wrap
26310 msgid ""
26311 " const char *\n"
26312 " guestfs_get_append (guestfs_h *g);\n"
26313 "\n"
26314 msgstr ""
26315
26316 #. type: textblock
26317 #: ../src/guestfs-actions.pod:2362
26318 msgid ""
26319 "This function returns a string which may be NULL.  There is no way to return "
26320 "an error from this function.  The string is owned by the guest handle and "
26321 "must I<not> be freed."
26322 msgstr ""
26323
26324 #. type: textblock
26325 #: ../src/guestfs-actions.pod:2366 ../src/guestfs-actions.pod:6154 ../src/guestfs-actions.pod:6636 ../src/guestfs-actions.pod:7094 ../src/guestfs-actions.pod:7113 ../src/guestfs-actions.pod:7129 ../src/guestfs-actions.pod:7153 ../src/guestfs-actions.pod:7907 ../src/guestfs-actions.pod:7922 ../src/guestfs-actions.pod:8314
26326 msgid "(Added in 1.0.26)"
26327 msgstr ""
26328
26329 #. type: =head2
26330 #: ../src/guestfs-actions.pod:2368
26331 msgid "guestfs_get_attach_method"
26332 msgstr ""
26333
26334 #. type: verbatim
26335 #: ../src/guestfs-actions.pod:2370
26336 #, no-wrap
26337 msgid ""
26338 " char *\n"
26339 " guestfs_get_attach_method (guestfs_h *g);\n"
26340 "\n"
26341 msgstr ""
26342
26343 #. type: textblock
26344 #: ../src/guestfs-actions.pod:2373
26345 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
26346 msgstr ""
26347
26348 #. type: textblock
26349 #: ../src/guestfs-actions.pod:2378 ../src/guestfs-actions.pod:6666
26350 msgid "(Added in 1.9.8)"
26351 msgstr ""
26352
26353 #. type: =head2
26354 #: ../src/guestfs-actions.pod:2380
26355 msgid "guestfs_get_autosync"
26356 msgstr ""
26357
26358 #. type: verbatim
26359 #: ../src/guestfs-actions.pod:2382
26360 #, no-wrap
26361 msgid ""
26362 " int\n"
26363 " guestfs_get_autosync (guestfs_h *g);\n"
26364 "\n"
26365 msgstr ""
26366
26367 #. type: =head2
26368 #: ../src/guestfs-actions.pod:2391
26369 msgid "guestfs_get_direct"
26370 msgstr ""
26371
26372 #. type: verbatim
26373 #: ../src/guestfs-actions.pod:2393
26374 #, no-wrap
26375 msgid ""
26376 " int\n"
26377 " guestfs_get_direct (guestfs_h *g);\n"
26378 "\n"
26379 msgstr ""
26380
26381 #. type: textblock
26382 #: ../src/guestfs-actions.pod:2400 ../src/guestfs-actions.pod:6707
26383 msgid "(Added in 1.0.72)"
26384 msgstr ""
26385
26386 #. type: =head2
26387 #: ../src/guestfs-actions.pod:2402
26388 msgid "guestfs_get_e2label"
26389 msgstr ""
26390
26391 #. type: verbatim
26392 #: ../src/guestfs-actions.pod:2404
26393 #, no-wrap
26394 msgid ""
26395 " char *\n"
26396 " guestfs_get_e2label (guestfs_h *g,\n"
26397 "                      const char *device);\n"
26398 "\n"
26399 msgstr ""
26400
26401 #. type: textblock
26402 #: ../src/guestfs-actions.pod:2408
26403 msgid ""
26404 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
26405 "call instead."
26406 msgstr ""
26407
26408 #. type: textblock
26409 #: ../src/guestfs-actions.pod:2421 ../src/guestfs-actions.pod:2442 ../src/guestfs-actions.pod:6725 ../src/guestfs-actions.pod:6744
26410 msgid "(Added in 1.0.15)"
26411 msgstr ""
26412
26413 #. type: =head2
26414 #: ../src/guestfs-actions.pod:2423
26415 msgid "guestfs_get_e2uuid"
26416 msgstr ""
26417
26418 #. type: verbatim
26419 #: ../src/guestfs-actions.pod:2425
26420 #, no-wrap
26421 msgid ""
26422 " char *\n"
26423 " guestfs_get_e2uuid (guestfs_h *g,\n"
26424 "                     const char *device);\n"
26425 "\n"
26426 msgstr ""
26427
26428 #. type: textblock
26429 #: ../src/guestfs-actions.pod:2429
26430 msgid ""
26431 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
26432 "call instead."
26433 msgstr ""
26434
26435 #. type: =head2
26436 #: ../src/guestfs-actions.pod:2444
26437 msgid "guestfs_get_memsize"
26438 msgstr ""
26439
26440 #. type: verbatim
26441 #: ../src/guestfs-actions.pod:2446
26442 #, no-wrap
26443 msgid ""
26444 " int\n"
26445 " guestfs_get_memsize (guestfs_h *g);\n"
26446 "\n"
26447 msgstr ""
26448
26449 #. type: textblock
26450 #: ../src/guestfs-actions.pod:2452
26451 msgid ""
26452 "If C<guestfs_set_memsize> was not called on this handle, and if "
26453 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
26454 "value for memsize."
26455 msgstr ""
26456
26457 #. type: textblock
26458 #: ../src/guestfs-actions.pod:2461 ../src/guestfs-actions.pod:5049 ../src/guestfs-actions.pod:5258 ../src/guestfs-actions.pod:5277 ../src/guestfs-actions.pod:5296 ../src/guestfs-actions.pod:5308 ../src/guestfs-actions.pod:5325 ../src/guestfs-actions.pod:5338 ../src/guestfs-actions.pod:6379 ../src/guestfs-actions.pod:6765 ../src/guestfs-actions.pod:7061 ../src/guestfs-actions.pod:7676
26459 msgid "(Added in 1.0.55)"
26460 msgstr ""
26461
26462 #. type: =head2
26463 #: ../src/guestfs-actions.pod:2463
26464 msgid "guestfs_get_network"
26465 msgstr ""
26466
26467 #. type: verbatim
26468 #: ../src/guestfs-actions.pod:2465
26469 #, no-wrap
26470 msgid ""
26471 " int\n"
26472 " guestfs_get_network (guestfs_h *g);\n"
26473 "\n"
26474 msgstr ""
26475
26476 #. type: textblock
26477 #: ../src/guestfs-actions.pod:2472 ../src/guestfs-actions.pod:6784
26478 msgid "(Added in 1.5.4)"
26479 msgstr ""
26480
26481 #. type: =head2
26482 #: ../src/guestfs-actions.pod:2474
26483 msgid "guestfs_get_path"
26484 msgstr ""
26485
26486 #. type: verbatim
26487 #: ../src/guestfs-actions.pod:2476
26488 #, no-wrap
26489 msgid ""
26490 " const char *\n"
26491 " guestfs_get_path (guestfs_h *g);\n"
26492 "\n"
26493 msgstr ""
26494
26495 #. type: textblock
26496 #: ../src/guestfs-actions.pod:2484 ../src/guestfs-actions.pod:2524
26497 msgid ""
26498 "This function returns a string, or NULL on error.  The string is owned by "
26499 "the guest handle and must I<not> be freed."
26500 msgstr ""
26501
26502 #. type: =head2
26503 #: ../src/guestfs-actions.pod:2489
26504 msgid "guestfs_get_pgroup"
26505 msgstr ""
26506
26507 #. type: verbatim
26508 #: ../src/guestfs-actions.pod:2491
26509 #, no-wrap
26510 msgid ""
26511 " int\n"
26512 " guestfs_get_pgroup (guestfs_h *g);\n"
26513 "\n"
26514 msgstr ""
26515
26516 #. type: textblock
26517 #: ../src/guestfs-actions.pod:2498 ../src/guestfs-actions.pod:6820 ../src/guestfs-actions.pod:8168
26518 msgid "(Added in 1.11.18)"
26519 msgstr ""
26520
26521 #. type: =head2
26522 #: ../src/guestfs-actions.pod:2500
26523 msgid "guestfs_get_pid"
26524 msgstr ""
26525
26526 #. type: verbatim
26527 #: ../src/guestfs-actions.pod:2502
26528 #, no-wrap
26529 msgid ""
26530 " int\n"
26531 " guestfs_get_pid (guestfs_h *g);\n"
26532 "\n"
26533 msgstr ""
26534
26535 #. type: textblock
26536 #: ../src/guestfs-actions.pod:2512
26537 msgid "(Added in 1.0.56)"
26538 msgstr ""
26539
26540 #. type: =head2
26541 #: ../src/guestfs-actions.pod:2514
26542 msgid "guestfs_get_qemu"
26543 msgstr ""
26544
26545 #. type: verbatim
26546 #: ../src/guestfs-actions.pod:2516
26547 #, no-wrap
26548 msgid ""
26549 " const char *\n"
26550 " guestfs_get_qemu (guestfs_h *g);\n"
26551 "\n"
26552 msgstr ""
26553
26554 #. type: textblock
26555 #: ../src/guestfs-actions.pod:2527 ../src/guestfs-actions.pod:6848
26556 msgid "(Added in 1.0.6)"
26557 msgstr ""
26558
26559 #. type: =head2
26560 #: ../src/guestfs-actions.pod:2529
26561 msgid "guestfs_get_recovery_proc"
26562 msgstr ""
26563
26564 #. type: verbatim
26565 #: ../src/guestfs-actions.pod:2531
26566 #, no-wrap
26567 msgid ""
26568 " int\n"
26569 " guestfs_get_recovery_proc (guestfs_h *g);\n"
26570 "\n"
26571 msgstr ""
26572
26573 #. type: textblock
26574 #: ../src/guestfs-actions.pod:2538 ../src/guestfs-actions.pod:4122 ../src/guestfs-actions.pod:4453 ../src/guestfs-actions.pod:4856 ../src/guestfs-actions.pod:4888 ../src/guestfs-actions.pod:6084 ../src/guestfs-actions.pod:6427 ../src/guestfs-actions.pod:6872 ../src/guestfs-actions.pod:7579 ../src/guestfs-actions.pod:7599 ../src/guestfs-actions.pod:7791
26575 msgid "(Added in 1.0.77)"
26576 msgstr ""
26577
26578 #. type: =head2
26579 #: ../src/guestfs-actions.pod:2540
26580 msgid "guestfs_get_selinux"
26581 msgstr ""
26582
26583 #. type: verbatim
26584 #: ../src/guestfs-actions.pod:2542
26585 #, no-wrap
26586 msgid ""
26587 " int\n"
26588 " guestfs_get_selinux (guestfs_h *g);\n"
26589 "\n"
26590 msgstr ""
26591
26592 #. type: textblock
26593 #: ../src/guestfs-actions.pod:2545
26594 msgid ""
26595 "This returns the current setting of the selinux flag which is passed to the "
26596 "appliance at boot time.  See C<guestfs_set_selinux>."
26597 msgstr ""
26598
26599 #. type: textblock
26600 #: ../src/guestfs-actions.pod:2553 ../src/guestfs-actions.pod:2627 ../src/guestfs-actions.pod:6891 ../src/guestfs-actions.pod:6965
26601 msgid "(Added in 1.0.67)"
26602 msgstr ""
26603
26604 #. type: =head2
26605 #: ../src/guestfs-actions.pod:2555
26606 msgid "guestfs_get_smp"
26607 msgstr ""
26608
26609 #. type: verbatim
26610 #: ../src/guestfs-actions.pod:2557
26611 #, no-wrap
26612 msgid ""
26613 " int\n"
26614 " guestfs_get_smp (guestfs_h *g);\n"
26615 "\n"
26616 msgstr ""
26617
26618 #. type: =head2
26619 #: ../src/guestfs-actions.pod:2566
26620 msgid "guestfs_get_state"
26621 msgstr ""
26622
26623 #. type: verbatim
26624 #: ../src/guestfs-actions.pod:2568
26625 #, no-wrap
26626 msgid ""
26627 " int\n"
26628 " guestfs_get_state (guestfs_h *g);\n"
26629 "\n"
26630 msgstr ""
26631
26632 #. type: =head2
26633 #: ../src/guestfs-actions.pod:2580
26634 msgid "guestfs_get_trace"
26635 msgstr ""
26636
26637 #. type: verbatim
26638 #: ../src/guestfs-actions.pod:2582
26639 #, no-wrap
26640 msgid ""
26641 " int\n"
26642 " guestfs_get_trace (guestfs_h *g);\n"
26643 "\n"
26644 msgstr ""
26645
26646 #. type: =head2
26647 #: ../src/guestfs-actions.pod:2591
26648 msgid "guestfs_get_umask"
26649 msgstr ""
26650
26651 #. type: verbatim
26652 #: ../src/guestfs-actions.pod:2593
26653 #, no-wrap
26654 msgid ""
26655 " int\n"
26656 " guestfs_get_umask (guestfs_h *g);\n"
26657 "\n"
26658 msgstr ""
26659
26660 #. type: textblock
26661 #: ../src/guestfs-actions.pod:2596
26662 msgid ""
26663 "Return the current umask.  By default the umask is C<022> unless it has been "
26664 "set by calling C<guestfs_umask>."
26665 msgstr ""
26666
26667 #. type: =head2
26668 #: ../src/guestfs-actions.pod:2603
26669 msgid "guestfs_get_verbose"
26670 msgstr ""
26671
26672 #. type: verbatim
26673 #: ../src/guestfs-actions.pod:2605
26674 #, no-wrap
26675 msgid ""
26676 " int\n"
26677 " guestfs_get_verbose (guestfs_h *g);\n"
26678 "\n"
26679 msgstr ""
26680
26681 #. type: =head2
26682 #: ../src/guestfs-actions.pod:2614
26683 msgid "guestfs_getcon"
26684 msgstr ""
26685
26686 #. type: verbatim
26687 #: ../src/guestfs-actions.pod:2616
26688 #, no-wrap
26689 msgid ""
26690 " char *\n"
26691 " guestfs_getcon (guestfs_h *g);\n"
26692 "\n"
26693 msgstr ""
26694
26695 #. type: textblock
26696 #: ../src/guestfs-actions.pod:2621
26697 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
26698 msgstr ""
26699
26700 #. type: =head2
26701 #: ../src/guestfs-actions.pod:2629
26702 msgid "guestfs_getxattr"
26703 msgstr ""
26704
26705 #. type: verbatim
26706 #: ../src/guestfs-actions.pod:2631
26707 #, no-wrap
26708 msgid ""
26709 " char *\n"
26710 " guestfs_getxattr (guestfs_h *g,\n"
26711 "                   const char *path,\n"
26712 "                   const char *name,\n"
26713 "                   size_t *size_r);\n"
26714 "\n"
26715 msgstr ""
26716
26717 #. type: textblock
26718 #: ../src/guestfs-actions.pod:2637
26719 msgid ""
26720 "Get a single extended attribute from file C<path> named C<name>.  This call "
26721 "follows symlinks.  If you want to lookup an extended attribute for the "
26722 "symlink itself, use C<guestfs_lgetxattr>."
26723 msgstr ""
26724
26725 #. type: textblock
26726 #: ../src/guestfs-actions.pod:2641 ../src/guestfs-actions.pod:4136
26727 msgid ""
26728 "Normally it is better to get all extended attributes from a file in one go "
26729 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
26730 "implementations are buggy and do not provide a way to list out attributes.  "
26731 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
26732 "extended attributes you want in advance and call this function."
26733 msgstr ""
26734
26735 #. type: textblock
26736 #: ../src/guestfs-actions.pod:2651
26737 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
26738 msgstr ""
26739
26740 #. type: textblock
26741 #: ../src/guestfs-actions.pod:2653 ../src/guestfs-actions.pod:2866 ../src/guestfs-actions.pod:3348 ../src/guestfs-actions.pod:4148 ../src/guestfs-actions.pod:6077 ../src/guestfs-actions.pod:6103 ../src/guestfs-actions.pod:6284
26742 msgid ""
26743 "This function returns a buffer, or NULL on error.  The size of the returned "
26744 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
26745 "after use>."
26746 msgstr ""
26747
26748 #. type: textblock
26749 #: ../src/guestfs-actions.pod:2657 ../src/guestfs-actions.pod:4152
26750 msgid "(Added in 1.7.24)"
26751 msgstr ""
26752
26753 #. type: =head2
26754 #: ../src/guestfs-actions.pod:2659
26755 msgid "guestfs_getxattrs"
26756 msgstr ""
26757
26758 #. type: verbatim
26759 #: ../src/guestfs-actions.pod:2661
26760 #, no-wrap
26761 msgid ""
26762 " struct guestfs_xattr_list *\n"
26763 " guestfs_getxattrs (guestfs_h *g,\n"
26764 "                    const char *path);\n"
26765 "\n"
26766 msgstr ""
26767
26768 #. type: textblock
26769 #: ../src/guestfs-actions.pod:2671
26770 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
26771 msgstr ""
26772
26773 #. type: textblock
26774 #: ../src/guestfs-actions.pod:2673 ../src/guestfs-actions.pod:4164 ../src/guestfs-actions.pod:4852
26775 msgid ""
26776 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
26777 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
26778 msgstr ""
26779
26780 #. type: textblock
26781 #: ../src/guestfs-actions.pod:2677 ../src/guestfs-actions.pod:4168 ../src/guestfs-actions.pod:4367 ../src/guestfs-actions.pod:4403 ../src/guestfs-actions.pod:6457 ../src/guestfs-actions.pod:6984 ../src/guestfs-actions.pod:8379
26782 msgid "(Added in 1.0.59)"
26783 msgstr ""
26784
26785 #. type: =head2
26786 #: ../src/guestfs-actions.pod:2679
26787 msgid "guestfs_glob_expand"
26788 msgstr ""
26789
26790 #. type: verbatim
26791 #: ../src/guestfs-actions.pod:2681
26792 #, no-wrap
26793 msgid ""
26794 " char **\n"
26795 " guestfs_glob_expand (guestfs_h *g,\n"
26796 "                      const char *pattern);\n"
26797 "\n"
26798 msgstr ""
26799
26800 #. type: textblock
26801 #: ../src/guestfs-actions.pod:2700 ../src/guestfs-actions.pod:7177 ../src/guestfs-actions.pod:7194
26802 msgid "(Added in 1.0.50)"
26803 msgstr ""
26804
26805 #. type: =head2
26806 #: ../src/guestfs-actions.pod:2702
26807 msgid "guestfs_grep"
26808 msgstr ""
26809
26810 #. type: verbatim
26811 #: ../src/guestfs-actions.pod:2704
26812 #, no-wrap
26813 msgid ""
26814 " char **\n"
26815 " guestfs_grep (guestfs_h *g,\n"
26816 "               const char *regex,\n"
26817 "               const char *path);\n"
26818 "\n"
26819 msgstr ""
26820
26821 #. type: =head2
26822 #: ../src/guestfs-actions.pod:2721
26823 msgid "guestfs_grepi"
26824 msgstr ""
26825
26826 #. type: verbatim
26827 #: ../src/guestfs-actions.pod:2723
26828 #, no-wrap
26829 msgid ""
26830 " char **\n"
26831 " guestfs_grepi (guestfs_h *g,\n"
26832 "                const char *regex,\n"
26833 "                const char *path);\n"
26834 "\n"
26835 msgstr ""
26836
26837 #. type: =head2
26838 #: ../src/guestfs-actions.pod:2740
26839 msgid "guestfs_grub_install"
26840 msgstr ""
26841
26842 #. type: verbatim
26843 #: ../src/guestfs-actions.pod:2742
26844 #, no-wrap
26845 msgid ""
26846 " int\n"
26847 " guestfs_grub_install (guestfs_h *g,\n"
26848 "                       const char *root,\n"
26849 "                       const char *device);\n"
26850 "\n"
26851 msgstr ""
26852
26853 #. type: textblock
26854 #: ../src/guestfs-actions.pod:2785
26855 msgid "(Added in 1.0.17)"
26856 msgstr ""
26857
26858 #. type: =head2
26859 #: ../src/guestfs-actions.pod:2787
26860 msgid "guestfs_head"
26861 msgstr ""
26862
26863 #. type: verbatim
26864 #: ../src/guestfs-actions.pod:2789
26865 #, no-wrap
26866 msgid ""
26867 " char **\n"
26868 " guestfs_head (guestfs_h *g,\n"
26869 "               const char *path);\n"
26870 "\n"
26871 msgstr ""
26872
26873 #. type: =head2
26874 #: ../src/guestfs-actions.pod:2805
26875 msgid "guestfs_head_n"
26876 msgstr ""
26877
26878 #. type: verbatim
26879 #: ../src/guestfs-actions.pod:2807
26880 #, no-wrap
26881 msgid ""
26882 " char **\n"
26883 " guestfs_head_n (guestfs_h *g,\n"
26884 "                 int nrlines,\n"
26885 "                 const char *path);\n"
26886 "\n"
26887 msgstr ""
26888
26889 #. type: =head2
26890 #: ../src/guestfs-actions.pod:2829
26891 msgid "guestfs_hexdump"
26892 msgstr ""
26893
26894 #. type: verbatim
26895 #: ../src/guestfs-actions.pod:2831
26896 #, no-wrap
26897 msgid ""
26898 " char *\n"
26899 " guestfs_hexdump (guestfs_h *g,\n"
26900 "                  const char *path);\n"
26901 "\n"
26902 msgstr ""
26903
26904 #. type: textblock
26905 #: ../src/guestfs-actions.pod:2844 ../src/guestfs-actions.pod:7258 ../src/guestfs-actions.pod:7313
26906 msgid "(Added in 1.0.22)"
26907 msgstr ""
26908
26909 #. type: =head2
26910 #: ../src/guestfs-actions.pod:2846
26911 msgid "guestfs_initrd_cat"
26912 msgstr ""
26913
26914 #. type: verbatim
26915 #: ../src/guestfs-actions.pod:2848
26916 #, no-wrap
26917 msgid ""
26918 " char *\n"
26919 " guestfs_initrd_cat (guestfs_h *g,\n"
26920 "                     const char *initrdpath,\n"
26921 "                     const char *filename,\n"
26922 "                     size_t *size_r);\n"
26923 "\n"
26924 msgstr ""
26925
26926 #. type: textblock
26927 #: ../src/guestfs-actions.pod:2864
26928 msgid "See also C<guestfs_initrd_list>."
26929 msgstr ""
26930
26931 #. type: =head2
26932 #: ../src/guestfs-actions.pod:2875
26933 msgid "guestfs_initrd_list"
26934 msgstr ""
26935
26936 #. type: verbatim
26937 #: ../src/guestfs-actions.pod:2877
26938 #, no-wrap
26939 msgid ""
26940 " char **\n"
26941 " guestfs_initrd_list (guestfs_h *g,\n"
26942 "                      const char *path);\n"
26943 "\n"
26944 msgstr ""
26945
26946 #. type: =head2
26947 #: ../src/guestfs-actions.pod:2897
26948 msgid "guestfs_inotify_add_watch"
26949 msgstr ""
26950
26951 #. type: verbatim
26952 #: ../src/guestfs-actions.pod:2899
26953 #, no-wrap
26954 msgid ""
26955 " int64_t\n"
26956 " guestfs_inotify_add_watch (guestfs_h *g,\n"
26957 "                            const char *path,\n"
26958 "                            int mask);\n"
26959 "\n"
26960 msgstr ""
26961
26962 #. type: =head2
26963 #: ../src/guestfs-actions.pod:2918
26964 msgid "guestfs_inotify_close"
26965 msgstr ""
26966
26967 #. type: verbatim
26968 #: ../src/guestfs-actions.pod:2920
26969 #, no-wrap
26970 msgid ""
26971 " int\n"
26972 " guestfs_inotify_close (guestfs_h *g);\n"
26973 "\n"
26974 msgstr ""
26975
26976 #. type: =head2
26977 #: ../src/guestfs-actions.pod:2931
26978 msgid "guestfs_inotify_files"
26979 msgstr ""
26980
26981 #. type: verbatim
26982 #: ../src/guestfs-actions.pod:2933
26983 #, no-wrap
26984 msgid ""
26985 " char **\n"
26986 " guestfs_inotify_files (guestfs_h *g);\n"
26987 "\n"
26988 msgstr ""
26989
26990 #. type: textblock
26991 #: ../src/guestfs-actions.pod:2936
26992 msgid ""
26993 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
26994 "returns a list of pathnames of objects that were touched.  The returned "
26995 "pathnames are sorted and deduplicated."
26996 msgstr ""
26997
26998 #. type: =head2
26999 #: ../src/guestfs-actions.pod:2946
27000 msgid "guestfs_inotify_init"
27001 msgstr ""
27002
27003 #. type: verbatim
27004 #: ../src/guestfs-actions.pod:2948
27005 #, no-wrap
27006 msgid ""
27007 " int\n"
27008 " guestfs_inotify_init (guestfs_h *g,\n"
27009 "                       int maxevents);\n"
27010 "\n"
27011 msgstr ""
27012
27013 #. type: textblock
27014 #: ../src/guestfs-actions.pod:2956
27015 msgid ""
27016 "C<maxevents> is the maximum number of events which will be queued up between "
27017 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
27018 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
27019 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
27020 "throws away events, but records the fact that it threw them away by setting "
27021 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
27022 "C<guestfs_inotify_read>)."
27023 msgstr ""
27024
27025 #. type: textblock
27026 #: ../src/guestfs-actions.pod:2966
27027 msgid ""
27028 "Before any events are generated, you have to add some watches to the "
27029 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
27030 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
27031 msgstr ""
27032
27033 #. type: textblock
27034 #: ../src/guestfs-actions.pod:2972
27035 msgid ""
27036 "Queued up events should be read periodically by calling "
27037 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
27038 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
27039 "often enough then you risk the internal queue overflowing."
27040 msgstr ""
27041
27042 #. type: textblock
27043 #: ../src/guestfs-actions.pod:2979
27044 msgid ""
27045 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
27046 "This also removes any watches automatically."
27047 msgstr ""
27048
27049 #. type: =head2
27050 #: ../src/guestfs-actions.pod:2992
27051 msgid "guestfs_inotify_read"
27052 msgstr ""
27053
27054 #. type: verbatim
27055 #: ../src/guestfs-actions.pod:2994
27056 #, no-wrap
27057 msgid ""
27058 " struct guestfs_inotify_event_list *\n"
27059 " guestfs_inotify_read (guestfs_h *g);\n"
27060 "\n"
27061 msgstr ""
27062
27063 #. type: textblock
27064 #: ../src/guestfs-actions.pod:3008
27065 msgid ""
27066 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
27067 "there was an error.  I<The caller must call "
27068 "C<guestfs_free_inotify_event_list> after use>."
27069 msgstr ""
27070
27071 #. type: =head2
27072 #: ../src/guestfs-actions.pod:3014
27073 msgid "guestfs_inotify_rm_watch"
27074 msgstr ""
27075
27076 #. type: verbatim
27077 #: ../src/guestfs-actions.pod:3016
27078 #, no-wrap
27079 msgid ""
27080 " int\n"
27081 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
27082 "                           int wd);\n"
27083 "\n"
27084 msgstr ""
27085
27086 #. type: textblock
27087 #: ../src/guestfs-actions.pod:3020
27088 msgid ""
27089 "Remove a previously defined inotify watch.  See "
27090 "C<guestfs_inotify_add_watch>."
27091 msgstr ""
27092
27093 #. type: =head2
27094 #: ../src/guestfs-actions.pod:3027
27095 msgid "guestfs_inspect_get_arch"
27096 msgstr ""
27097
27098 #. type: verbatim
27099 #: ../src/guestfs-actions.pod:3029
27100 #, no-wrap
27101 msgid ""
27102 " char *\n"
27103 " guestfs_inspect_get_arch (guestfs_h *g,\n"
27104 "                           const char *root);\n"
27105 "\n"
27106 msgstr ""
27107
27108 #. type: textblock
27109 #: ../src/guestfs-actions.pod:3033
27110 msgid ""
27111 "This returns the architecture of the inspected operating system.  The "
27112 "possible return values are listed under C<guestfs_file_architecture>."
27113 msgstr ""
27114
27115 #. type: =head2
27116 #: ../src/guestfs-actions.pod:3047
27117 msgid "guestfs_inspect_get_distro"
27118 msgstr ""
27119
27120 #. type: verbatim
27121 #: ../src/guestfs-actions.pod:3049
27122 #, no-wrap
27123 msgid ""
27124 " char *\n"
27125 " guestfs_inspect_get_distro (guestfs_h *g,\n"
27126 "                             const char *root);\n"
27127 "\n"
27128 msgstr ""
27129
27130 #. type: =head2
27131 #: ../src/guestfs-actions.pod:3149
27132 msgid "guestfs_inspect_get_drive_mappings"
27133 msgstr ""
27134
27135 #. type: verbatim
27136 #: ../src/guestfs-actions.pod:3151
27137 #, no-wrap
27138 msgid ""
27139 " char **\n"
27140 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
27141 "                                     const char *root);\n"
27142 "\n"
27143 msgstr ""
27144
27145 #. type: textblock
27146 #: ../src/guestfs-actions.pod:3180
27147 msgid ""
27148 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27149 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
27150 msgstr ""
27151
27152 #. type: textblock
27153 #: ../src/guestfs-actions.pod:3184 ../src/guestfs-actions.pod:3452 ../src/guestfs-actions.pod:4255 ../src/guestfs-actions.pod:5527 ../src/guestfs-actions.pod:7615
27154 msgid ""
27155 "This function returns a NULL-terminated array of strings, or NULL if there "
27156 "was an error.  The array of strings will always have length C<2n+1>, where "
27157 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
27158 "caller must free the strings and the array after use>."
27159 msgstr ""
27160
27161 #. type: textblock
27162 #: ../src/guestfs-actions.pod:3190 ../src/guestfs-actions.pod:3651
27163 msgid "(Added in 1.9.17)"
27164 msgstr ""
27165
27166 #. type: =head2
27167 #: ../src/guestfs-actions.pod:3192
27168 msgid "guestfs_inspect_get_filesystems"
27169 msgstr ""
27170
27171 #. type: verbatim
27172 #: ../src/guestfs-actions.pod:3194
27173 #, no-wrap
27174 msgid ""
27175 " char **\n"
27176 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
27177 "                                  const char *root);\n"
27178 "\n"
27179 msgstr ""
27180
27181 #. type: textblock
27182 #: ../src/guestfs-actions.pod:3206
27183 msgid ""
27184 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27185 "C<guestfs_inspect_get_mountpoints>."
27186 msgstr ""
27187
27188 #. type: =head2
27189 #: ../src/guestfs-actions.pod:3215
27190 msgid "guestfs_inspect_get_format"
27191 msgstr ""
27192
27193 #. type: verbatim
27194 #: ../src/guestfs-actions.pod:3217
27195 #, no-wrap
27196 msgid ""
27197 " char *\n"
27198 " guestfs_inspect_get_format (guestfs_h *g,\n"
27199 "                             const char *root);\n"
27200 "\n"
27201 msgstr ""
27202
27203 #. type: textblock
27204 #: ../src/guestfs-actions.pod:3251 ../src/guestfs-actions.pod:3687 ../src/guestfs-actions.pod:3703 ../src/guestfs-actions.pod:3721 ../src/guestfs-actions.pod:6495
27205 msgid "(Added in 1.9.4)"
27206 msgstr ""
27207
27208 #. type: =head2
27209 #: ../src/guestfs-actions.pod:3253
27210 msgid "guestfs_inspect_get_hostname"
27211 msgstr ""
27212
27213 #. type: verbatim
27214 #: ../src/guestfs-actions.pod:3255
27215 #, no-wrap
27216 msgid ""
27217 " char *\n"
27218 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
27219 "                               const char *root);\n"
27220 "\n"
27221 msgstr ""
27222
27223 #. type: textblock
27224 #: ../src/guestfs-actions.pod:3270
27225 msgid "(Added in 1.7.9)"
27226 msgstr ""
27227
27228 #. type: =head2
27229 #: ../src/guestfs-actions.pod:3272
27230 msgid "guestfs_inspect_get_icon"
27231 msgstr ""
27232
27233 #. type: verbatim
27234 #: ../src/guestfs-actions.pod:3274
27235 #, no-wrap
27236 msgid ""
27237 " char *\n"
27238 " guestfs_inspect_get_icon (guestfs_h *g,\n"
27239 "                           const char *root,\n"
27240 "                           size_t *size_r,\n"
27241 "                           ...);\n"
27242 "\n"
27243 msgstr ""
27244
27245 #. type: verbatim
27246 #: ../src/guestfs-actions.pod:3285
27247 #, no-wrap
27248 msgid ""
27249 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
27250 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
27251 "\n"
27252 msgstr ""
27253
27254 #. type: textblock
27255 #: ../src/guestfs-actions.pod:3352 ../src/guestfs-actions.pod:4182 ../src/guestfs-actions.pod:5426
27256 msgid "(Added in 1.11.12)"
27257 msgstr ""
27258
27259 #. type: =head2
27260 #: ../src/guestfs-actions.pod:3354
27261 msgid "guestfs_inspect_get_icon_va"
27262 msgstr ""
27263
27264 #. type: verbatim
27265 #: ../src/guestfs-actions.pod:3356
27266 #, no-wrap
27267 msgid ""
27268 " char *\n"
27269 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
27270 "                              const char *root,\n"
27271 "                              size_t *size_r,\n"
27272 "                              va_list args);\n"
27273 "\n"
27274 msgstr ""
27275
27276 #. type: textblock
27277 #: ../src/guestfs-actions.pod:3362
27278 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
27279 msgstr ""
27280
27281 #. type: =head2
27282 #: ../src/guestfs-actions.pod:3366
27283 msgid "guestfs_inspect_get_icon_argv"
27284 msgstr ""
27285
27286 #. type: verbatim
27287 #: ../src/guestfs-actions.pod:3368
27288 #, no-wrap
27289 msgid ""
27290 " char *\n"
27291 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
27292 "                                const char *root,\n"
27293 "                                size_t *size_r,\n"
27294 "                                const struct guestfs_inspect_get_icon_argv "
27295 "*optargs);\n"
27296 "\n"
27297 msgstr ""
27298
27299 #. type: textblock
27300 #: ../src/guestfs-actions.pod:3374
27301 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
27302 msgstr ""
27303
27304 #. type: =head2
27305 #: ../src/guestfs-actions.pod:3378
27306 msgid "guestfs_inspect_get_major_version"
27307 msgstr ""
27308
27309 #. type: verbatim
27310 #: ../src/guestfs-actions.pod:3380
27311 #, no-wrap
27312 msgid ""
27313 " int\n"
27314 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
27315 "                                    const char *root);\n"
27316 "\n"
27317 msgstr ""
27318
27319 #. type: =head2
27320 #: ../src/guestfs-actions.pod:3402
27321 msgid "guestfs_inspect_get_minor_version"
27322 msgstr ""
27323
27324 #. type: verbatim
27325 #: ../src/guestfs-actions.pod:3404
27326 #, no-wrap
27327 msgid ""
27328 " int\n"
27329 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
27330 "                                    const char *root);\n"
27331 "\n"
27332 msgstr ""
27333
27334 #. type: textblock
27335 #: ../src/guestfs-actions.pod:3413
27336 msgid ""
27337 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27338 "C<guestfs_inspect_get_major_version>."
27339 msgstr ""
27340
27341 #. type: =head2
27342 #: ../src/guestfs-actions.pod:3420
27343 msgid "guestfs_inspect_get_mountpoints"
27344 msgstr ""
27345
27346 #. type: verbatim
27347 #: ../src/guestfs-actions.pod:3422
27348 #, no-wrap
27349 msgid ""
27350 " char **\n"
27351 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
27352 "                                  const char *root);\n"
27353 "\n"
27354 msgstr ""
27355
27356 #. type: textblock
27357 #: ../src/guestfs-actions.pod:3443
27358 msgid ""
27359 "For operating systems like Windows which still use drive letters, this call "
27360 "will only return an entry for the first drive \"mounted on\" C</>.  For "
27361 "information about the mapping of drive letters to partitions, see "
27362 "C<guestfs_inspect_get_drive_mappings>."
27363 msgstr ""
27364
27365 #. type: textblock
27366 #: ../src/guestfs-actions.pod:3449
27367 msgid ""
27368 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27369 "C<guestfs_inspect_get_filesystems>."
27370 msgstr ""
27371
27372 #. type: =head2
27373 #: ../src/guestfs-actions.pod:3460
27374 msgid "guestfs_inspect_get_package_format"
27375 msgstr ""
27376
27377 #. type: verbatim
27378 #: ../src/guestfs-actions.pod:3462
27379 #, no-wrap
27380 msgid ""
27381 " char *\n"
27382 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
27383 "                                     const char *root);\n"
27384 "\n"
27385 msgstr ""
27386
27387 #. type: textblock
27388 #: ../src/guestfs-actions.pod:3466
27389 msgid ""
27390 "This function and C<guestfs_inspect_get_package_management> return the "
27391 "package format and package management tool used by the inspected operating "
27392 "system.  For example for Fedora these functions would return C<rpm> (package "
27393 "format) and C<yum> (package management)."
27394 msgstr ""
27395
27396 #. type: textblock
27397 #: ../src/guestfs-actions.pod:3485 ../src/guestfs-actions.pod:3513
27398 msgid "(Added in 1.7.5)"
27399 msgstr ""
27400
27401 #. type: =head2
27402 #: ../src/guestfs-actions.pod:3487
27403 msgid "guestfs_inspect_get_package_management"
27404 msgstr ""
27405
27406 #. type: verbatim
27407 #: ../src/guestfs-actions.pod:3489
27408 #, no-wrap
27409 msgid ""
27410 " char *\n"
27411 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
27412 "                                         const char *root);\n"
27413 "\n"
27414 msgstr ""
27415
27416 #. type: textblock
27417 #: ../src/guestfs-actions.pod:3493
27418 msgid ""
27419 "C<guestfs_inspect_get_package_format> and this function return the package "
27420 "format and package management tool used by the inspected operating system.  "
27421 "For example for Fedora these functions would return C<rpm> (package format) "
27422 "and C<yum> (package management)."
27423 msgstr ""
27424
27425 #. type: =head2
27426 #: ../src/guestfs-actions.pod:3515
27427 msgid "guestfs_inspect_get_product_name"
27428 msgstr ""
27429
27430 #. type: verbatim
27431 #: ../src/guestfs-actions.pod:3517
27432 #, no-wrap
27433 msgid ""
27434 " char *\n"
27435 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
27436 "                                   const char *root);\n"
27437 "\n"
27438 msgstr ""
27439
27440 #. type: =head2
27441 #: ../src/guestfs-actions.pod:3536
27442 msgid "guestfs_inspect_get_product_variant"
27443 msgstr ""
27444
27445 #. type: verbatim
27446 #: ../src/guestfs-actions.pod:3538
27447 #, no-wrap
27448 msgid ""
27449 " char *\n"
27450 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
27451 "                                      const char *root);\n"
27452 "\n"
27453 msgstr ""
27454
27455 #. type: textblock
27456 #: ../src/guestfs-actions.pod:3561
27457 msgid ""
27458 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27459 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
27460 msgstr ""
27461
27462 #. type: textblock
27463 #: ../src/guestfs-actions.pod:3568
27464 msgid "(Added in 1.9.13)"
27465 msgstr ""
27466
27467 #. type: =head2
27468 #: ../src/guestfs-actions.pod:3570
27469 msgid "guestfs_inspect_get_roots"
27470 msgstr ""
27471
27472 #. type: verbatim
27473 #: ../src/guestfs-actions.pod:3572
27474 #, no-wrap
27475 msgid ""
27476 " char **\n"
27477 " guestfs_inspect_get_roots (guestfs_h *g);\n"
27478 "\n"
27479 msgstr ""
27480
27481 #. type: textblock
27482 #: ../src/guestfs-actions.pod:3575
27483 msgid ""
27484 "This function is a convenient way to get the list of root devices, as "
27485 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
27486 "the whole inspection process."
27487 msgstr ""
27488
27489 #. type: textblock
27490 #: ../src/guestfs-actions.pod:3579
27491 msgid ""
27492 "This returns an empty list if either no root devices were found or the "
27493 "caller has not called C<guestfs_inspect_os>."
27494 msgstr ""
27495
27496 #. type: textblock
27497 #: ../src/guestfs-actions.pod:3588
27498 msgid "(Added in 1.7.3)"
27499 msgstr ""
27500
27501 #. type: =head2
27502 #: ../src/guestfs-actions.pod:3590
27503 msgid "guestfs_inspect_get_type"
27504 msgstr ""
27505
27506 #. type: verbatim
27507 #: ../src/guestfs-actions.pod:3592
27508 #, no-wrap
27509 msgid ""
27510 " char *\n"
27511 " guestfs_inspect_get_type (guestfs_h *g,\n"
27512 "                           const char *root);\n"
27513 "\n"
27514 msgstr ""
27515
27516 #. type: =head2
27517 #: ../src/guestfs-actions.pod:3633
27518 msgid "guestfs_inspect_get_windows_current_control_set"
27519 msgstr ""
27520
27521 #. type: verbatim
27522 #: ../src/guestfs-actions.pod:3635
27523 #, no-wrap
27524 msgid ""
27525 " char *\n"
27526 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
27527 "                                                  const char *root);\n"
27528 "\n"
27529 msgstr ""
27530
27531 #. type: =head2
27532 #: ../src/guestfs-actions.pod:3653
27533 msgid "guestfs_inspect_get_windows_systemroot"
27534 msgstr ""
27535
27536 #. type: verbatim
27537 #: ../src/guestfs-actions.pod:3655
27538 #, no-wrap
27539 msgid ""
27540 " char *\n"
27541 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
27542 "                                         const char *root);\n"
27543 "\n"
27544 msgstr ""
27545
27546 #. type: textblock
27547 #: ../src/guestfs-actions.pod:3671
27548 msgid "(Added in 1.5.25)"
27549 msgstr ""
27550
27551 #. type: =head2
27552 #: ../src/guestfs-actions.pod:3673
27553 msgid "guestfs_inspect_is_live"
27554 msgstr ""
27555
27556 #. type: verbatim
27557 #: ../src/guestfs-actions.pod:3675
27558 #, no-wrap
27559 msgid ""
27560 " int\n"
27561 " guestfs_inspect_is_live (guestfs_h *g,\n"
27562 "                          const char *root);\n"
27563 "\n"
27564 msgstr ""
27565
27566 #. type: textblock
27567 #: ../src/guestfs-actions.pod:3679
27568 msgid ""
27569 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
27570 "disk), then this returns true if a live image was detected on the disk."
27571 msgstr ""
27572
27573 #. type: =head2
27574 #: ../src/guestfs-actions.pod:3689
27575 msgid "guestfs_inspect_is_multipart"
27576 msgstr ""
27577
27578 #. type: verbatim
27579 #: ../src/guestfs-actions.pod:3691
27580 #, no-wrap
27581 msgid ""
27582 " int\n"
27583 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
27584 "                               const char *root);\n"
27585 "\n"
27586 msgstr ""
27587
27588 #. type: textblock
27589 #: ../src/guestfs-actions.pod:3695
27590 msgid ""
27591 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
27592 "disk), then this returns true if the disk is part of a set."
27593 msgstr ""
27594
27595 #. type: =head2
27596 #: ../src/guestfs-actions.pod:3705
27597 msgid "guestfs_inspect_is_netinst"
27598 msgstr ""
27599
27600 #. type: verbatim
27601 #: ../src/guestfs-actions.pod:3707
27602 #, no-wrap
27603 msgid ""
27604 " int\n"
27605 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
27606 "                             const char *root);\n"
27607 "\n"
27608 msgstr ""
27609
27610 #. type: textblock
27611 #: ../src/guestfs-actions.pod:3711
27612 msgid ""
27613 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
27614 "disk), then this returns true if the disk is a network installer, ie. not a "
27615 "self-contained install CD but one which is likely to require network access "
27616 "to complete the install."
27617 msgstr ""
27618
27619 #. type: =head2
27620 #: ../src/guestfs-actions.pod:3723
27621 msgid "guestfs_inspect_list_applications"
27622 msgstr ""
27623
27624 #. type: verbatim
27625 #: ../src/guestfs-actions.pod:3725
27626 #, no-wrap
27627 msgid ""
27628 " struct guestfs_application_list *\n"
27629 " guestfs_inspect_list_applications (guestfs_h *g,\n"
27630 "                                    const char *root);\n"
27631 "\n"
27632 msgstr ""
27633
27634 #. type: textblock
27635 #: ../src/guestfs-actions.pod:3731
27636 msgid ""
27637 "I<Note:> This call works differently from other parts of the inspection "
27638 "API.  You have to call C<guestfs_inspect_os>, then "
27639 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
27640 "this.  Listing applications is a significantly more difficult operation "
27641 "which requires access to the full filesystem.  Also note that unlike the "
27642 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
27643 "the libguestfs handle, this call actually reads parts of the mounted "
27644 "filesystems during the call."
27645 msgstr ""
27646
27647 #. type: textblock
27648 #: ../src/guestfs-actions.pod:3821
27649 msgid ""
27650 "This function returns a C<struct guestfs_application_list *>, or NULL if "
27651 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
27652 "after use>."
27653 msgstr ""
27654
27655 #. type: textblock
27656 #: ../src/guestfs-actions.pod:3825
27657 msgid "(Added in 1.7.8)"
27658 msgstr ""
27659
27660 #. type: =head2
27661 #: ../src/guestfs-actions.pod:3827
27662 msgid "guestfs_inspect_os"
27663 msgstr ""
27664
27665 #. type: verbatim
27666 #: ../src/guestfs-actions.pod:3829
27667 #, no-wrap
27668 msgid ""
27669 " char **\n"
27670 " guestfs_inspect_os (guestfs_h *g);\n"
27671 "\n"
27672 msgstr ""
27673
27674 #. type: textblock
27675 #: ../src/guestfs-actions.pod:3845
27676 msgid ""
27677 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
27678 "functions in order to query further information about each operating system, "
27679 "such as the name and version."
27680 msgstr ""
27681
27682 #. type: textblock
27683 #: ../src/guestfs-actions.pod:3850
27684 msgid ""
27685 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
27686 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
27687 "the contents.  This should be called with no disks currently mounted.  The "
27688 "function may also use Augeas, so any existing Augeas handle will be closed."
27689 msgstr ""
27690
27691 #. type: textblock
27692 #: ../src/guestfs-actions.pod:3862 ../src/guestfs-actions.pod:4193 ../src/guestfs-actions.pod:4275
27693 msgid "See also C<guestfs_list_filesystems>."
27694 msgstr ""
27695
27696 #. type: =head2
27697 #: ../src/guestfs-actions.pod:3870
27698 msgid "guestfs_is_blockdev"
27699 msgstr ""
27700
27701 #. type: verbatim
27702 #: ../src/guestfs-actions.pod:3872
27703 #, no-wrap
27704 msgid ""
27705 " int\n"
27706 " guestfs_is_blockdev (guestfs_h *g,\n"
27707 "                      const char *path);\n"
27708 "\n"
27709 msgstr ""
27710
27711 #. type: textblock
27712 #: ../src/guestfs-actions.pod:3879 ../src/guestfs-actions.pod:3908 ../src/guestfs-actions.pod:3938 ../src/guestfs-actions.pod:3953 ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:4025 ../src/guestfs-actions.pod:4040
27713 msgid "See also C<guestfs_stat>."
27714 msgstr ""
27715
27716 #. type: textblock
27717 #: ../src/guestfs-actions.pod:3883 ../src/guestfs-actions.pod:3912 ../src/guestfs-actions.pod:3957 ../src/guestfs-actions.pod:4029 ../src/guestfs-actions.pod:4044
27718 msgid "(Added in 1.5.10)"
27719 msgstr ""
27720
27721 #. type: =head2
27722 #: ../src/guestfs-actions.pod:3885
27723 msgid "guestfs_is_busy"
27724 msgstr ""
27725
27726 #. type: verbatim
27727 #: ../src/guestfs-actions.pod:3887
27728 #, no-wrap
27729 msgid ""
27730 " int\n"
27731 " guestfs_is_busy (guestfs_h *g);\n"
27732 "\n"
27733 msgstr ""
27734
27735 #. type: =head2
27736 #: ../src/guestfs-actions.pod:3899
27737 msgid "guestfs_is_chardev"
27738 msgstr ""
27739
27740 #. type: verbatim
27741 #: ../src/guestfs-actions.pod:3901
27742 #, no-wrap
27743 msgid ""
27744 " int\n"
27745 " guestfs_is_chardev (guestfs_h *g,\n"
27746 "                     const char *path);\n"
27747 "\n"
27748 msgstr ""
27749
27750 #. type: =head2
27751 #: ../src/guestfs-actions.pod:3914
27752 msgid "guestfs_is_config"
27753 msgstr ""
27754
27755 #. type: verbatim
27756 #: ../src/guestfs-actions.pod:3916
27757 #, no-wrap
27758 msgid ""
27759 " int\n"
27760 " guestfs_is_config (guestfs_h *g);\n"
27761 "\n"
27762 msgstr ""
27763
27764 #. type: =head2
27765 #: ../src/guestfs-actions.pod:3928
27766 msgid "guestfs_is_dir"
27767 msgstr ""
27768
27769 #. type: verbatim
27770 #: ../src/guestfs-actions.pod:3930
27771 #, no-wrap
27772 msgid ""
27773 " int\n"
27774 " guestfs_is_dir (guestfs_h *g,\n"
27775 "                 const char *path);\n"
27776 "\n"
27777 msgstr ""
27778
27779 #. type: =head2
27780 #: ../src/guestfs-actions.pod:3944
27781 msgid "guestfs_is_fifo"
27782 msgstr ""
27783
27784 #. type: verbatim
27785 #: ../src/guestfs-actions.pod:3946
27786 #, no-wrap
27787 msgid ""
27788 " int\n"
27789 " guestfs_is_fifo (guestfs_h *g,\n"
27790 "                  const char *path);\n"
27791 "\n"
27792 msgstr ""
27793
27794 #. type: =head2
27795 #: ../src/guestfs-actions.pod:3959
27796 msgid "guestfs_is_file"
27797 msgstr ""
27798
27799 #. type: verbatim
27800 #: ../src/guestfs-actions.pod:3961
27801 #, no-wrap
27802 msgid ""
27803 " int\n"
27804 " guestfs_is_file (guestfs_h *g,\n"
27805 "                  const char *path);\n"
27806 "\n"
27807 msgstr ""
27808
27809 #. type: =head2
27810 #: ../src/guestfs-actions.pod:3975
27811 msgid "guestfs_is_launching"
27812 msgstr ""
27813
27814 #. type: verbatim
27815 #: ../src/guestfs-actions.pod:3977
27816 #, no-wrap
27817 msgid ""
27818 " int\n"
27819 " guestfs_is_launching (guestfs_h *g);\n"
27820 "\n"
27821 msgstr ""
27822
27823 #. type: =head2
27824 #: ../src/guestfs-actions.pod:3989
27825 msgid "guestfs_is_lv"
27826 msgstr ""
27827
27828 #. type: verbatim
27829 #: ../src/guestfs-actions.pod:3991
27830 #, no-wrap
27831 msgid ""
27832 " int\n"
27833 " guestfs_is_lv (guestfs_h *g,\n"
27834 "                const char *device);\n"
27835 "\n"
27836 msgstr ""
27837
27838 #. type: =head2
27839 #: ../src/guestfs-actions.pod:4002
27840 msgid "guestfs_is_ready"
27841 msgstr ""
27842
27843 #. type: verbatim
27844 #: ../src/guestfs-actions.pod:4004
27845 #, no-wrap
27846 msgid ""
27847 " int\n"
27848 " guestfs_is_ready (guestfs_h *g);\n"
27849 "\n"
27850 msgstr ""
27851
27852 #. type: =head2
27853 #: ../src/guestfs-actions.pod:4016
27854 msgid "guestfs_is_socket"
27855 msgstr ""
27856
27857 #. type: verbatim
27858 #: ../src/guestfs-actions.pod:4018
27859 #, no-wrap
27860 msgid ""
27861 " int\n"
27862 " guestfs_is_socket (guestfs_h *g,\n"
27863 "                    const char *path);\n"
27864 "\n"
27865 msgstr ""
27866
27867 #. type: =head2
27868 #: ../src/guestfs-actions.pod:4031
27869 msgid "guestfs_is_symlink"
27870 msgstr ""
27871
27872 #. type: verbatim
27873 #: ../src/guestfs-actions.pod:4033
27874 #, no-wrap
27875 msgid ""
27876 " int\n"
27877 " guestfs_is_symlink (guestfs_h *g,\n"
27878 "                     const char *path);\n"
27879 "\n"
27880 msgstr ""
27881
27882 #. type: =head2
27883 #: ../src/guestfs-actions.pod:4046
27884 msgid "guestfs_is_zero"
27885 msgstr ""
27886
27887 #. type: verbatim
27888 #: ../src/guestfs-actions.pod:4048
27889 #, no-wrap
27890 msgid ""
27891 " int\n"
27892 " guestfs_is_zero (guestfs_h *g,\n"
27893 "                  const char *path);\n"
27894 "\n"
27895 msgstr ""
27896
27897 #. type: textblock
27898 #: ../src/guestfs-actions.pod:4057 ../src/guestfs-actions.pod:4071
27899 msgid "(Added in 1.11.8)"
27900 msgstr ""
27901
27902 #. type: =head2
27903 #: ../src/guestfs-actions.pod:4059
27904 msgid "guestfs_is_zero_device"
27905 msgstr ""
27906
27907 #. type: verbatim
27908 #: ../src/guestfs-actions.pod:4061
27909 #, no-wrap
27910 msgid ""
27911 " int\n"
27912 " guestfs_is_zero_device (guestfs_h *g,\n"
27913 "                         const char *device);\n"
27914 "\n"
27915 msgstr ""
27916
27917 #. type: =head2
27918 #: ../src/guestfs-actions.pod:4073
27919 msgid "guestfs_kill_subprocess"
27920 msgstr ""
27921
27922 #. type: verbatim
27923 #: ../src/guestfs-actions.pod:4075
27924 #, no-wrap
27925 msgid ""
27926 " int\n"
27927 " guestfs_kill_subprocess (guestfs_h *g);\n"
27928 "\n"
27929 msgstr ""
27930
27931 #. type: =head2
27932 #: ../src/guestfs-actions.pod:4084
27933 msgid "guestfs_launch"
27934 msgstr ""
27935
27936 #. type: verbatim
27937 #: ../src/guestfs-actions.pod:4086
27938 #, no-wrap
27939 msgid ""
27940 " int\n"
27941 " guestfs_launch (guestfs_h *g);\n"
27942 "\n"
27943 msgstr ""
27944
27945 #. type: =head2
27946 #: ../src/guestfs-actions.pod:4104
27947 msgid "guestfs_lchown"
27948 msgstr ""
27949
27950 #. type: verbatim
27951 #: ../src/guestfs-actions.pod:4106
27952 #, no-wrap
27953 msgid ""
27954 " int\n"
27955 " guestfs_lchown (guestfs_h *g,\n"
27956 "                 int owner,\n"
27957 "                 int group,\n"
27958 "                 const char *path);\n"
27959 "\n"
27960 msgstr ""
27961
27962 #. type: textblock
27963 #: ../src/guestfs-actions.pod:4112
27964 msgid ""
27965 "Change the file owner to C<owner> and group to C<group>.  This is like "
27966 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
27967 "changed, not the target."
27968 msgstr ""
27969
27970 #. type: =head2
27971 #: ../src/guestfs-actions.pod:4124
27972 msgid "guestfs_lgetxattr"
27973 msgstr ""
27974
27975 #. type: verbatim
27976 #: ../src/guestfs-actions.pod:4126
27977 #, no-wrap
27978 msgid ""
27979 " char *\n"
27980 " guestfs_lgetxattr (guestfs_h *g,\n"
27981 "                    const char *path,\n"
27982 "                    const char *name,\n"
27983 "                    size_t *size_r);\n"
27984 "\n"
27985 msgstr ""
27986
27987 #. type: textblock
27988 #: ../src/guestfs-actions.pod:4146
27989 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
27990 msgstr ""
27991
27992 #. type: =head2
27993 #: ../src/guestfs-actions.pod:4154
27994 msgid "guestfs_lgetxattrs"
27995 msgstr ""
27996
27997 #. type: verbatim
27998 #: ../src/guestfs-actions.pod:4156
27999 #, no-wrap
28000 msgid ""
28001 " struct guestfs_xattr_list *\n"
28002 " guestfs_lgetxattrs (guestfs_h *g,\n"
28003 "                     const char *path);\n"
28004 "\n"
28005 msgstr ""
28006
28007 #. type: textblock
28008 #: ../src/guestfs-actions.pod:4160
28009 msgid ""
28010 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
28011 "then it returns the extended attributes of the link itself."
28012 msgstr ""
28013
28014 #. type: =head2
28015 #: ../src/guestfs-actions.pod:4170
28016 msgid "guestfs_list_9p"
28017 msgstr ""
28018
28019 #. type: verbatim
28020 #: ../src/guestfs-actions.pod:4172
28021 #, no-wrap
28022 msgid ""
28023 " char **\n"
28024 " guestfs_list_9p (guestfs_h *g);\n"
28025 "\n"
28026 msgstr ""
28027
28028 #. type: =head2
28029 #: ../src/guestfs-actions.pod:4184
28030 msgid "guestfs_list_devices"
28031 msgstr ""
28032
28033 #. type: verbatim
28034 #: ../src/guestfs-actions.pod:4186
28035 #, no-wrap
28036 msgid ""
28037 " char **\n"
28038 " guestfs_list_devices (guestfs_h *g);\n"
28039 "\n"
28040 msgstr ""
28041
28042 #. type: =head2
28043 #: ../src/guestfs-actions.pod:4201
28044 msgid "guestfs_list_dm_devices"
28045 msgstr ""
28046
28047 #. type: verbatim
28048 #: ../src/guestfs-actions.pod:4203
28049 #, no-wrap
28050 msgid ""
28051 " char **\n"
28052 " guestfs_list_dm_devices (guestfs_h *g);\n"
28053 "\n"
28054 msgstr ""
28055
28056 #. type: textblock
28057 #: ../src/guestfs-actions.pod:4208
28058 msgid ""
28059 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
28060 "previous call to C<guestfs_luks_open>."
28061 msgstr ""
28062
28063 #. type: textblock
28064 #: ../src/guestfs-actions.pod:4211
28065 msgid ""
28066 "Device mapper devices which correspond to logical volumes are I<not> "
28067 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
28068 "volumes."
28069 msgstr ""
28070
28071 #. type: textblock
28072 #: ../src/guestfs-actions.pod:4219 ../src/guestfs-actions.pod:5665
28073 msgid "(Added in 1.11.15)"
28074 msgstr ""
28075
28076 #. type: =head2
28077 #: ../src/guestfs-actions.pod:4221
28078 msgid "guestfs_list_filesystems"
28079 msgstr ""
28080
28081 #. type: verbatim
28082 #: ../src/guestfs-actions.pod:4223
28083 #, no-wrap
28084 msgid ""
28085 " char **\n"
28086 " guestfs_list_filesystems (guestfs_h *g);\n"
28087 "\n"
28088 msgstr ""
28089
28090 #. type: textblock
28091 #: ../src/guestfs-actions.pod:4243
28092 msgid ""
28093 "This command runs other libguestfs commands, which might include "
28094 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
28095 "soon after launch and only when nothing is mounted."
28096 msgstr ""
28097
28098 #. type: textblock
28099 #: ../src/guestfs-actions.pod:4247
28100 msgid ""
28101 "Not all of the filesystems returned will be mountable.  In particular, swap "
28102 "partitions are returned in the list.  Also this command does not check that "
28103 "each filesystem found is valid and mountable, and some filesystems might be "
28104 "mountable but require special options.  Filesystems may not all belong to a "
28105 "single logical operating system (use C<guestfs_inspect_os> to look for "
28106 "OSes)."
28107 msgstr ""
28108
28109 #. type: textblock
28110 #: ../src/guestfs-actions.pod:4261 ../src/guestfs-actions.pod:6028
28111 msgid "(Added in 1.5.15)"
28112 msgstr ""
28113
28114 #. type: =head2
28115 #: ../src/guestfs-actions.pod:4263
28116 msgid "guestfs_list_partitions"
28117 msgstr ""
28118
28119 #. type: verbatim
28120 #: ../src/guestfs-actions.pod:4265
28121 #, no-wrap
28122 msgid ""
28123 " char **\n"
28124 " guestfs_list_partitions (guestfs_h *g);\n"
28125 "\n"
28126 msgstr ""
28127
28128 #. type: textblock
28129 #: ../src/guestfs-actions.pod:4272
28130 msgid ""
28131 "This does not return logical volumes.  For that you will need to call "
28132 "C<guestfs_lvs>."
28133 msgstr ""
28134
28135 #. type: =head2
28136 #: ../src/guestfs-actions.pod:4283
28137 msgid "guestfs_ll"
28138 msgstr ""
28139
28140 #. type: verbatim
28141 #: ../src/guestfs-actions.pod:4285
28142 #, no-wrap
28143 msgid ""
28144 " char *\n"
28145 " guestfs_ll (guestfs_h *g,\n"
28146 "             const char *directory);\n"
28147 "\n"
28148 msgstr ""
28149
28150 #. type: =head2
28151 #: ../src/guestfs-actions.pod:4300
28152 msgid "guestfs_ln"
28153 msgstr ""
28154
28155 #. type: verbatim
28156 #: ../src/guestfs-actions.pod:4302
28157 #, no-wrap
28158 msgid ""
28159 " int\n"
28160 " guestfs_ln (guestfs_h *g,\n"
28161 "             const char *target,\n"
28162 "             const char *linkname);\n"
28163 "\n"
28164 msgstr ""
28165
28166 #. type: =head2
28167 #: ../src/guestfs-actions.pod:4313
28168 msgid "guestfs_ln_f"
28169 msgstr ""
28170
28171 #. type: verbatim
28172 #: ../src/guestfs-actions.pod:4315
28173 #, no-wrap
28174 msgid ""
28175 " int\n"
28176 " guestfs_ln_f (guestfs_h *g,\n"
28177 "               const char *target,\n"
28178 "               const char *linkname);\n"
28179 "\n"
28180 msgstr ""
28181
28182 #. type: =head2
28183 #: ../src/guestfs-actions.pod:4327
28184 msgid "guestfs_ln_s"
28185 msgstr ""
28186
28187 #. type: verbatim
28188 #: ../src/guestfs-actions.pod:4329
28189 #, no-wrap
28190 msgid ""
28191 " int\n"
28192 " guestfs_ln_s (guestfs_h *g,\n"
28193 "               const char *target,\n"
28194 "               const char *linkname);\n"
28195 "\n"
28196 msgstr ""
28197
28198 #. type: =head2
28199 #: ../src/guestfs-actions.pod:4340
28200 msgid "guestfs_ln_sf"
28201 msgstr ""
28202
28203 #. type: verbatim
28204 #: ../src/guestfs-actions.pod:4342
28205 #, no-wrap
28206 msgid ""
28207 " int\n"
28208 " guestfs_ln_sf (guestfs_h *g,\n"
28209 "                const char *target,\n"
28210 "                const char *linkname);\n"
28211 "\n"
28212 msgstr ""
28213
28214 #. type: =head2
28215 #: ../src/guestfs-actions.pod:4354
28216 msgid "guestfs_lremovexattr"
28217 msgstr ""
28218
28219 #. type: verbatim
28220 #: ../src/guestfs-actions.pod:4356
28221 #, no-wrap
28222 msgid ""
28223 " int\n"
28224 " guestfs_lremovexattr (guestfs_h *g,\n"
28225 "                       const char *xattr,\n"
28226 "                       const char *path);\n"
28227 "\n"
28228 msgstr ""
28229
28230 #. type: textblock
28231 #: ../src/guestfs-actions.pod:4361
28232 msgid ""
28233 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
28234 "link, then it removes an extended attribute of the link itself."
28235 msgstr ""
28236
28237 #. type: =head2
28238 #: ../src/guestfs-actions.pod:4369
28239 msgid "guestfs_ls"
28240 msgstr ""
28241
28242 #. type: verbatim
28243 #: ../src/guestfs-actions.pod:4371
28244 #, no-wrap
28245 msgid ""
28246 " char **\n"
28247 " guestfs_ls (guestfs_h *g,\n"
28248 "             const char *directory);\n"
28249 "\n"
28250 msgstr ""
28251
28252 #. type: textblock
28253 #: ../src/guestfs-actions.pod:4379
28254 msgid ""
28255 "This command is mostly useful for interactive sessions.  Programs should "
28256 "probably use C<guestfs_readdir> instead."
28257 msgstr ""
28258
28259 #. type: =head2
28260 #: ../src/guestfs-actions.pod:4388
28261 msgid "guestfs_lsetxattr"
28262 msgstr ""
28263
28264 #. type: verbatim
28265 #: ../src/guestfs-actions.pod:4390
28266 #, no-wrap
28267 msgid ""
28268 " int\n"
28269 " guestfs_lsetxattr (guestfs_h *g,\n"
28270 "                    const char *xattr,\n"
28271 "                    const char *val,\n"
28272 "                    int vallen,\n"
28273 "                    const char *path);\n"
28274 "\n"
28275 msgstr ""
28276
28277 #. type: textblock
28278 #: ../src/guestfs-actions.pod:4397
28279 msgid ""
28280 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
28281 "then it sets an extended attribute of the link itself."
28282 msgstr ""
28283
28284 #. type: =head2
28285 #: ../src/guestfs-actions.pod:4405
28286 msgid "guestfs_lstat"
28287 msgstr ""
28288
28289 #. type: verbatim
28290 #: ../src/guestfs-actions.pod:4407
28291 #, no-wrap
28292 msgid ""
28293 " struct guestfs_stat *\n"
28294 " guestfs_lstat (guestfs_h *g,\n"
28295 "                const char *path);\n"
28296 "\n"
28297 msgstr ""
28298
28299 #. type: textblock
28300 #: ../src/guestfs-actions.pod:4413
28301 msgid ""
28302 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
28303 "link, then the link is stat-ed, not the file it refers to."
28304 msgstr ""
28305
28306 #. type: textblock
28307 #: ../src/guestfs-actions.pod:4419 ../src/guestfs-actions.pod:7218
28308 msgid ""
28309 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
28310 "error.  I<The caller must call C<guestfs_free_stat> after use>."
28311 msgstr ""
28312
28313 #. type: textblock
28314 #: ../src/guestfs-actions.pod:4423 ../src/guestfs-actions.pod:7222 ../src/guestfs-actions.pod:7240 ../src/guestfs-actions.pod:7621
28315 msgid "(Added in 0.9.2)"
28316 msgstr ""
28317
28318 #. type: =head2
28319 #: ../src/guestfs-actions.pod:4425
28320 msgid "guestfs_lstatlist"
28321 msgstr ""
28322
28323 #. type: verbatim
28324 #: ../src/guestfs-actions.pod:4427
28325 #, no-wrap
28326 msgid ""
28327 " struct guestfs_stat_list *\n"
28328 " guestfs_lstatlist (guestfs_h *g,\n"
28329 "                    const char *path,\n"
28330 "                    char *const *names);\n"
28331 "\n"
28332 msgstr ""
28333
28334 #. type: textblock
28335 #: ../src/guestfs-actions.pod:4432
28336 msgid ""
28337 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
28338 "files, where all files are in the directory C<path>.  C<names> is the list "
28339 "of files from this directory."
28340 msgstr ""
28341
28342 #. type: textblock
28343 #: ../src/guestfs-actions.pod:4441
28344 msgid ""
28345 "This call is intended for programs that want to efficiently list a directory "
28346 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
28347 "for a similarly efficient call for getting extended attributes.  Very long "
28348 "directory listings might cause the protocol message size to be exceeded, "
28349 "causing this call to fail.  The caller must split up such requests into "
28350 "smaller groups of names."
28351 msgstr ""
28352
28353 #. type: textblock
28354 #: ../src/guestfs-actions.pod:4449
28355 msgid ""
28356 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
28357 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
28358 msgstr ""
28359
28360 #. type: =head2
28361 #: ../src/guestfs-actions.pod:4455
28362 msgid "guestfs_luks_add_key"
28363 msgstr ""
28364
28365 #. type: verbatim
28366 #: ../src/guestfs-actions.pod:4457
28367 #, no-wrap
28368 msgid ""
28369 " int\n"
28370 " guestfs_luks_add_key (guestfs_h *g,\n"
28371 "                       const char *device,\n"
28372 "                       const char *key,\n"
28373 "                       const char *newkey,\n"
28374 "                       int keyslot);\n"
28375 "\n"
28376 msgstr ""
28377
28378 #. type: textblock
28379 #: ../src/guestfs-actions.pod:4469
28380 msgid ""
28381 "Note that if C<keyslot> already contains a key, then this command will "
28382 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
28383 msgstr ""
28384
28385 #. type: textblock
28386 #: ../src/guestfs-actions.pod:4475 ../src/guestfs-actions.pod:4515 ../src/guestfs-actions.pod:4538 ../src/guestfs-actions.pod:4558 ../src/guestfs-actions.pod:4593 ../src/guestfs-actions.pod:4612
28387 msgid ""
28388 "This function takes a key or passphrase parameter which could contain "
28389 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
28390 "information."
28391 msgstr ""
28392
28393 #. type: textblock
28394 #: ../src/guestfs-actions.pod:4479 ../src/guestfs-actions.pod:4519 ../src/guestfs-actions.pod:4542 ../src/guestfs-actions.pod:4562
28395 msgid "(Added in 1.5.2)"
28396 msgstr ""
28397
28398 #. type: =head2
28399 #: ../src/guestfs-actions.pod:4481
28400 msgid "guestfs_luks_close"
28401 msgstr ""
28402
28403 #. type: verbatim
28404 #: ../src/guestfs-actions.pod:4483
28405 #, no-wrap
28406 msgid ""
28407 " int\n"
28408 " guestfs_luks_close (guestfs_h *g,\n"
28409 "                     const char *device);\n"
28410 "\n"
28411 msgstr ""
28412
28413 #. type: textblock
28414 #: ../src/guestfs-actions.pod:4487
28415 msgid ""
28416 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
28417 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
28418 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
28419 "underlying block device."
28420 msgstr ""
28421
28422 #. type: textblock
28423 #: ../src/guestfs-actions.pod:4495 ../src/guestfs-actions.pod:4597 ../src/guestfs-actions.pod:4616 ../src/guestfs-actions.pod:4666 ../src/guestfs-actions.pod:4714
28424 msgid "(Added in 1.5.1)"
28425 msgstr ""
28426
28427 #. type: =head2
28428 #: ../src/guestfs-actions.pod:4497
28429 msgid "guestfs_luks_format"
28430 msgstr ""
28431
28432 #. type: verbatim
28433 #: ../src/guestfs-actions.pod:4499
28434 #, no-wrap
28435 msgid ""
28436 " int\n"
28437 " guestfs_luks_format (guestfs_h *g,\n"
28438 "                      const char *device,\n"
28439 "                      const char *key,\n"
28440 "                      int keyslot);\n"
28441 "\n"
28442 msgstr ""
28443
28444 #. type: =head2
28445 #: ../src/guestfs-actions.pod:4521
28446 msgid "guestfs_luks_format_cipher"
28447 msgstr ""
28448
28449 #. type: verbatim
28450 #: ../src/guestfs-actions.pod:4523
28451 #, no-wrap
28452 msgid ""
28453 " int\n"
28454 " guestfs_luks_format_cipher (guestfs_h *g,\n"
28455 "                             const char *device,\n"
28456 "                             const char *key,\n"
28457 "                             int keyslot,\n"
28458 "                             const char *cipher);\n"
28459 "\n"
28460 msgstr ""
28461
28462 #. type: textblock
28463 #: ../src/guestfs-actions.pod:4530
28464 msgid ""
28465 "This command is the same as C<guestfs_luks_format> but it also allows you to "
28466 "set the C<cipher> used."
28467 msgstr ""
28468
28469 #. type: =head2
28470 #: ../src/guestfs-actions.pod:4544
28471 msgid "guestfs_luks_kill_slot"
28472 msgstr ""
28473
28474 #. type: verbatim
28475 #: ../src/guestfs-actions.pod:4546
28476 #, no-wrap
28477 msgid ""
28478 " int\n"
28479 " guestfs_luks_kill_slot (guestfs_h *g,\n"
28480 "                         const char *device,\n"
28481 "                         const char *key,\n"
28482 "                         int keyslot);\n"
28483 "\n"
28484 msgstr ""
28485
28486 #. type: =head2
28487 #: ../src/guestfs-actions.pod:4564
28488 msgid "guestfs_luks_open"
28489 msgstr ""
28490
28491 #. type: verbatim
28492 #: ../src/guestfs-actions.pod:4566
28493 #, no-wrap
28494 msgid ""
28495 " int\n"
28496 " guestfs_luks_open (guestfs_h *g,\n"
28497 "                    const char *device,\n"
28498 "                    const char *key,\n"
28499 "                    const char *mapname);\n"
28500 "\n"
28501 msgstr ""
28502
28503 #. type: textblock
28504 #: ../src/guestfs-actions.pod:4584
28505 msgid ""
28506 "If this block device contains LVM volume groups, then calling "
28507 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
28508 "visible."
28509 msgstr ""
28510
28511 #. type: textblock
28512 #: ../src/guestfs-actions.pod:4588
28513 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
28514 msgstr ""
28515
28516 #. type: =head2
28517 #: ../src/guestfs-actions.pod:4599
28518 msgid "guestfs_luks_open_ro"
28519 msgstr ""
28520
28521 #. type: verbatim
28522 #: ../src/guestfs-actions.pod:4601
28523 #, no-wrap
28524 msgid ""
28525 " int\n"
28526 " guestfs_luks_open_ro (guestfs_h *g,\n"
28527 "                       const char *device,\n"
28528 "                       const char *key,\n"
28529 "                       const char *mapname);\n"
28530 "\n"
28531 msgstr ""
28532
28533 #. type: textblock
28534 #: ../src/guestfs-actions.pod:4607
28535 msgid ""
28536 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
28537 "created."
28538 msgstr ""
28539
28540 #. type: =head2
28541 #: ../src/guestfs-actions.pod:4618
28542 msgid "guestfs_lvcreate"
28543 msgstr ""
28544
28545 #. type: verbatim
28546 #: ../src/guestfs-actions.pod:4620
28547 #, no-wrap
28548 msgid ""
28549 " int\n"
28550 " guestfs_lvcreate (guestfs_h *g,\n"
28551 "                   const char *logvol,\n"
28552 "                   const char *volgroup,\n"
28553 "                   int mbytes);\n"
28554 "\n"
28555 msgstr ""
28556
28557 #. type: =head2
28558 #: ../src/guestfs-actions.pod:4633
28559 msgid "guestfs_lvm_canonical_lv_name"
28560 msgstr ""
28561
28562 #. type: verbatim
28563 #: ../src/guestfs-actions.pod:4635
28564 #, no-wrap
28565 msgid ""
28566 " char *\n"
28567 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
28568 "                                const char *lvname);\n"
28569 "\n"
28570 msgstr ""
28571
28572 #. type: textblock
28573 #: ../src/guestfs-actions.pod:4646
28574 msgid "See also C<guestfs_is_lv>."
28575 msgstr ""
28576
28577 #. type: textblock
28578 #: ../src/guestfs-actions.pod:4651
28579 msgid "(Added in 1.5.24)"
28580 msgstr ""
28581
28582 #. type: =head2
28583 #: ../src/guestfs-actions.pod:4653
28584 msgid "guestfs_lvm_clear_filter"
28585 msgstr ""
28586
28587 #. type: verbatim
28588 #: ../src/guestfs-actions.pod:4655
28589 #, no-wrap
28590 msgid ""
28591 " int\n"
28592 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
28593 "\n"
28594 msgstr ""
28595
28596 #. type: textblock
28597 #: ../src/guestfs-actions.pod:4658
28598 msgid ""
28599 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
28600 "see every block device."
28601 msgstr ""
28602
28603 #. type: =head2
28604 #: ../src/guestfs-actions.pod:4668
28605 msgid "guestfs_lvm_remove_all"
28606 msgstr ""
28607
28608 #. type: verbatim
28609 #: ../src/guestfs-actions.pod:4670
28610 #, no-wrap
28611 msgid ""
28612 " int\n"
28613 " guestfs_lvm_remove_all (guestfs_h *g);\n"
28614 "\n"
28615 msgstr ""
28616
28617 #. type: =head2
28618 #: ../src/guestfs-actions.pod:4683
28619 msgid "guestfs_lvm_set_filter"
28620 msgstr ""
28621
28622 #. type: verbatim
28623 #: ../src/guestfs-actions.pod:4685
28624 #, no-wrap
28625 msgid ""
28626 " int\n"
28627 " guestfs_lvm_set_filter (guestfs_h *g,\n"
28628 "                         char *const *devices);\n"
28629 "\n"
28630 msgstr ""
28631
28632 #. type: =head2
28633 #: ../src/guestfs-actions.pod:4716
28634 msgid "guestfs_lvremove"
28635 msgstr ""
28636
28637 #. type: verbatim
28638 #: ../src/guestfs-actions.pod:4718
28639 #, no-wrap
28640 msgid ""
28641 " int\n"
28642 " guestfs_lvremove (guestfs_h *g,\n"
28643 "                   const char *device);\n"
28644 "\n"
28645 msgstr ""
28646
28647 #. type: textblock
28648 #: ../src/guestfs-actions.pod:4730 ../src/guestfs-actions.pod:6141 ../src/guestfs-actions.pod:7991
28649 msgid "(Added in 1.0.13)"
28650 msgstr ""
28651
28652 #. type: =head2
28653 #: ../src/guestfs-actions.pod:4732
28654 msgid "guestfs_lvrename"
28655 msgstr ""
28656
28657 #. type: verbatim
28658 #: ../src/guestfs-actions.pod:4734
28659 #, no-wrap
28660 msgid ""
28661 " int\n"
28662 " guestfs_lvrename (guestfs_h *g,\n"
28663 "                   const char *logvol,\n"
28664 "                   const char *newlogvol);\n"
28665 "\n"
28666 msgstr ""
28667
28668 #. type: textblock
28669 #: ../src/guestfs-actions.pod:4743 ../src/guestfs-actions.pod:8004
28670 msgid "(Added in 1.0.83)"
28671 msgstr ""
28672
28673 #. type: =head2
28674 #: ../src/guestfs-actions.pod:4745
28675 msgid "guestfs_lvresize"
28676 msgstr ""
28677
28678 #. type: verbatim
28679 #: ../src/guestfs-actions.pod:4747
28680 #, no-wrap
28681 msgid ""
28682 " int\n"
28683 " guestfs_lvresize (guestfs_h *g,\n"
28684 "                   const char *device,\n"
28685 "                   int mbytes);\n"
28686 "\n"
28687 msgstr ""
28688
28689 #. type: =head2
28690 #: ../src/guestfs-actions.pod:4760
28691 msgid "guestfs_lvresize_free"
28692 msgstr ""
28693
28694 #. type: verbatim
28695 #: ../src/guestfs-actions.pod:4762
28696 #, no-wrap
28697 msgid ""
28698 " int\n"
28699 " guestfs_lvresize_free (guestfs_h *g,\n"
28700 "                        const char *lv,\n"
28701 "                        int percent);\n"
28702 "\n"
28703 msgstr ""
28704
28705 #. type: textblock
28706 #: ../src/guestfs-actions.pod:4775
28707 msgid "(Added in 1.3.3)"
28708 msgstr ""
28709
28710 #. type: =head2
28711 #: ../src/guestfs-actions.pod:4777
28712 msgid "guestfs_lvs"
28713 msgstr ""
28714
28715 #. type: verbatim
28716 #: ../src/guestfs-actions.pod:4779
28717 #, no-wrap
28718 msgid ""
28719 " char **\n"
28720 " guestfs_lvs (guestfs_h *g);\n"
28721 "\n"
28722 msgstr ""
28723
28724 #. type: textblock
28725 #: ../src/guestfs-actions.pod:4788
28726 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
28727 msgstr ""
28728
28729 #. type: =head2
28730 #: ../src/guestfs-actions.pod:4796
28731 msgid "guestfs_lvs_full"
28732 msgstr ""
28733
28734 #. type: verbatim
28735 #: ../src/guestfs-actions.pod:4798
28736 #, no-wrap
28737 msgid ""
28738 " struct guestfs_lvm_lv_list *\n"
28739 " guestfs_lvs_full (guestfs_h *g);\n"
28740 "\n"
28741 msgstr ""
28742
28743 #. type: textblock
28744 #: ../src/guestfs-actions.pod:4804
28745 msgid ""
28746 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
28747 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
28748 "use>."
28749 msgstr ""
28750
28751 #. type: =head2
28752 #: ../src/guestfs-actions.pod:4810
28753 msgid "guestfs_lvuuid"
28754 msgstr ""
28755
28756 #. type: verbatim
28757 #: ../src/guestfs-actions.pod:4812
28758 #, no-wrap
28759 msgid ""
28760 " char *\n"
28761 " guestfs_lvuuid (guestfs_h *g,\n"
28762 "                 const char *device);\n"
28763 "\n"
28764 msgstr ""
28765
28766 #. type: =head2
28767 #: ../src/guestfs-actions.pod:4823
28768 msgid "guestfs_lxattrlist"
28769 msgstr ""
28770
28771 #. type: verbatim
28772 #: ../src/guestfs-actions.pod:4825
28773 #, no-wrap
28774 msgid ""
28775 " struct guestfs_xattr_list *\n"
28776 " guestfs_lxattrlist (guestfs_h *g,\n"
28777 "                     const char *path,\n"
28778 "                     char *const *names);\n"
28779 "\n"
28780 msgstr ""
28781
28782 #. type: textblock
28783 #: ../src/guestfs-actions.pod:4844
28784 msgid ""
28785 "This call is intended for programs that want to efficiently list a directory "
28786 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
28787 "a similarly efficient call for getting standard stats.  Very long directory "
28788 "listings might cause the protocol message size to be exceeded, causing this "
28789 "call to fail.  The caller must split up such requests into smaller groups of "
28790 "names."
28791 msgstr ""
28792
28793 #. type: =head2
28794 #: ../src/guestfs-actions.pod:4858
28795 msgid "guestfs_mkdir"
28796 msgstr ""
28797
28798 #. type: verbatim
28799 #: ../src/guestfs-actions.pod:4860
28800 #, no-wrap
28801 msgid ""
28802 " int\n"
28803 " guestfs_mkdir (guestfs_h *g,\n"
28804 "                const char *path);\n"
28805 "\n"
28806 msgstr ""
28807
28808 #. type: =head2
28809 #: ../src/guestfs-actions.pod:4870
28810 msgid "guestfs_mkdir_mode"
28811 msgstr ""
28812
28813 #. type: verbatim
28814 #: ../src/guestfs-actions.pod:4872
28815 #, no-wrap
28816 msgid ""
28817 " int\n"
28818 " guestfs_mkdir_mode (guestfs_h *g,\n"
28819 "                     const char *path,\n"
28820 "                     int mode);\n"
28821 "\n"
28822 msgstr ""
28823
28824 #. type: textblock
28825 #: ../src/guestfs-actions.pod:4884
28826 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
28827 msgstr ""
28828
28829 #. type: =head2
28830 #: ../src/guestfs-actions.pod:4890
28831 msgid "guestfs_mkdir_p"
28832 msgstr ""
28833
28834 #. type: verbatim
28835 #: ../src/guestfs-actions.pod:4892
28836 #, no-wrap
28837 msgid ""
28838 " int\n"
28839 " guestfs_mkdir_p (guestfs_h *g,\n"
28840 "                  const char *path);\n"
28841 "\n"
28842 msgstr ""
28843
28844 #. type: =head2
28845 #: ../src/guestfs-actions.pod:4903
28846 msgid "guestfs_mkdtemp"
28847 msgstr ""
28848
28849 #. type: verbatim
28850 #: ../src/guestfs-actions.pod:4905
28851 #, no-wrap
28852 msgid ""
28853 " char *\n"
28854 " guestfs_mkdtemp (guestfs_h *g,\n"
28855 "                  const char *template);\n"
28856 "\n"
28857 msgstr ""
28858
28859 #. type: =head2
28860 #: ../src/guestfs-actions.pod:4933
28861 msgid "guestfs_mke2fs_J"
28862 msgstr ""
28863
28864 #. type: verbatim
28865 #: ../src/guestfs-actions.pod:4935
28866 #, no-wrap
28867 msgid ""
28868 " int\n"
28869 " guestfs_mke2fs_J (guestfs_h *g,\n"
28870 "                   const char *fstype,\n"
28871 "                   int blocksize,\n"
28872 "                   const char *device,\n"
28873 "                   const char *journal);\n"
28874 "\n"
28875 msgstr ""
28876
28877 #. type: textblock
28878 #: ../src/guestfs-actions.pod:4948
28879 msgid "See also C<guestfs_mke2journal>."
28880 msgstr ""
28881
28882 #. type: textblock
28883 #: ../src/guestfs-actions.pod:4952 ../src/guestfs-actions.pod:4970 ../src/guestfs-actions.pod:4988 ../src/guestfs-actions.pod:5004 ../src/guestfs-actions.pod:5018 ../src/guestfs-actions.pod:5032 ../src/guestfs-actions.pod:5091 ../src/guestfs-actions.pod:5368
28884 msgid "(Added in 1.0.68)"
28885 msgstr ""
28886
28887 #. type: =head2
28888 #: ../src/guestfs-actions.pod:4954
28889 msgid "guestfs_mke2fs_JL"
28890 msgstr ""
28891
28892 #. type: verbatim
28893 #: ../src/guestfs-actions.pod:4956
28894 #, no-wrap
28895 msgid ""
28896 " int\n"
28897 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28898 "                    const char *fstype,\n"
28899 "                    int blocksize,\n"
28900 "                    const char *device,\n"
28901 "                    const char *label);\n"
28902 "\n"
28903 msgstr ""
28904
28905 #. type: textblock
28906 #: ../src/guestfs-actions.pod:4966
28907 msgid "See also C<guestfs_mke2journal_L>."
28908 msgstr ""
28909
28910 #. type: =head2
28911 #: ../src/guestfs-actions.pod:4972
28912 msgid "guestfs_mke2fs_JU"
28913 msgstr ""
28914
28915 #. type: verbatim
28916 #: ../src/guestfs-actions.pod:4974
28917 #, no-wrap
28918 msgid ""
28919 " int\n"
28920 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28921 "                    const char *fstype,\n"
28922 "                    int blocksize,\n"
28923 "                    const char *device,\n"
28924 "                    const char *uuid);\n"
28925 "\n"
28926 msgstr ""
28927
28928 #. type: textblock
28929 #: ../src/guestfs-actions.pod:4984
28930 msgid "See also C<guestfs_mke2journal_U>."
28931 msgstr ""
28932
28933 #. type: =head2
28934 #: ../src/guestfs-actions.pod:4990
28935 msgid "guestfs_mke2journal"
28936 msgstr ""
28937
28938 #. type: verbatim
28939 #: ../src/guestfs-actions.pod:4992
28940 #, no-wrap
28941 msgid ""
28942 " int\n"
28943 " guestfs_mke2journal (guestfs_h *g,\n"
28944 "                      int blocksize,\n"
28945 "                      const char *device);\n"
28946 "\n"
28947 msgstr ""
28948
28949 #. type: =head2
28950 #: ../src/guestfs-actions.pod:5006
28951 msgid "guestfs_mke2journal_L"
28952 msgstr ""
28953
28954 #. type: verbatim
28955 #: ../src/guestfs-actions.pod:5008
28956 #, no-wrap
28957 msgid ""
28958 " int\n"
28959 " guestfs_mke2journal_L (guestfs_h *g,\n"
28960 "                        int blocksize,\n"
28961 "                        const char *label,\n"
28962 "                        const char *device);\n"
28963 "\n"
28964 msgstr ""
28965
28966 #. type: =head2
28967 #: ../src/guestfs-actions.pod:5020
28968 msgid "guestfs_mke2journal_U"
28969 msgstr ""
28970
28971 #. type: verbatim
28972 #: ../src/guestfs-actions.pod:5022
28973 #, no-wrap
28974 msgid ""
28975 " int\n"
28976 " guestfs_mke2journal_U (guestfs_h *g,\n"
28977 "                        int blocksize,\n"
28978 "                        const char *uuid,\n"
28979 "                        const char *device);\n"
28980 "\n"
28981 msgstr ""
28982
28983 #. type: =head2
28984 #: ../src/guestfs-actions.pod:5034
28985 msgid "guestfs_mkfifo"
28986 msgstr ""
28987
28988 #. type: verbatim
28989 #: ../src/guestfs-actions.pod:5036
28990 #, no-wrap
28991 msgid ""
28992 " int\n"
28993 " guestfs_mkfifo (guestfs_h *g,\n"
28994 "                 int mode,\n"
28995 "                 const char *path);\n"
28996 "\n"
28997 msgstr ""
28998
28999 #. type: textblock
29000 #: ../src/guestfs-actions.pod:5041
29001 msgid ""
29002 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
29003 "is just a convenient wrapper around C<guestfs_mknod>."
29004 msgstr ""
29005
29006 #. type: =head2
29007 #: ../src/guestfs-actions.pod:5051
29008 msgid "guestfs_mkfs"
29009 msgstr ""
29010
29011 #. type: verbatim
29012 #: ../src/guestfs-actions.pod:5053
29013 #, no-wrap
29014 msgid ""
29015 " int\n"
29016 " guestfs_mkfs (guestfs_h *g,\n"
29017 "               const char *fstype,\n"
29018 "               const char *device);\n"
29019 "\n"
29020 msgstr ""
29021
29022 #. type: =head2
29023 #: ../src/guestfs-actions.pod:5066
29024 msgid "guestfs_mkfs_b"
29025 msgstr ""
29026
29027 #. type: verbatim
29028 #: ../src/guestfs-actions.pod:5068
29029 #, no-wrap
29030 msgid ""
29031 " int\n"
29032 " guestfs_mkfs_b (guestfs_h *g,\n"
29033 "                 const char *fstype,\n"
29034 "                 int blocksize,\n"
29035 "                 const char *device);\n"
29036 "\n"
29037 msgstr ""
29038
29039 #. type: textblock
29040 #: ../src/guestfs-actions.pod:5074
29041 msgid ""
29042 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
29043 "call instead."
29044 msgstr ""
29045
29046 #. type: textblock
29047 #: ../src/guestfs-actions.pod:5081
29048 msgid ""
29049 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
29050 "block size of the resulting filesystem.  Supported block sizes depend on the "
29051 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
29052 msgstr ""
29053
29054 #. type: =head2
29055 #: ../src/guestfs-actions.pod:5093
29056 msgid "guestfs_mkfs_opts"
29057 msgstr ""
29058
29059 #. type: verbatim
29060 #: ../src/guestfs-actions.pod:5095
29061 #, no-wrap
29062 msgid ""
29063 " int\n"
29064 " guestfs_mkfs_opts (guestfs_h *g,\n"
29065 "                    const char *fstype,\n"
29066 "                    const char *device,\n"
29067 "                    ...);\n"
29068 "\n"
29069 msgstr ""
29070
29071 #. type: verbatim
29072 #: ../src/guestfs-actions.pod:5106
29073 #, no-wrap
29074 msgid ""
29075 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
29076 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
29077 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
29078 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
29079 "\n"
29080 msgstr ""
29081
29082 #. type: textblock
29083 #: ../src/guestfs-actions.pod:5154
29084 msgid "(Added in 1.7.19)"
29085 msgstr ""
29086
29087 #. type: =head2
29088 #: ../src/guestfs-actions.pod:5156
29089 msgid "guestfs_mkfs_opts_va"
29090 msgstr ""
29091
29092 #. type: verbatim
29093 #: ../src/guestfs-actions.pod:5158
29094 #, no-wrap
29095 msgid ""
29096 " int\n"
29097 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
29098 "                       const char *fstype,\n"
29099 "                       const char *device,\n"
29100 "                       va_list args);\n"
29101 "\n"
29102 msgstr ""
29103
29104 #. type: textblock
29105 #: ../src/guestfs-actions.pod:5164
29106 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
29107 msgstr ""
29108
29109 #. type: =head2
29110 #: ../src/guestfs-actions.pod:5168
29111 msgid "guestfs_mkfs_opts_argv"
29112 msgstr ""
29113
29114 #. type: verbatim
29115 #: ../src/guestfs-actions.pod:5170
29116 #, no-wrap
29117 msgid ""
29118 " int\n"
29119 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
29120 "                         const char *fstype,\n"
29121 "                         const char *device,\n"
29122 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
29123 "\n"
29124 msgstr ""
29125
29126 #. type: textblock
29127 #: ../src/guestfs-actions.pod:5176
29128 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
29129 msgstr ""
29130
29131 #. type: =head2
29132 #: ../src/guestfs-actions.pod:5180
29133 msgid "guestfs_mkmountpoint"
29134 msgstr ""
29135
29136 #. type: verbatim
29137 #: ../src/guestfs-actions.pod:5182
29138 #, no-wrap
29139 msgid ""
29140 " int\n"
29141 " guestfs_mkmountpoint (guestfs_h *g,\n"
29142 "                       const char *exemptpath);\n"
29143 "\n"
29144 msgstr ""
29145
29146 #. type: textblock
29147 #: ../src/guestfs-actions.pod:5186
29148 msgid ""
29149 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
29150 "that can be used to create extra mountpoints before mounting the first "
29151 "filesystem."
29152 msgstr ""
29153
29154 #. type: textblock
29155 #: ../src/guestfs-actions.pod:5210
29156 msgid ""
29157 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
29158 "may get unexpected errors if you try to mix these calls.  It is safest to "
29159 "manually unmount filesystems and remove mountpoints after use."
29160 msgstr ""
29161
29162 #. type: textblock
29163 #: ../src/guestfs-actions.pod:5214
29164 msgid ""
29165 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
29166 "first, so for this to work for manual mountpoints, you must ensure that the "
29167 "innermost mountpoints have the longest pathnames, as in the example code "
29168 "above."
29169 msgstr ""
29170
29171 #. type: textblock
29172 #: ../src/guestfs-actions.pod:5221
29173 msgid ""
29174 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
29175 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
29176 "can also trigger these issues."
29177 msgstr ""
29178
29179 #. type: textblock
29180 #: ../src/guestfs-actions.pod:5227 ../src/guestfs-actions.pod:5533 ../src/guestfs-actions.pod:6561
29181 msgid "(Added in 1.0.62)"
29182 msgstr ""
29183
29184 #. type: =head2
29185 #: ../src/guestfs-actions.pod:5229
29186 msgid "guestfs_mknod"
29187 msgstr ""
29188
29189 #. type: verbatim
29190 #: ../src/guestfs-actions.pod:5231
29191 #, no-wrap
29192 msgid ""
29193 " int\n"
29194 " guestfs_mknod (guestfs_h *g,\n"
29195 "                int mode,\n"
29196 "                int devmajor,\n"
29197 "                int devminor,\n"
29198 "                const char *path);\n"
29199 "\n"
29200 msgstr ""
29201
29202 #. type: textblock
29203 #: ../src/guestfs-actions.pod:5246
29204 msgid ""
29205 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
29206 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
29207 "regular file).  These constants are available in the standard Linux header "
29208 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
29209 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
29210 "the appropriate constant for you."
29211 msgstr ""
29212
29213 #. type: =head2
29214 #: ../src/guestfs-actions.pod:5260
29215 msgid "guestfs_mknod_b"
29216 msgstr ""
29217
29218 #. type: verbatim
29219 #: ../src/guestfs-actions.pod:5262
29220 #, no-wrap
29221 msgid ""
29222 " int\n"
29223 " guestfs_mknod_b (guestfs_h *g,\n"
29224 "                  int mode,\n"
29225 "                  int devmajor,\n"
29226 "                  int devminor,\n"
29227 "                  const char *path);\n"
29228 "\n"
29229 msgstr ""
29230
29231 #. type: textblock
29232 #: ../src/guestfs-actions.pod:5269
29233 msgid ""
29234 "This call creates a block device node called C<path> with mode C<mode> and "
29235 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
29236 "wrapper around C<guestfs_mknod>."
29237 msgstr ""
29238
29239 #. type: =head2
29240 #: ../src/guestfs-actions.pod:5279
29241 msgid "guestfs_mknod_c"
29242 msgstr ""
29243
29244 #. type: verbatim
29245 #: ../src/guestfs-actions.pod:5281
29246 #, no-wrap
29247 msgid ""
29248 " int\n"
29249 " guestfs_mknod_c (guestfs_h *g,\n"
29250 "                  int mode,\n"
29251 "                  int devmajor,\n"
29252 "                  int devminor,\n"
29253 "                  const char *path);\n"
29254 "\n"
29255 msgstr ""
29256
29257 #. type: textblock
29258 #: ../src/guestfs-actions.pod:5288
29259 msgid ""
29260 "This call creates a char device node called C<path> with mode C<mode> and "
29261 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
29262 "wrapper around C<guestfs_mknod>."
29263 msgstr ""
29264
29265 #. type: =head2
29266 #: ../src/guestfs-actions.pod:5298
29267 msgid "guestfs_mkswap"
29268 msgstr ""
29269
29270 #. type: verbatim
29271 #: ../src/guestfs-actions.pod:5300
29272 #, no-wrap
29273 msgid ""
29274 " int\n"
29275 " guestfs_mkswap (guestfs_h *g,\n"
29276 "                 const char *device);\n"
29277 "\n"
29278 msgstr ""
29279
29280 #. type: =head2
29281 #: ../src/guestfs-actions.pod:5310
29282 msgid "guestfs_mkswap_L"
29283 msgstr ""
29284
29285 #. type: verbatim
29286 #: ../src/guestfs-actions.pod:5312
29287 #, no-wrap
29288 msgid ""
29289 " int\n"
29290 " guestfs_mkswap_L (guestfs_h *g,\n"
29291 "                   const char *label,\n"
29292 "                   const char *device);\n"
29293 "\n"
29294 msgstr ""
29295
29296 #. type: =head2
29297 #: ../src/guestfs-actions.pod:5327
29298 msgid "guestfs_mkswap_U"
29299 msgstr ""
29300
29301 #. type: verbatim
29302 #: ../src/guestfs-actions.pod:5329
29303 #, no-wrap
29304 msgid ""
29305 " int\n"
29306 " guestfs_mkswap_U (guestfs_h *g,\n"
29307 "                   const char *uuid,\n"
29308 "                   const char *device);\n"
29309 "\n"
29310 msgstr ""
29311
29312 #. type: =head2
29313 #: ../src/guestfs-actions.pod:5340
29314 msgid "guestfs_mkswap_file"
29315 msgstr ""
29316
29317 #. type: verbatim
29318 #: ../src/guestfs-actions.pod:5342
29319 #, no-wrap
29320 msgid ""
29321 " int\n"
29322 " guestfs_mkswap_file (guestfs_h *g,\n"
29323 "                      const char *path);\n"
29324 "\n"
29325 msgstr ""
29326
29327 #. type: textblock
29328 #: ../src/guestfs-actions.pod:5348
29329 msgid ""
29330 "This command just writes a swap file signature to an existing file.  To "
29331 "create the file itself, use something like C<guestfs_fallocate>."
29332 msgstr ""
29333
29334 #. type: =head2
29335 #: ../src/guestfs-actions.pod:5355
29336 msgid "guestfs_modprobe"
29337 msgstr ""
29338
29339 #. type: verbatim
29340 #: ../src/guestfs-actions.pod:5357
29341 #, no-wrap
29342 msgid ""
29343 " int\n"
29344 " guestfs_modprobe (guestfs_h *g,\n"
29345 "                   const char *modulename);\n"
29346 "\n"
29347 msgstr ""
29348
29349 #. type: =head2
29350 #: ../src/guestfs-actions.pod:5370
29351 msgid "guestfs_mount"
29352 msgstr ""
29353
29354 #. type: verbatim
29355 #: ../src/guestfs-actions.pod:5372
29356 #, no-wrap
29357 msgid ""
29358 " int\n"
29359 " guestfs_mount (guestfs_h *g,\n"
29360 "                const char *device,\n"
29361 "                const char *mountpoint);\n"
29362 "\n"
29363 msgstr ""
29364
29365 #. type: textblock
29366 #: ../src/guestfs-actions.pod:5391
29367 msgid ""
29368 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
29369 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
29370 "problems for users.  If your program might need to work with older versions "
29371 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
29372 "for the first parameter if you don't want any options)."
29373 msgstr ""
29374
29375 #. type: =head2
29376 #: ../src/guestfs-actions.pod:5402
29377 msgid "guestfs_mount_9p"
29378 msgstr ""
29379
29380 #. type: verbatim
29381 #: ../src/guestfs-actions.pod:5404
29382 #, no-wrap
29383 msgid ""
29384 " int\n"
29385 " guestfs_mount_9p (guestfs_h *g,\n"
29386 "                   const char *mounttag,\n"
29387 "                   const char *mountpoint,\n"
29388 "                   ...);\n"
29389 "\n"
29390 msgstr ""
29391
29392 #. type: verbatim
29393 #: ../src/guestfs-actions.pod:5415
29394 #, no-wrap
29395 msgid ""
29396 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
29397 "\n"
29398 msgstr ""
29399
29400 #. type: =head2
29401 #: ../src/guestfs-actions.pod:5428
29402 msgid "guestfs_mount_9p_va"
29403 msgstr ""
29404
29405 #. type: verbatim
29406 #: ../src/guestfs-actions.pod:5430
29407 #, no-wrap
29408 msgid ""
29409 " int\n"
29410 " guestfs_mount_9p_va (guestfs_h *g,\n"
29411 "                      const char *mounttag,\n"
29412 "                      const char *mountpoint,\n"
29413 "                      va_list args);\n"
29414 "\n"
29415 msgstr ""
29416
29417 #. type: textblock
29418 #: ../src/guestfs-actions.pod:5436
29419 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
29420 msgstr ""
29421
29422 #. type: =head2
29423 #: ../src/guestfs-actions.pod:5440
29424 msgid "guestfs_mount_9p_argv"
29425 msgstr ""
29426
29427 #. type: verbatim
29428 #: ../src/guestfs-actions.pod:5442
29429 #, no-wrap
29430 msgid ""
29431 " int\n"
29432 " guestfs_mount_9p_argv (guestfs_h *g,\n"
29433 "                        const char *mounttag,\n"
29434 "                        const char *mountpoint,\n"
29435 "                        const struct guestfs_mount_9p_argv *optargs);\n"
29436 "\n"
29437 msgstr ""
29438
29439 #. type: textblock
29440 #: ../src/guestfs-actions.pod:5448
29441 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
29442 msgstr ""
29443
29444 #. type: =head2
29445 #: ../src/guestfs-actions.pod:5452
29446 msgid "guestfs_mount_loop"
29447 msgstr ""
29448
29449 #. type: verbatim
29450 #: ../src/guestfs-actions.pod:5454
29451 #, no-wrap
29452 msgid ""
29453 " int\n"
29454 " guestfs_mount_loop (guestfs_h *g,\n"
29455 "                     const char *file,\n"
29456 "                     const char *mountpoint);\n"
29457 "\n"
29458 msgstr ""
29459
29460 #. type: =head2
29461 #: ../src/guestfs-actions.pod:5467
29462 msgid "guestfs_mount_options"
29463 msgstr ""
29464
29465 #. type: verbatim
29466 #: ../src/guestfs-actions.pod:5469
29467 #, no-wrap
29468 msgid ""
29469 " int\n"
29470 " guestfs_mount_options (guestfs_h *g,\n"
29471 "                        const char *options,\n"
29472 "                        const char *device,\n"
29473 "                        const char *mountpoint);\n"
29474 "\n"
29475 msgstr ""
29476
29477 #. type: textblock
29478 #: ../src/guestfs-actions.pod:5475
29479 msgid ""
29480 "This is the same as the C<guestfs_mount> command, but it allows you to set "
29481 "the mount options as for the L<mount(8)> I<-o> flag."
29482 msgstr ""
29483
29484 #. type: textblock
29485 #: ../src/guestfs-actions.pod:5485 ../src/guestfs-actions.pod:5499 ../src/guestfs-actions.pod:5516
29486 msgid "(Added in 1.0.10)"
29487 msgstr ""
29488
29489 #. type: =head2
29490 #: ../src/guestfs-actions.pod:5487
29491 msgid "guestfs_mount_ro"
29492 msgstr ""
29493
29494 #. type: verbatim
29495 #: ../src/guestfs-actions.pod:5489
29496 #, no-wrap
29497 msgid ""
29498 " int\n"
29499 " guestfs_mount_ro (guestfs_h *g,\n"
29500 "                   const char *device,\n"
29501 "                   const char *mountpoint);\n"
29502 "\n"
29503 msgstr ""
29504
29505 #. type: textblock
29506 #: ../src/guestfs-actions.pod:5494
29507 msgid ""
29508 "This is the same as the C<guestfs_mount> command, but it mounts the "
29509 "filesystem with the read-only (I<-o ro>) flag."
29510 msgstr ""
29511
29512 #. type: =head2
29513 #: ../src/guestfs-actions.pod:5501
29514 msgid "guestfs_mount_vfs"
29515 msgstr ""
29516
29517 #. type: verbatim
29518 #: ../src/guestfs-actions.pod:5503
29519 #, no-wrap
29520 msgid ""
29521 " int\n"
29522 " guestfs_mount_vfs (guestfs_h *g,\n"
29523 "                    const char *options,\n"
29524 "                    const char *vfstype,\n"
29525 "                    const char *device,\n"
29526 "                    const char *mountpoint);\n"
29527 "\n"
29528 msgstr ""
29529
29530 #. type: textblock
29531 #: ../src/guestfs-actions.pod:5510
29532 msgid ""
29533 "This is the same as the C<guestfs_mount> command, but it allows you to set "
29534 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
29535 "I<-t> flags."
29536 msgstr ""
29537
29538 #. type: =head2
29539 #: ../src/guestfs-actions.pod:5518
29540 msgid "guestfs_mountpoints"
29541 msgstr ""
29542
29543 #. type: verbatim
29544 #: ../src/guestfs-actions.pod:5520
29545 #, no-wrap
29546 msgid ""
29547 " char **\n"
29548 " guestfs_mountpoints (guestfs_h *g);\n"
29549 "\n"
29550 msgstr ""
29551
29552 #. type: textblock
29553 #: ../src/guestfs-actions.pod:5523
29554 msgid ""
29555 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
29556 "devices.  This one returns a hash table (map) of device name to directory "
29557 "where the device is mounted."
29558 msgstr ""
29559
29560 #. type: =head2
29561 #: ../src/guestfs-actions.pod:5535
29562 msgid "guestfs_mounts"
29563 msgstr ""
29564
29565 #. type: verbatim
29566 #: ../src/guestfs-actions.pod:5537
29567 #, no-wrap
29568 msgid ""
29569 " char **\n"
29570 " guestfs_mounts (guestfs_h *g);\n"
29571 "\n"
29572 msgstr ""
29573
29574 #. type: textblock
29575 #: ../src/guestfs-actions.pod:5545
29576 msgid "See also: C<guestfs_mountpoints>"
29577 msgstr ""
29578
29579 #. type: =head2
29580 #: ../src/guestfs-actions.pod:5553
29581 msgid "guestfs_mv"
29582 msgstr ""
29583
29584 #. type: verbatim
29585 #: ../src/guestfs-actions.pod:5555
29586 #, no-wrap
29587 msgid ""
29588 " int\n"
29589 " guestfs_mv (guestfs_h *g,\n"
29590 "             const char *src,\n"
29591 "             const char *dest);\n"
29592 "\n"
29593 msgstr ""
29594
29595 #. type: =head2
29596 #: ../src/guestfs-actions.pod:5567
29597 msgid "guestfs_ntfs_3g_probe"
29598 msgstr ""
29599
29600 #. type: verbatim
29601 #: ../src/guestfs-actions.pod:5569
29602 #, no-wrap
29603 msgid ""
29604 " int\n"
29605 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
29606 "                        int rw,\n"
29607 "                        const char *device);\n"
29608 "\n"
29609 msgstr ""
29610
29611 #. type: textblock
29612 #: ../src/guestfs-actions.pod:5588
29613 msgid "(Added in 1.0.43)"
29614 msgstr ""
29615
29616 #. type: =head2
29617 #: ../src/guestfs-actions.pod:5590
29618 msgid "guestfs_ntfsresize"
29619 msgstr ""
29620
29621 #. type: verbatim
29622 #: ../src/guestfs-actions.pod:5592
29623 #, no-wrap
29624 msgid ""
29625 " int\n"
29626 " guestfs_ntfsresize (guestfs_h *g,\n"
29627 "                     const char *device);\n"
29628 "\n"
29629 msgstr ""
29630
29631 #. type: textblock
29632 #: ../src/guestfs-actions.pod:5596 ../src/guestfs-actions.pod:5696
29633 msgid ""
29634 "I<This function is deprecated.> In new code, use the "
29635 "L</guestfs_ntfsresize_opts> call instead."
29636 msgstr ""
29637
29638 #. type: =head2
29639 #: ../src/guestfs-actions.pod:5620
29640 msgid "guestfs_ntfsresize_opts"
29641 msgstr ""
29642
29643 #. type: verbatim
29644 #: ../src/guestfs-actions.pod:5622
29645 #, no-wrap
29646 msgid ""
29647 " int\n"
29648 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
29649 "                          const char *device,\n"
29650 "                          ...);\n"
29651 "\n"
29652 msgstr ""
29653
29654 #. type: verbatim
29655 #: ../src/guestfs-actions.pod:5632
29656 #, no-wrap
29657 msgid ""
29658 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
29659 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
29660 "\n"
29661 msgstr ""
29662
29663 #. type: textblock
29664 #: ../src/guestfs-actions.pod:5652
29665 msgid ""
29666 "After the resize operation, the filesystem is always marked as requiring a "
29667 "consistency check (for safety).  You have to boot into Windows to perform "
29668 "this check and clear this condition.  If you I<don't> set the C<force> "
29669 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
29670 "times on a single filesystem without booting into Windows between each "
29671 "resize."
29672 msgstr ""
29673
29674 #. type: =head2
29675 #: ../src/guestfs-actions.pod:5667
29676 msgid "guestfs_ntfsresize_opts_va"
29677 msgstr ""
29678
29679 #. type: verbatim
29680 #: ../src/guestfs-actions.pod:5669
29681 #, no-wrap
29682 msgid ""
29683 " int\n"
29684 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
29685 "                             const char *device,\n"
29686 "                             va_list args);\n"
29687 "\n"
29688 msgstr ""
29689
29690 #. type: textblock
29691 #: ../src/guestfs-actions.pod:5674
29692 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
29693 msgstr ""
29694
29695 #. type: =head2
29696 #: ../src/guestfs-actions.pod:5678
29697 msgid "guestfs_ntfsresize_opts_argv"
29698 msgstr ""
29699
29700 #. type: verbatim
29701 #: ../src/guestfs-actions.pod:5680
29702 #, no-wrap
29703 msgid ""
29704 " int\n"
29705 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
29706 "                               const char *device,\n"
29707 "                               const struct guestfs_ntfsresize_opts_argv "
29708 "*optargs);\n"
29709 "\n"
29710 msgstr ""
29711
29712 #. type: textblock
29713 #: ../src/guestfs-actions.pod:5685
29714 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
29715 msgstr ""
29716
29717 #. type: =head2
29718 #: ../src/guestfs-actions.pod:5689
29719 msgid "guestfs_ntfsresize_size"
29720 msgstr ""
29721
29722 #. type: verbatim
29723 #: ../src/guestfs-actions.pod:5691
29724 #, no-wrap
29725 msgid ""
29726 " int\n"
29727 " guestfs_ntfsresize_size (guestfs_h *g,\n"
29728 "                          const char *device,\n"
29729 "                          int64_t size);\n"
29730 "\n"
29731 msgstr ""
29732
29733 #. type: textblock
29734 #: ../src/guestfs-actions.pod:5703
29735 msgid ""
29736 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
29737 "to specify the new size (in bytes) explicitly."
29738 msgstr ""
29739
29740 #. type: textblock
29741 #: ../src/guestfs-actions.pod:5708 ../src/guestfs-actions.pod:6168 ../src/guestfs-actions.pod:6241 ../src/guestfs-actions.pod:6509 ../src/guestfs-actions.pod:8148
29742 msgid "(Added in 1.3.14)"
29743 msgstr ""
29744
29745 #. type: =head2
29746 #: ../src/guestfs-actions.pod:5710
29747 msgid "guestfs_part_add"
29748 msgstr ""
29749
29750 #. type: verbatim
29751 #: ../src/guestfs-actions.pod:5712
29752 #, no-wrap
29753 msgid ""
29754 " int\n"
29755 " guestfs_part_add (guestfs_h *g,\n"
29756 "                   const char *device,\n"
29757 "                   const char *prlogex,\n"
29758 "                   int64_t startsect,\n"
29759 "                   int64_t endsect);\n"
29760 "\n"
29761 msgstr ""
29762
29763 #. type: textblock
29764 #: ../src/guestfs-actions.pod:5719
29765 msgid ""
29766 "This command adds a partition to C<device>.  If there is no partition table "
29767 "on the device, call C<guestfs_part_init> first."
29768 msgstr ""
29769
29770 #. type: textblock
29771 #: ../src/guestfs-actions.pod:5731
29772 msgid ""
29773 "Creating a partition which covers the whole disk is not so easy.  Use "
29774 "C<guestfs_part_disk> to do that."
29775 msgstr ""
29776
29777 #. type: textblock
29778 #: ../src/guestfs-actions.pod:5736 ../src/guestfs-actions.pod:5774 ../src/guestfs-actions.pod:5827 ../src/guestfs-actions.pod:5911 ../src/guestfs-actions.pod:5949 ../src/guestfs-actions.pod:5968 ../src/guestfs-actions.pod:6008
29779 msgid "(Added in 1.0.78)"
29780 msgstr ""
29781
29782 #. type: =head2
29783 #: ../src/guestfs-actions.pod:5738
29784 msgid "guestfs_part_del"
29785 msgstr ""
29786
29787 #. type: verbatim
29788 #: ../src/guestfs-actions.pod:5740
29789 #, no-wrap
29790 msgid ""
29791 " int\n"
29792 " guestfs_part_del (guestfs_h *g,\n"
29793 "                   const char *device,\n"
29794 "                   int partnum);\n"
29795 "\n"
29796 msgstr ""
29797
29798 #. type: =head2
29799 #: ../src/guestfs-actions.pod:5755
29800 msgid "guestfs_part_disk"
29801 msgstr ""
29802
29803 #. type: verbatim
29804 #: ../src/guestfs-actions.pod:5757
29805 #, no-wrap
29806 msgid ""
29807 " int\n"
29808 " guestfs_part_disk (guestfs_h *g,\n"
29809 "                    const char *device,\n"
29810 "                    const char *parttype);\n"
29811 "\n"
29812 msgstr ""
29813
29814 #. type: textblock
29815 #: ../src/guestfs-actions.pod:5762
29816 msgid ""
29817 "This command is simply a combination of C<guestfs_part_init> followed by "
29818 "C<guestfs_part_add> to create a single primary partition covering the whole "
29819 "disk."
29820 msgstr ""
29821
29822 #. type: textblock
29823 #: ../src/guestfs-actions.pod:5766
29824 msgid ""
29825 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
29826 "possible values are described in C<guestfs_part_init>."
29827 msgstr ""
29828
29829 #. type: =head2
29830 #: ../src/guestfs-actions.pod:5776
29831 msgid "guestfs_part_get_bootable"
29832 msgstr ""
29833
29834 #. type: verbatim
29835 #: ../src/guestfs-actions.pod:5778
29836 #, no-wrap
29837 msgid ""
29838 " int\n"
29839 " guestfs_part_get_bootable (guestfs_h *g,\n"
29840 "                            const char *device,\n"
29841 "                            int partnum);\n"
29842 "\n"
29843 msgstr ""
29844
29845 #. type: textblock
29846 #: ../src/guestfs-actions.pod:5786
29847 msgid "See also C<guestfs_part_set_bootable>."
29848 msgstr ""
29849
29850 #. type: =head2
29851 #: ../src/guestfs-actions.pod:5792
29852 msgid "guestfs_part_get_mbr_id"
29853 msgstr ""
29854
29855 #. type: verbatim
29856 #: ../src/guestfs-actions.pod:5794
29857 #, no-wrap
29858 msgid ""
29859 " int\n"
29860 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
29861 "                          const char *device,\n"
29862 "                          int partnum);\n"
29863 "\n"
29864 msgstr ""
29865
29866 #. type: textblock
29867 #: ../src/guestfs-actions.pod:5802 ../src/guestfs-actions.pod:5984
29868 msgid ""
29869 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
29870 "undefined results for other partition table types (see "
29871 "C<guestfs_part_get_parttype>)."
29872 msgstr ""
29873
29874 #. type: =head2
29875 #: ../src/guestfs-actions.pod:5810
29876 msgid "guestfs_part_get_parttype"
29877 msgstr ""
29878
29879 #. type: verbatim
29880 #: ../src/guestfs-actions.pod:5812
29881 #, no-wrap
29882 msgid ""
29883 " char *\n"
29884 " guestfs_part_get_parttype (guestfs_h *g,\n"
29885 "                            const char *device);\n"
29886 "\n"
29887 msgstr ""
29888
29889 #. type: textblock
29890 #: ../src/guestfs-actions.pod:5819
29891 msgid ""
29892 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
29893 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
29894 "possible, although unusual.  See C<guestfs_part_init> for a full list."
29895 msgstr ""
29896
29897 #. type: =head2
29898 #: ../src/guestfs-actions.pod:5829
29899 msgid "guestfs_part_init"
29900 msgstr ""
29901
29902 #. type: verbatim
29903 #: ../src/guestfs-actions.pod:5831
29904 #, no-wrap
29905 msgid ""
29906 " int\n"
29907 " guestfs_part_init (guestfs_h *g,\n"
29908 "                    const char *device,\n"
29909 "                    const char *parttype);\n"
29910 "\n"
29911 msgstr ""
29912
29913 #. type: textblock
29914 #: ../src/guestfs-actions.pod:5840
29915 msgid ""
29916 "Initially there are no partitions.  Following this, you should call "
29917 "C<guestfs_part_add> for each partition required."
29918 msgstr ""
29919
29920 #. type: =head2
29921 #: ../src/guestfs-actions.pod:5913
29922 msgid "guestfs_part_list"
29923 msgstr ""
29924
29925 #. type: verbatim
29926 #: ../src/guestfs-actions.pod:5915
29927 #, no-wrap
29928 msgid ""
29929 " struct guestfs_partition_list *\n"
29930 " guestfs_part_list (guestfs_h *g,\n"
29931 "                    const char *device);\n"
29932 "\n"
29933 msgstr ""
29934
29935 #. type: textblock
29936 #: ../src/guestfs-actions.pod:5932
29937 msgid ""
29938 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
29939 "the device's sector size, see C<guestfs_blockdev_getss>."
29940 msgstr ""
29941
29942 #. type: textblock
29943 #: ../src/guestfs-actions.pod:5945
29944 msgid ""
29945 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
29946 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
29947 "use>."
29948 msgstr ""
29949
29950 #. type: =head2
29951 #: ../src/guestfs-actions.pod:5951
29952 msgid "guestfs_part_set_bootable"
29953 msgstr ""
29954
29955 #. type: verbatim
29956 #: ../src/guestfs-actions.pod:5953
29957 #, no-wrap
29958 msgid ""
29959 " int\n"
29960 " guestfs_part_set_bootable (guestfs_h *g,\n"
29961 "                            const char *device,\n"
29962 "                            int partnum,\n"
29963 "                            int bootable);\n"
29964 "\n"
29965 msgstr ""
29966
29967 #. type: =head2
29968 #: ../src/guestfs-actions.pod:5970
29969 msgid "guestfs_part_set_mbr_id"
29970 msgstr ""
29971
29972 #. type: verbatim
29973 #: ../src/guestfs-actions.pod:5972
29974 #, no-wrap
29975 msgid ""
29976 " int\n"
29977 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
29978 "                          const char *device,\n"
29979 "                          int partnum,\n"
29980 "                          int idbyte);\n"
29981 "\n"
29982 msgstr ""
29983
29984 #. type: =head2
29985 #: ../src/guestfs-actions.pod:5992
29986 msgid "guestfs_part_set_name"
29987 msgstr ""
29988
29989 #. type: verbatim
29990 #: ../src/guestfs-actions.pod:5994
29991 #, no-wrap
29992 msgid ""
29993 " int\n"
29994 " guestfs_part_set_name (guestfs_h *g,\n"
29995 "                        const char *device,\n"
29996 "                        int partnum,\n"
29997 "                        const char *name);\n"
29998 "\n"
29999 msgstr ""
30000
30001 #. type: =head2
30002 #: ../src/guestfs-actions.pod:6010
30003 msgid "guestfs_part_to_dev"
30004 msgstr ""
30005
30006 #. type: verbatim
30007 #: ../src/guestfs-actions.pod:6012
30008 #, no-wrap
30009 msgid ""
30010 " char *\n"
30011 " guestfs_part_to_dev (guestfs_h *g,\n"
30012 "                      const char *partition);\n"
30013 "\n"
30014 msgstr ""
30015
30016 #. type: textblock
30017 #: ../src/guestfs-actions.pod:6020 ../src/guestfs-actions.pod:6039
30018 msgid ""
30019 "The named partition must exist, for example as a string returned from "
30020 "C<guestfs_list_partitions>."
30021 msgstr ""
30022
30023 #. type: textblock
30024 #: ../src/guestfs-actions.pod:6023
30025 msgid "See also C<guestfs_part_to_partnum>."
30026 msgstr ""
30027
30028 #. type: =head2
30029 #: ../src/guestfs-actions.pod:6030
30030 msgid "guestfs_part_to_partnum"
30031 msgstr ""
30032
30033 #. type: verbatim
30034 #: ../src/guestfs-actions.pod:6032
30035 #, no-wrap
30036 msgid ""
30037 " int\n"
30038 " guestfs_part_to_partnum (guestfs_h *g,\n"
30039 "                          const char *partition);\n"
30040 "\n"
30041 msgstr ""
30042
30043 #. type: textblock
30044 #: ../src/guestfs-actions.pod:6042
30045 msgid "See also C<guestfs_part_to_dev>."
30046 msgstr ""
30047
30048 #. type: =head2
30049 #: ../src/guestfs-actions.pod:6046
30050 msgid "guestfs_ping_daemon"
30051 msgstr ""
30052
30053 #. type: verbatim
30054 #: ../src/guestfs-actions.pod:6048
30055 #, no-wrap
30056 msgid ""
30057 " int\n"
30058 " guestfs_ping_daemon (guestfs_h *g);\n"
30059 "\n"
30060 msgstr ""
30061
30062 #. type: =head2
30063 #: ../src/guestfs-actions.pod:6060
30064 msgid "guestfs_pread"
30065 msgstr ""
30066
30067 #. type: verbatim
30068 #: ../src/guestfs-actions.pod:6062
30069 #, no-wrap
30070 msgid ""
30071 " char *\n"
30072 " guestfs_pread (guestfs_h *g,\n"
30073 "                const char *path,\n"
30074 "                int count,\n"
30075 "                int64_t offset,\n"
30076 "                size_t *size_r);\n"
30077 "\n"
30078 msgstr ""
30079
30080 #. type: textblock
30081 #: ../src/guestfs-actions.pod:6075
30082 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
30083 msgstr ""
30084
30085 #. type: =head2
30086 #: ../src/guestfs-actions.pod:6086
30087 msgid "guestfs_pread_device"
30088 msgstr ""
30089
30090 #. type: verbatim
30091 #: ../src/guestfs-actions.pod:6088
30092 #, no-wrap
30093 msgid ""
30094 " char *\n"
30095 " guestfs_pread_device (guestfs_h *g,\n"
30096 "                       const char *device,\n"
30097 "                       int count,\n"
30098 "                       int64_t offset,\n"
30099 "                       size_t *size_r);\n"
30100 "\n"
30101 msgstr ""
30102
30103 #. type: textblock
30104 #: ../src/guestfs-actions.pod:6101
30105 msgid "See also C<guestfs_pread>."
30106 msgstr ""
30107
30108 #. type: textblock
30109 #: ../src/guestfs-actions.pod:6110
30110 msgid "(Added in 1.5.21)"
30111 msgstr ""
30112
30113 #. type: =head2
30114 #: ../src/guestfs-actions.pod:6112
30115 msgid "guestfs_pvcreate"
30116 msgstr ""
30117
30118 #. type: verbatim
30119 #: ../src/guestfs-actions.pod:6114
30120 #, no-wrap
30121 msgid ""
30122 " int\n"
30123 " guestfs_pvcreate (guestfs_h *g,\n"
30124 "                   const char *device);\n"
30125 "\n"
30126 msgstr ""
30127
30128 #. type: =head2
30129 #: ../src/guestfs-actions.pod:6126
30130 msgid "guestfs_pvremove"
30131 msgstr ""
30132
30133 #. type: verbatim
30134 #: ../src/guestfs-actions.pod:6128
30135 #, no-wrap
30136 msgid ""
30137 " int\n"
30138 " guestfs_pvremove (guestfs_h *g,\n"
30139 "                   const char *device);\n"
30140 "\n"
30141 msgstr ""
30142
30143 #. type: =head2
30144 #: ../src/guestfs-actions.pod:6143
30145 msgid "guestfs_pvresize"
30146 msgstr ""
30147
30148 #. type: verbatim
30149 #: ../src/guestfs-actions.pod:6145
30150 #, no-wrap
30151 msgid ""
30152 " int\n"
30153 " guestfs_pvresize (guestfs_h *g,\n"
30154 "                   const char *device);\n"
30155 "\n"
30156 msgstr ""
30157
30158 #. type: =head2
30159 #: ../src/guestfs-actions.pod:6156
30160 msgid "guestfs_pvresize_size"
30161 msgstr ""
30162
30163 #. type: verbatim
30164 #: ../src/guestfs-actions.pod:6158
30165 #, no-wrap
30166 msgid ""
30167 " int\n"
30168 " guestfs_pvresize_size (guestfs_h *g,\n"
30169 "                        const char *device,\n"
30170 "                        int64_t size);\n"
30171 "\n"
30172 msgstr ""
30173
30174 #. type: textblock
30175 #: ../src/guestfs-actions.pod:6163
30176 msgid ""
30177 "This command is the same as C<guestfs_pvresize> except that it allows you to "
30178 "specify the new size (in bytes) explicitly."
30179 msgstr ""
30180
30181 #. type: =head2
30182 #: ../src/guestfs-actions.pod:6170
30183 msgid "guestfs_pvs"
30184 msgstr ""
30185
30186 #. type: verbatim
30187 #: ../src/guestfs-actions.pod:6172
30188 #, no-wrap
30189 msgid ""
30190 " char **\n"
30191 " guestfs_pvs (guestfs_h *g);\n"
30192 "\n"
30193 msgstr ""
30194
30195 #. type: textblock
30196 #: ../src/guestfs-actions.pod:6181
30197 msgid "See also C<guestfs_pvs_full>."
30198 msgstr ""
30199
30200 #. type: =head2
30201 #: ../src/guestfs-actions.pod:6189
30202 msgid "guestfs_pvs_full"
30203 msgstr ""
30204
30205 #. type: verbatim
30206 #: ../src/guestfs-actions.pod:6191
30207 #, no-wrap
30208 msgid ""
30209 " struct guestfs_lvm_pv_list *\n"
30210 " guestfs_pvs_full (guestfs_h *g);\n"
30211 "\n"
30212 msgstr ""
30213
30214 #. type: textblock
30215 #: ../src/guestfs-actions.pod:6197
30216 msgid ""
30217 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
30218 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
30219 "use>."
30220 msgstr ""
30221
30222 #. type: =head2
30223 #: ../src/guestfs-actions.pod:6203
30224 msgid "guestfs_pvuuid"
30225 msgstr ""
30226
30227 #. type: verbatim
30228 #: ../src/guestfs-actions.pod:6205
30229 #, no-wrap
30230 msgid ""
30231 " char *\n"
30232 " guestfs_pvuuid (guestfs_h *g,\n"
30233 "                 const char *device);\n"
30234 "\n"
30235 msgstr ""
30236
30237 #. type: =head2
30238 #: ../src/guestfs-actions.pod:6216
30239 msgid "guestfs_pwrite"
30240 msgstr ""
30241
30242 #. type: verbatim
30243 #: ../src/guestfs-actions.pod:6218
30244 #, no-wrap
30245 msgid ""
30246 " int\n"
30247 " guestfs_pwrite (guestfs_h *g,\n"
30248 "                 const char *path,\n"
30249 "                 const char *content,\n"
30250 "                 size_t content_size,\n"
30251 "                 int64_t offset);\n"
30252 "\n"
30253 msgstr ""
30254
30255 #. type: textblock
30256 #: ../src/guestfs-actions.pod:6234
30257 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
30258 msgstr ""
30259
30260 #. type: =head2
30261 #: ../src/guestfs-actions.pod:6243
30262 msgid "guestfs_pwrite_device"
30263 msgstr ""
30264
30265 #. type: verbatim
30266 #: ../src/guestfs-actions.pod:6245
30267 #, no-wrap
30268 msgid ""
30269 " int\n"
30270 " guestfs_pwrite_device (guestfs_h *g,\n"
30271 "                        const char *device,\n"
30272 "                        const char *content,\n"
30273 "                        size_t content_size,\n"
30274 "                        int64_t offset);\n"
30275 "\n"
30276 msgstr ""
30277
30278 #. type: textblock
30279 #: ../src/guestfs-actions.pod:6260
30280 msgid "See also C<guestfs_pwrite>."
30281 msgstr ""
30282
30283 #. type: textblock
30284 #: ../src/guestfs-actions.pod:6267
30285 msgid "(Added in 1.5.20)"
30286 msgstr ""
30287
30288 #. type: =head2
30289 #: ../src/guestfs-actions.pod:6269
30290 msgid "guestfs_read_file"
30291 msgstr ""
30292
30293 #. type: verbatim
30294 #: ../src/guestfs-actions.pod:6271
30295 #, no-wrap
30296 msgid ""
30297 " char *\n"
30298 " guestfs_read_file (guestfs_h *g,\n"
30299 "                    const char *path,\n"
30300 "                    size_t *size_r);\n"
30301 "\n"
30302 msgstr ""
30303
30304 #. type: textblock
30305 #: ../src/guestfs-actions.pod:6279
30306 msgid ""
30307 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
30308 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
30309 "function is limited in the total size of file that can be handled."
30310 msgstr ""
30311
30312 #. type: textblock
30313 #: ../src/guestfs-actions.pod:6291
30314 msgid "(Added in 1.0.63)"
30315 msgstr ""
30316
30317 #. type: =head2
30318 #: ../src/guestfs-actions.pod:6293
30319 msgid "guestfs_read_lines"
30320 msgstr ""
30321
30322 #. type: verbatim
30323 #: ../src/guestfs-actions.pod:6295
30324 #, no-wrap
30325 msgid ""
30326 " char **\n"
30327 " guestfs_read_lines (guestfs_h *g,\n"
30328 "                     const char *path);\n"
30329 "\n"
30330 msgstr ""
30331
30332 #. type: textblock
30333 #: ../src/guestfs-actions.pod:6304
30334 msgid ""
30335 "Note that this function cannot correctly handle binary files (specifically, "
30336 "files containing C<\\0> character which is treated as end of line).  For "
30337 "those you need to use the C<guestfs_read_file> function which has a more "
30338 "complex interface."
30339 msgstr ""
30340
30341 #. type: =head2
30342 #: ../src/guestfs-actions.pod:6315
30343 msgid "guestfs_readdir"
30344 msgstr ""
30345
30346 #. type: verbatim
30347 #: ../src/guestfs-actions.pod:6317
30348 #, no-wrap
30349 msgid ""
30350 " struct guestfs_dirent_list *\n"
30351 " guestfs_readdir (guestfs_h *g,\n"
30352 "                  const char *dir);\n"
30353 "\n"
30354 msgstr ""
30355
30356 #. type: textblock
30357 #: ../src/guestfs-actions.pod:6371
30358 msgid ""
30359 "This function is primarily intended for use by programs.  To get a simple "
30360 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
30361 "consumption, use C<guestfs_ll>."
30362 msgstr ""
30363
30364 #. type: textblock
30365 #: ../src/guestfs-actions.pod:6375
30366 msgid ""
30367 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
30368 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
30369 "use>."
30370 msgstr ""
30371
30372 #. type: =head2
30373 #: ../src/guestfs-actions.pod:6381
30374 msgid "guestfs_readlink"
30375 msgstr ""
30376
30377 #. type: verbatim
30378 #: ../src/guestfs-actions.pod:6383
30379 #, no-wrap
30380 msgid ""
30381 " char *\n"
30382 " guestfs_readlink (guestfs_h *g,\n"
30383 "                   const char *path);\n"
30384 "\n"
30385 msgstr ""
30386
30387 #. type: =head2
30388 #: ../src/guestfs-actions.pod:6394
30389 msgid "guestfs_readlinklist"
30390 msgstr ""
30391
30392 #. type: verbatim
30393 #: ../src/guestfs-actions.pod:6396
30394 #, no-wrap
30395 msgid ""
30396 " char **\n"
30397 " guestfs_readlinklist (guestfs_h *g,\n"
30398 "                       const char *path,\n"
30399 "                       char *const *names);\n"
30400 "\n"
30401 msgstr ""
30402
30403 #. type: =head2
30404 #: ../src/guestfs-actions.pod:6429
30405 msgid "guestfs_realpath"
30406 msgstr ""
30407
30408 #. type: verbatim
30409 #: ../src/guestfs-actions.pod:6431
30410 #, no-wrap
30411 msgid ""
30412 " char *\n"
30413 " guestfs_realpath (guestfs_h *g,\n"
30414 "                   const char *path);\n"
30415 "\n"
30416 msgstr ""
30417
30418 #. type: =head2
30419 #: ../src/guestfs-actions.pod:6443
30420 msgid "guestfs_removexattr"
30421 msgstr ""
30422
30423 #. type: verbatim
30424 #: ../src/guestfs-actions.pod:6445
30425 #, no-wrap
30426 msgid ""
30427 " int\n"
30428 " guestfs_removexattr (guestfs_h *g,\n"
30429 "                      const char *xattr,\n"
30430 "                      const char *path);\n"
30431 "\n"
30432 msgstr ""
30433
30434 #. type: textblock
30435 #: ../src/guestfs-actions.pod:6453
30436 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
30437 msgstr ""
30438
30439 #. type: =head2
30440 #: ../src/guestfs-actions.pod:6459
30441 msgid "guestfs_resize2fs"
30442 msgstr ""
30443
30444 #. type: verbatim
30445 #: ../src/guestfs-actions.pod:6461
30446 #, no-wrap
30447 msgid ""
30448 " int\n"
30449 " guestfs_resize2fs (guestfs_h *g,\n"
30450 "                    const char *device);\n"
30451 "\n"
30452 msgstr ""
30453
30454 #. type: textblock
30455 #: ../src/guestfs-actions.pod:6468
30456 msgid ""
30457 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
30458 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
30459 "sometimes gives an error about this and sometimes not.  In any case, it is "
30460 "always safe to call C<guestfs_e2fsck_f> before calling this function."
30461 msgstr ""
30462
30463 #. type: =head2
30464 #: ../src/guestfs-actions.pod:6478
30465 msgid "guestfs_resize2fs_M"
30466 msgstr ""
30467
30468 #. type: verbatim
30469 #: ../src/guestfs-actions.pod:6480
30470 #, no-wrap
30471 msgid ""
30472 " int\n"
30473 " guestfs_resize2fs_M (guestfs_h *g,\n"
30474 "                      const char *device);\n"
30475 "\n"
30476 msgstr ""
30477
30478 #. type: textblock
30479 #: ../src/guestfs-actions.pod:6484
30480 msgid ""
30481 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
30482 "resized to its minimum size.  This works like the I<-M> option to the "
30483 "C<resize2fs> command."
30484 msgstr ""
30485
30486 #. type: textblock
30487 #: ../src/guestfs-actions.pod:6488
30488 msgid ""
30489 "To get the resulting size of the filesystem you should call "
30490 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
30491 "These two numbers, multiplied together, give the resulting size of the "
30492 "minimal filesystem in bytes."
30493 msgstr ""
30494
30495 #. type: =head2
30496 #: ../src/guestfs-actions.pod:6497
30497 msgid "guestfs_resize2fs_size"
30498 msgstr ""
30499
30500 #. type: verbatim
30501 #: ../src/guestfs-actions.pod:6499
30502 #, no-wrap
30503 msgid ""
30504 " int\n"
30505 " guestfs_resize2fs_size (guestfs_h *g,\n"
30506 "                         const char *device,\n"
30507 "                         int64_t size);\n"
30508 "\n"
30509 msgstr ""
30510
30511 #. type: textblock
30512 #: ../src/guestfs-actions.pod:6504
30513 msgid ""
30514 "This command is the same as C<guestfs_resize2fs> except that it allows you "
30515 "to specify the new size (in bytes) explicitly."
30516 msgstr ""
30517
30518 #. type: =head2
30519 #: ../src/guestfs-actions.pod:6511
30520 msgid "guestfs_rm"
30521 msgstr ""
30522
30523 #. type: verbatim
30524 #: ../src/guestfs-actions.pod:6513
30525 #, no-wrap
30526 msgid ""
30527 " int\n"
30528 " guestfs_rm (guestfs_h *g,\n"
30529 "             const char *path);\n"
30530 "\n"
30531 msgstr ""
30532
30533 #. type: =head2
30534 #: ../src/guestfs-actions.pod:6523
30535 msgid "guestfs_rm_rf"
30536 msgstr ""
30537
30538 #. type: verbatim
30539 #: ../src/guestfs-actions.pod:6525
30540 #, no-wrap
30541 msgid ""
30542 " int\n"
30543 " guestfs_rm_rf (guestfs_h *g,\n"
30544 "                const char *path);\n"
30545 "\n"
30546 msgstr ""
30547
30548 #. type: =head2
30549 #: ../src/guestfs-actions.pod:6537
30550 msgid "guestfs_rmdir"
30551 msgstr ""
30552
30553 #. type: verbatim
30554 #: ../src/guestfs-actions.pod:6539
30555 #, no-wrap
30556 msgid ""
30557 " int\n"
30558 " guestfs_rmdir (guestfs_h *g,\n"
30559 "                const char *path);\n"
30560 "\n"
30561 msgstr ""
30562
30563 #. type: =head2
30564 #: ../src/guestfs-actions.pod:6549
30565 msgid "guestfs_rmmountpoint"
30566 msgstr ""
30567
30568 #. type: verbatim
30569 #: ../src/guestfs-actions.pod:6551
30570 #, no-wrap
30571 msgid ""
30572 " int\n"
30573 " guestfs_rmmountpoint (guestfs_h *g,\n"
30574 "                       const char *exemptpath);\n"
30575 "\n"
30576 msgstr ""
30577
30578 #. type: textblock
30579 #: ../src/guestfs-actions.pod:6555
30580 msgid ""
30581 "This calls removes a mountpoint that was previously created with "
30582 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
30583 msgstr ""
30584
30585 #. type: =head2
30586 #: ../src/guestfs-actions.pod:6563
30587 msgid "guestfs_scrub_device"
30588 msgstr ""
30589
30590 #. type: verbatim
30591 #: ../src/guestfs-actions.pod:6565
30592 #, no-wrap
30593 msgid ""
30594 " int\n"
30595 " guestfs_scrub_device (guestfs_h *g,\n"
30596 "                       const char *device);\n"
30597 "\n"
30598 msgstr ""
30599
30600 #. type: textblock
30601 #: ../src/guestfs-actions.pod:6580 ../src/guestfs-actions.pod:6598 ../src/guestfs-actions.pod:6617
30602 msgid "(Added in 1.0.52)"
30603 msgstr ""
30604
30605 #. type: =head2
30606 #: ../src/guestfs-actions.pod:6582
30607 msgid "guestfs_scrub_file"
30608 msgstr ""
30609
30610 #. type: verbatim
30611 #: ../src/guestfs-actions.pod:6584
30612 #, no-wrap
30613 msgid ""
30614 " int\n"
30615 " guestfs_scrub_file (guestfs_h *g,\n"
30616 "                     const char *file);\n"
30617 "\n"
30618 msgstr ""
30619
30620 #. type: =head2
30621 #: ../src/guestfs-actions.pod:6600
30622 msgid "guestfs_scrub_freespace"
30623 msgstr ""
30624
30625 #. type: verbatim
30626 #: ../src/guestfs-actions.pod:6602
30627 #, no-wrap
30628 msgid ""
30629 " int\n"
30630 " guestfs_scrub_freespace (guestfs_h *g,\n"
30631 "                          const char *dir);\n"
30632 "\n"
30633 msgstr ""
30634
30635 #. type: textblock
30636 #: ../src/guestfs-actions.pod:6606
30637 msgid ""
30638 "This command creates the directory C<dir> and then fills it with files until "
30639 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
30640 "and deletes them.  The intention is to scrub any free space on the partition "
30641 "containing C<dir>."
30642 msgstr ""
30643
30644 #. type: =head2
30645 #: ../src/guestfs-actions.pod:6619
30646 msgid "guestfs_set_append"
30647 msgstr ""
30648
30649 #. type: verbatim
30650 #: ../src/guestfs-actions.pod:6621
30651 #, no-wrap
30652 msgid ""
30653 " int\n"
30654 " guestfs_set_append (guestfs_h *g,\n"
30655 "                     const char *append);\n"
30656 "\n"
30657 msgstr ""
30658
30659 #. type: =head2
30660 #: ../src/guestfs-actions.pod:6638
30661 msgid "guestfs_set_attach_method"
30662 msgstr ""
30663
30664 #. type: verbatim
30665 #: ../src/guestfs-actions.pod:6640
30666 #, no-wrap
30667 msgid ""
30668 " int\n"
30669 " guestfs_set_attach_method (guestfs_h *g,\n"
30670 "                            const char *attachmethod);\n"
30671 "\n"
30672 msgstr ""
30673
30674 #. type: =head2
30675 #: ../src/guestfs-actions.pod:6668
30676 msgid "guestfs_set_autosync"
30677 msgstr ""
30678
30679 #. type: verbatim
30680 #: ../src/guestfs-actions.pod:6670
30681 #, no-wrap
30682 msgid ""
30683 " int\n"
30684 " guestfs_set_autosync (guestfs_h *g,\n"
30685 "                       int autosync);\n"
30686 "\n"
30687 msgstr ""
30688
30689 #. type: =head2
30690 #: ../src/guestfs-actions.pod:6686
30691 msgid "guestfs_set_direct"
30692 msgstr ""
30693
30694 #. type: verbatim
30695 #: ../src/guestfs-actions.pod:6688
30696 #, no-wrap
30697 msgid ""
30698 " int\n"
30699 " guestfs_set_direct (guestfs_h *g,\n"
30700 "                     int direct);\n"
30701 "\n"
30702 msgstr ""
30703
30704 #. type: textblock
30705 #: ../src/guestfs-actions.pod:6696
30706 msgid ""
30707 "One consequence of this is that log messages aren't caught by the library "
30708 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
30709 "stdout."
30710 msgstr ""
30711
30712 #. type: =head2
30713 #: ../src/guestfs-actions.pod:6709
30714 msgid "guestfs_set_e2label"
30715 msgstr ""
30716
30717 #. type: verbatim
30718 #: ../src/guestfs-actions.pod:6711
30719 #, no-wrap
30720 msgid ""
30721 " int\n"
30722 " guestfs_set_e2label (guestfs_h *g,\n"
30723 "                      const char *device,\n"
30724 "                      const char *label);\n"
30725 "\n"
30726 msgstr ""
30727
30728 #. type: textblock
30729 #: ../src/guestfs-actions.pod:6720
30730 msgid ""
30731 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
30732 "the existing label on a filesystem."
30733 msgstr ""
30734
30735 #. type: =head2
30736 #: ../src/guestfs-actions.pod:6727
30737 msgid "guestfs_set_e2uuid"
30738 msgstr ""
30739
30740 #. type: verbatim
30741 #: ../src/guestfs-actions.pod:6729
30742 #, no-wrap
30743 msgid ""
30744 " int\n"
30745 " guestfs_set_e2uuid (guestfs_h *g,\n"
30746 "                     const char *device,\n"
30747 "                     const char *uuid);\n"
30748 "\n"
30749 msgstr ""
30750
30751 #. type: textblock
30752 #: ../src/guestfs-actions.pod:6739
30753 msgid ""
30754 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
30755 "the existing UUID of a filesystem."
30756 msgstr ""
30757
30758 #. type: =head2
30759 #: ../src/guestfs-actions.pod:6746
30760 msgid "guestfs_set_memsize"
30761 msgstr ""
30762
30763 #. type: verbatim
30764 #: ../src/guestfs-actions.pod:6748
30765 #, no-wrap
30766 msgid ""
30767 " int\n"
30768 " guestfs_set_memsize (guestfs_h *g,\n"
30769 "                      int memsize);\n"
30770 "\n"
30771 msgstr ""
30772
30773 #. type: textblock
30774 #: ../src/guestfs-actions.pod:6752
30775 msgid ""
30776 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
30777 "This only has any effect if called before C<guestfs_launch>."
30778 msgstr ""
30779
30780 #. type: =head2
30781 #: ../src/guestfs-actions.pod:6767
30782 msgid "guestfs_set_network"
30783 msgstr ""
30784
30785 #. type: verbatim
30786 #: ../src/guestfs-actions.pod:6769
30787 #, no-wrap
30788 msgid ""
30789 " int\n"
30790 " guestfs_set_network (guestfs_h *g,\n"
30791 "                      int network);\n"
30792 "\n"
30793 msgstr ""
30794
30795 #. type: textblock
30796 #: ../src/guestfs-actions.pod:6779
30797 msgid ""
30798 "You must call this before calling C<guestfs_launch>, otherwise it has no "
30799 "effect."
30800 msgstr ""
30801
30802 #. type: =head2
30803 #: ../src/guestfs-actions.pod:6786
30804 msgid "guestfs_set_path"
30805 msgstr ""
30806
30807 #. type: verbatim
30808 #: ../src/guestfs-actions.pod:6788
30809 #, no-wrap
30810 msgid ""
30811 " int\n"
30812 " guestfs_set_path (guestfs_h *g,\n"
30813 "                   const char *searchpath);\n"
30814 "\n"
30815 msgstr ""
30816
30817 #. type: =head2
30818 #: ../src/guestfs-actions.pod:6803
30819 msgid "guestfs_set_pgroup"
30820 msgstr ""
30821
30822 #. type: verbatim
30823 #: ../src/guestfs-actions.pod:6805
30824 #, no-wrap
30825 msgid ""
30826 " int\n"
30827 " guestfs_set_pgroup (guestfs_h *g,\n"
30828 "                     int pgroup);\n"
30829 "\n"
30830 msgstr ""
30831
30832 #. type: =head2
30833 #: ../src/guestfs-actions.pod:6822
30834 msgid "guestfs_set_qemu"
30835 msgstr ""
30836
30837 #. type: verbatim
30838 #: ../src/guestfs-actions.pod:6824
30839 #, no-wrap
30840 msgid ""
30841 " int\n"
30842 " guestfs_set_qemu (guestfs_h *g,\n"
30843 "                   const char *qemu);\n"
30844 "\n"
30845 msgstr ""
30846
30847 #. type: =head2
30848 #: ../src/guestfs-actions.pod:6850
30849 msgid "guestfs_set_recovery_proc"
30850 msgstr ""
30851
30852 #. type: verbatim
30853 #: ../src/guestfs-actions.pod:6852
30854 #, no-wrap
30855 msgid ""
30856 " int\n"
30857 " guestfs_set_recovery_proc (guestfs_h *g,\n"
30858 "                            int recoveryproc);\n"
30859 "\n"
30860 msgstr ""
30861
30862 #. type: textblock
30863 #: ../src/guestfs-actions.pod:6856
30864 msgid ""
30865 "If this is called with the parameter C<false> then C<guestfs_launch> does "
30866 "not create a recovery process.  The purpose of the recovery process is to "
30867 "stop runaway qemu processes in the case where the main program aborts "
30868 "abruptly."
30869 msgstr ""
30870
30871 #. type: textblock
30872 #: ../src/guestfs-actions.pod:6861
30873 msgid ""
30874 "This only has any effect if called before C<guestfs_launch>, and the default "
30875 "is true."
30876 msgstr ""
30877
30878 #. type: =head2
30879 #: ../src/guestfs-actions.pod:6874
30880 msgid "guestfs_set_selinux"
30881 msgstr ""
30882
30883 #. type: verbatim
30884 #: ../src/guestfs-actions.pod:6876
30885 #, no-wrap
30886 msgid ""
30887 " int\n"
30888 " guestfs_set_selinux (guestfs_h *g,\n"
30889 "                      int selinux);\n"
30890 "\n"
30891 msgstr ""
30892
30893 #. type: =head2
30894 #: ../src/guestfs-actions.pod:6893
30895 msgid "guestfs_set_smp"
30896 msgstr ""
30897
30898 #. type: verbatim
30899 #: ../src/guestfs-actions.pod:6895
30900 #, no-wrap
30901 msgid ""
30902 " int\n"
30903 " guestfs_set_smp (guestfs_h *g,\n"
30904 "                  int smp);\n"
30905 "\n"
30906 msgstr ""
30907
30908 #. type: textblock
30909 #: ../src/guestfs-actions.pod:6903
30910 msgid "This function must be called before C<guestfs_launch>."
30911 msgstr ""
30912
30913 #. type: =head2
30914 #: ../src/guestfs-actions.pod:6909
30915 msgid "guestfs_set_trace"
30916 msgstr ""
30917
30918 #. type: verbatim
30919 #: ../src/guestfs-actions.pod:6911
30920 #, no-wrap
30921 msgid ""
30922 " int\n"
30923 " guestfs_set_trace (guestfs_h *g,\n"
30924 "                    int trace);\n"
30925 "\n"
30926 msgstr ""
30927
30928 #. type: textblock
30929 #: ../src/guestfs-actions.pod:6925
30930 msgid ""
30931 "Trace messages are normally sent to C<stderr>, unless you register a "
30932 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30933 msgstr ""
30934
30935 #. type: =head2
30936 #: ../src/guestfs-actions.pod:6933
30937 msgid "guestfs_set_verbose"
30938 msgstr ""
30939
30940 #. type: verbatim
30941 #: ../src/guestfs-actions.pod:6935
30942 #, no-wrap
30943 msgid ""
30944 " int\n"
30945 " guestfs_set_verbose (guestfs_h *g,\n"
30946 "                      int verbose);\n"
30947 "\n"
30948 msgstr ""
30949
30950 #. type: textblock
30951 #: ../src/guestfs-actions.pod:6944
30952 msgid ""
30953 "Verbose messages are normally sent to C<stderr>, unless you register a "
30954 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30955 msgstr ""
30956
30957 #. type: =head2
30958 #: ../src/guestfs-actions.pod:6952
30959 msgid "guestfs_setcon"
30960 msgstr ""
30961
30962 #. type: verbatim
30963 #: ../src/guestfs-actions.pod:6954
30964 #, no-wrap
30965 msgid ""
30966 " int\n"
30967 " guestfs_setcon (guestfs_h *g,\n"
30968 "                 const char *context);\n"
30969 "\n"
30970 msgstr ""
30971
30972 #. type: =head2
30973 #: ../src/guestfs-actions.pod:6967
30974 msgid "guestfs_setxattr"
30975 msgstr ""
30976
30977 #. type: verbatim
30978 #: ../src/guestfs-actions.pod:6969
30979 #, no-wrap
30980 msgid ""
30981 " int\n"
30982 " guestfs_setxattr (guestfs_h *g,\n"
30983 "                   const char *xattr,\n"
30984 "                   const char *val,\n"
30985 "                   int vallen,\n"
30986 "                   const char *path);\n"
30987 "\n"
30988 msgstr ""
30989
30990 #. type: textblock
30991 #: ../src/guestfs-actions.pod:6980
30992 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
30993 msgstr ""
30994
30995 #. type: =head2
30996 #: ../src/guestfs-actions.pod:6986
30997 msgid "guestfs_sfdisk"
30998 msgstr ""
30999
31000 #. type: verbatim
31001 #: ../src/guestfs-actions.pod:6988
31002 #, no-wrap
31003 msgid ""
31004 " int\n"
31005 " guestfs_sfdisk (guestfs_h *g,\n"
31006 "                 const char *device,\n"
31007 "                 int cyls,\n"
31008 "                 int heads,\n"
31009 "                 int sectors,\n"
31010 "                 char *const *lines);\n"
31011 "\n"
31012 msgstr ""
31013
31014 #. type: textblock
31015 #: ../src/guestfs-actions.pod:6996 ../src/guestfs-actions.pod:7040 ../src/guestfs-actions.pod:7074
31016 msgid ""
31017 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
31018 "call instead."
31019 msgstr ""
31020
31021 #. type: textblock
31022 #: ../src/guestfs-actions.pod:7023
31023 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
31024 msgstr ""
31025
31026 #. type: =head2
31027 #: ../src/guestfs-actions.pod:7033
31028 msgid "guestfs_sfdiskM"
31029 msgstr ""
31030
31031 #. type: verbatim
31032 #: ../src/guestfs-actions.pod:7035
31033 #, no-wrap
31034 msgid ""
31035 " int\n"
31036 " guestfs_sfdiskM (guestfs_h *g,\n"
31037 "                  const char *device,\n"
31038 "                  char *const *lines);\n"
31039 "\n"
31040 msgstr ""
31041
31042 #. type: textblock
31043 #: ../src/guestfs-actions.pod:7047
31044 msgid ""
31045 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
31046 "partition sizes are specified in megabytes only (rounded to the nearest "
31047 "cylinder) and you don't need to specify the cyls, heads and sectors "
31048 "parameters which were rarely if ever used anyway."
31049 msgstr ""
31050
31051 #. type: textblock
31052 #: ../src/guestfs-actions.pod:7053
31053 msgid ""
31054 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
31055 "C<guestfs_part_disk>"
31056 msgstr ""
31057
31058 #. type: =head2
31059 #: ../src/guestfs-actions.pod:7063
31060 msgid "guestfs_sfdisk_N"
31061 msgstr ""
31062
31063 #. type: verbatim
31064 #: ../src/guestfs-actions.pod:7065
31065 #, no-wrap
31066 msgid ""
31067 " int\n"
31068 " guestfs_sfdisk_N (guestfs_h *g,\n"
31069 "                   const char *device,\n"
31070 "                   int partnum,\n"
31071 "                   int cyls,\n"
31072 "                   int heads,\n"
31073 "                   int sectors,\n"
31074 "                   const char *line);\n"
31075 "\n"
31076 msgstr ""
31077
31078 #. type: textblock
31079 #: ../src/guestfs-actions.pod:7084
31080 msgid ""
31081 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
31082 "for the cyls/heads/sectors parameters."
31083 msgstr ""
31084
31085 #. type: textblock
31086 #: ../src/guestfs-actions.pod:7087
31087 msgid "See also: C<guestfs_part_add>"
31088 msgstr ""
31089
31090 #. type: =head2
31091 #: ../src/guestfs-actions.pod:7096
31092 msgid "guestfs_sfdisk_disk_geometry"
31093 msgstr ""
31094
31095 #. type: verbatim
31096 #: ../src/guestfs-actions.pod:7098
31097 #, no-wrap
31098 msgid ""
31099 " char *\n"
31100 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
31101 "                               const char *device);\n"
31102 "\n"
31103 msgstr ""
31104
31105 #. type: textblock
31106 #: ../src/guestfs-actions.pod:7102
31107 msgid ""
31108 "This displays the disk geometry of C<device> read from the partition table.  "
31109 "Especially in the case where the underlying block device has been resized, "
31110 "this can be different from the kernel's idea of the geometry (see "
31111 "C<guestfs_sfdisk_kernel_geometry>)."
31112 msgstr ""
31113
31114 #. type: =head2
31115 #: ../src/guestfs-actions.pod:7115
31116 msgid "guestfs_sfdisk_kernel_geometry"
31117 msgstr ""
31118
31119 #. type: verbatim
31120 #: ../src/guestfs-actions.pod:7117
31121 #, no-wrap
31122 msgid ""
31123 " char *\n"
31124 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
31125 "                                 const char *device);\n"
31126 "\n"
31127 msgstr ""
31128
31129 #. type: =head2
31130 #: ../src/guestfs-actions.pod:7131
31131 msgid "guestfs_sfdisk_l"
31132 msgstr ""
31133
31134 #. type: verbatim
31135 #: ../src/guestfs-actions.pod:7133
31136 #, no-wrap
31137 msgid ""
31138 " char *\n"
31139 " guestfs_sfdisk_l (guestfs_h *g,\n"
31140 "                   const char *device);\n"
31141 "\n"
31142 msgstr ""
31143
31144 #. type: textblock
31145 #: ../src/guestfs-actions.pod:7137
31146 msgid ""
31147 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
31148 "call instead."
31149 msgstr ""
31150
31151 #. type: textblock
31152 #: ../src/guestfs-actions.pod:7148
31153 msgid "See also: C<guestfs_part_list>"
31154 msgstr ""
31155
31156 #. type: =head2
31157 #: ../src/guestfs-actions.pod:7155
31158 msgid "guestfs_sh"
31159 msgstr ""
31160
31161 #. type: verbatim
31162 #: ../src/guestfs-actions.pod:7157
31163 #, no-wrap
31164 msgid ""
31165 " char *\n"
31166 " guestfs_sh (guestfs_h *g,\n"
31167 "             const char *command);\n"
31168 "\n"
31169 msgstr ""
31170
31171 #. type: textblock
31172 #: ../src/guestfs-actions.pod:7164
31173 msgid "This is like C<guestfs_command>, but passes the command to:"
31174 msgstr ""
31175
31176 #. type: textblock
31177 #: ../src/guestfs-actions.pod:7172
31178 msgid "All the provisos about C<guestfs_command> apply to this call."
31179 msgstr ""
31180
31181 #. type: =head2
31182 #: ../src/guestfs-actions.pod:7179
31183 msgid "guestfs_sh_lines"
31184 msgstr ""
31185
31186 #. type: verbatim
31187 #: ../src/guestfs-actions.pod:7181
31188 #, no-wrap
31189 msgid ""
31190 " char **\n"
31191 " guestfs_sh_lines (guestfs_h *g,\n"
31192 "                   const char *command);\n"
31193 "\n"
31194 msgstr ""
31195
31196 #. type: textblock
31197 #: ../src/guestfs-actions.pod:7185
31198 msgid ""
31199 "This is the same as C<guestfs_sh>, but splits the result into a list of "
31200 "lines."
31201 msgstr ""
31202
31203 #. type: textblock
31204 #: ../src/guestfs-actions.pod:7188
31205 msgid "See also: C<guestfs_command_lines>"
31206 msgstr ""
31207
31208 #. type: =head2
31209 #: ../src/guestfs-actions.pod:7196
31210 msgid "guestfs_sleep"
31211 msgstr ""
31212
31213 #. type: verbatim
31214 #: ../src/guestfs-actions.pod:7198
31215 #, no-wrap
31216 msgid ""
31217 " int\n"
31218 " guestfs_sleep (guestfs_h *g,\n"
31219 "                int secs);\n"
31220 "\n"
31221 msgstr ""
31222
31223 #. type: textblock
31224 #: ../src/guestfs-actions.pod:7206
31225 msgid "(Added in 1.0.41)"
31226 msgstr ""
31227
31228 #. type: =head2
31229 #: ../src/guestfs-actions.pod:7208 ../src/guestfs-structs.pod:109
31230 msgid "guestfs_stat"
31231 msgstr ""
31232
31233 #. type: verbatim
31234 #: ../src/guestfs-actions.pod:7210
31235 #, no-wrap
31236 msgid ""
31237 " struct guestfs_stat *\n"
31238 " guestfs_stat (guestfs_h *g,\n"
31239 "               const char *path);\n"
31240 "\n"
31241 msgstr ""
31242
31243 #. type: =head2
31244 #: ../src/guestfs-actions.pod:7224 ../src/guestfs-structs.pod:135
31245 msgid "guestfs_statvfs"
31246 msgstr ""
31247
31248 #. type: verbatim
31249 #: ../src/guestfs-actions.pod:7226
31250 #, no-wrap
31251 msgid ""
31252 " struct guestfs_statvfs *\n"
31253 " guestfs_statvfs (guestfs_h *g,\n"
31254 "                  const char *path);\n"
31255 "\n"
31256 msgstr ""
31257
31258 #. type: textblock
31259 #: ../src/guestfs-actions.pod:7236
31260 msgid ""
31261 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
31262 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
31263 msgstr ""
31264
31265 #. type: =head2
31266 #: ../src/guestfs-actions.pod:7242
31267 msgid "guestfs_strings"
31268 msgstr ""
31269
31270 #. type: verbatim
31271 #: ../src/guestfs-actions.pod:7244
31272 #, no-wrap
31273 msgid ""
31274 " char **\n"
31275 " guestfs_strings (guestfs_h *g,\n"
31276 "                  const char *path);\n"
31277 "\n"
31278 msgstr ""
31279
31280 #. type: =head2
31281 #: ../src/guestfs-actions.pod:7260
31282 msgid "guestfs_strings_e"
31283 msgstr ""
31284
31285 #. type: verbatim
31286 #: ../src/guestfs-actions.pod:7262
31287 #, no-wrap
31288 msgid ""
31289 " char **\n"
31290 " guestfs_strings_e (guestfs_h *g,\n"
31291 "                    const char *encoding,\n"
31292 "                    const char *path);\n"
31293 "\n"
31294 msgstr ""
31295
31296 #. type: textblock
31297 #: ../src/guestfs-actions.pod:7267
31298 msgid ""
31299 "This is like the C<guestfs_strings> command, but allows you to specify the "
31300 "encoding of strings that are looked for in the source file C<path>."
31301 msgstr ""
31302
31303 #. type: textblock
31304 #: ../src/guestfs-actions.pod:7277
31305 msgid ""
31306 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
31307 "ISO-8859-X (this is what C<guestfs_strings> uses)."
31308 msgstr ""
31309
31310 #. type: =head2
31311 #: ../src/guestfs-actions.pod:7315
31312 msgid "guestfs_swapoff_device"
31313 msgstr ""
31314
31315 #. type: verbatim
31316 #: ../src/guestfs-actions.pod:7317
31317 #, no-wrap
31318 msgid ""
31319 " int\n"
31320 " guestfs_swapoff_device (guestfs_h *g,\n"
31321 "                         const char *device);\n"
31322 "\n"
31323 msgstr ""
31324
31325 #. type: textblock
31326 #: ../src/guestfs-actions.pod:7321
31327 msgid ""
31328 "This command disables the libguestfs appliance swap device or partition "
31329 "named C<device>.  See C<guestfs_swapon_device>."
31330 msgstr ""
31331
31332 #. type: =head2
31333 #: ../src/guestfs-actions.pod:7329
31334 msgid "guestfs_swapoff_file"
31335 msgstr ""
31336
31337 #. type: verbatim
31338 #: ../src/guestfs-actions.pod:7331
31339 #, no-wrap
31340 msgid ""
31341 " int\n"
31342 " guestfs_swapoff_file (guestfs_h *g,\n"
31343 "                       const char *file);\n"
31344 "\n"
31345 msgstr ""
31346
31347 #. type: =head2
31348 #: ../src/guestfs-actions.pod:7341
31349 msgid "guestfs_swapoff_label"
31350 msgstr ""
31351
31352 #. type: verbatim
31353 #: ../src/guestfs-actions.pod:7343
31354 #, no-wrap
31355 msgid ""
31356 " int\n"
31357 " guestfs_swapoff_label (guestfs_h *g,\n"
31358 "                        const char *label);\n"
31359 "\n"
31360 msgstr ""
31361
31362 #. type: =head2
31363 #: ../src/guestfs-actions.pod:7354
31364 msgid "guestfs_swapoff_uuid"
31365 msgstr ""
31366
31367 #. type: verbatim
31368 #: ../src/guestfs-actions.pod:7356
31369 #, no-wrap
31370 msgid ""
31371 " int\n"
31372 " guestfs_swapoff_uuid (guestfs_h *g,\n"
31373 "                       const char *uuid);\n"
31374 "\n"
31375 msgstr ""
31376
31377 #. type: =head2
31378 #: ../src/guestfs-actions.pod:7367
31379 msgid "guestfs_swapon_device"
31380 msgstr ""
31381
31382 #. type: verbatim
31383 #: ../src/guestfs-actions.pod:7369
31384 #, no-wrap
31385 msgid ""
31386 " int\n"
31387 " guestfs_swapon_device (guestfs_h *g,\n"
31388 "                        const char *device);\n"
31389 "\n"
31390 msgstr ""
31391
31392 #. type: textblock
31393 #: ../src/guestfs-actions.pod:7373
31394 msgid ""
31395 "This command enables the libguestfs appliance to use the swap device or "
31396 "partition named C<device>.  The increased memory is made available for all "
31397 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
31398 msgstr ""
31399
31400 #. type: =head2
31401 #: ../src/guestfs-actions.pod:7389
31402 msgid "guestfs_swapon_file"
31403 msgstr ""
31404
31405 #. type: verbatim
31406 #: ../src/guestfs-actions.pod:7391
31407 #, no-wrap
31408 msgid ""
31409 " int\n"
31410 " guestfs_swapon_file (guestfs_h *g,\n"
31411 "                      const char *file);\n"
31412 "\n"
31413 msgstr ""
31414
31415 #. type: textblock
31416 #: ../src/guestfs-actions.pod:7395
31417 msgid ""
31418 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
31419 "notes."
31420 msgstr ""
31421
31422 #. type: =head2
31423 #: ../src/guestfs-actions.pod:7402
31424 msgid "guestfs_swapon_label"
31425 msgstr ""
31426
31427 #. type: verbatim
31428 #: ../src/guestfs-actions.pod:7404
31429 #, no-wrap
31430 msgid ""
31431 " int\n"
31432 " guestfs_swapon_label (guestfs_h *g,\n"
31433 "                       const char *label);\n"
31434 "\n"
31435 msgstr ""
31436
31437 #. type: textblock
31438 #: ../src/guestfs-actions.pod:7408
31439 msgid ""
31440 "This command enables swap to a labeled swap partition.  See "
31441 "C<guestfs_swapon_device> for other notes."
31442 msgstr ""
31443
31444 #. type: =head2
31445 #: ../src/guestfs-actions.pod:7415
31446 msgid "guestfs_swapon_uuid"
31447 msgstr ""
31448
31449 #. type: verbatim
31450 #: ../src/guestfs-actions.pod:7417
31451 #, no-wrap
31452 msgid ""
31453 " int\n"
31454 " guestfs_swapon_uuid (guestfs_h *g,\n"
31455 "                      const char *uuid);\n"
31456 "\n"
31457 msgstr ""
31458
31459 #. type: textblock
31460 #: ../src/guestfs-actions.pod:7421
31461 msgid ""
31462 "This command enables swap to a swap partition with the given UUID.  See "
31463 "C<guestfs_swapon_device> for other notes."
31464 msgstr ""
31465
31466 #. type: =head2
31467 #: ../src/guestfs-actions.pod:7428
31468 msgid "guestfs_sync"
31469 msgstr ""
31470
31471 #. type: verbatim
31472 #: ../src/guestfs-actions.pod:7430
31473 #, no-wrap
31474 msgid ""
31475 " int\n"
31476 " guestfs_sync (guestfs_h *g);\n"
31477 "\n"
31478 msgstr ""
31479
31480 #. type: =head2
31481 #: ../src/guestfs-actions.pod:7443
31482 msgid "guestfs_tail"
31483 msgstr ""
31484
31485 #. type: verbatim
31486 #: ../src/guestfs-actions.pod:7445
31487 #, no-wrap
31488 msgid ""
31489 " char **\n"
31490 " guestfs_tail (guestfs_h *g,\n"
31491 "               const char *path);\n"
31492 "\n"
31493 msgstr ""
31494
31495 #. type: =head2
31496 #: ../src/guestfs-actions.pod:7461
31497 msgid "guestfs_tail_n"
31498 msgstr ""
31499
31500 #. type: verbatim
31501 #: ../src/guestfs-actions.pod:7463
31502 #, no-wrap
31503 msgid ""
31504 " char **\n"
31505 " guestfs_tail_n (guestfs_h *g,\n"
31506 "                 int nrlines,\n"
31507 "                 const char *path);\n"
31508 "\n"
31509 msgstr ""
31510
31511 #. type: =head2
31512 #: ../src/guestfs-actions.pod:7485
31513 msgid "guestfs_tar_in"
31514 msgstr ""
31515
31516 #. type: verbatim
31517 #: ../src/guestfs-actions.pod:7487
31518 #, no-wrap
31519 msgid ""
31520 " int\n"
31521 " guestfs_tar_in (guestfs_h *g,\n"
31522 "                 const char *tarfile,\n"
31523 "                 const char *directory);\n"
31524 "\n"
31525 msgstr ""
31526
31527 #. type: textblock
31528 #: ../src/guestfs-actions.pod:7495
31529 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
31530 msgstr ""
31531
31532 #. type: textblock
31533 #: ../src/guestfs-actions.pod:7500 ../src/guestfs-actions.pod:7517 ../src/guestfs-actions.pod:7533 ../src/guestfs-actions.pod:7549
31534 msgid "(Added in 1.0.3)"
31535 msgstr ""
31536
31537 #. type: =head2
31538 #: ../src/guestfs-actions.pod:7502
31539 msgid "guestfs_tar_out"
31540 msgstr ""
31541
31542 #. type: verbatim
31543 #: ../src/guestfs-actions.pod:7504
31544 #, no-wrap
31545 msgid ""
31546 " int\n"
31547 " guestfs_tar_out (guestfs_h *g,\n"
31548 "                  const char *directory,\n"
31549 "                  const char *tarfile);\n"
31550 "\n"
31551 msgstr ""
31552
31553 #. type: textblock
31554 #: ../src/guestfs-actions.pod:7512
31555 msgid ""
31556 "To download a compressed tarball, use C<guestfs_tgz_out> or "
31557 "C<guestfs_txz_out>."
31558 msgstr ""
31559
31560 #. type: =head2
31561 #: ../src/guestfs-actions.pod:7519
31562 msgid "guestfs_tgz_in"
31563 msgstr ""
31564
31565 #. type: verbatim
31566 #: ../src/guestfs-actions.pod:7521
31567 #, no-wrap
31568 msgid ""
31569 " int\n"
31570 " guestfs_tgz_in (guestfs_h *g,\n"
31571 "                 const char *tarball,\n"
31572 "                 const char *directory);\n"
31573 "\n"
31574 msgstr ""
31575
31576 #. type: textblock
31577 #: ../src/guestfs-actions.pod:7529
31578 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
31579 msgstr ""
31580
31581 #. type: =head2
31582 #: ../src/guestfs-actions.pod:7535
31583 msgid "guestfs_tgz_out"
31584 msgstr ""
31585
31586 #. type: verbatim
31587 #: ../src/guestfs-actions.pod:7537
31588 #, no-wrap
31589 msgid ""
31590 " int\n"
31591 " guestfs_tgz_out (guestfs_h *g,\n"
31592 "                  const char *directory,\n"
31593 "                  const char *tarball);\n"
31594 "\n"
31595 msgstr ""
31596
31597 #. type: textblock
31598 #: ../src/guestfs-actions.pod:7545
31599 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
31600 msgstr ""
31601
31602 #. type: =head2
31603 #: ../src/guestfs-actions.pod:7551
31604 msgid "guestfs_touch"
31605 msgstr ""
31606
31607 #. type: verbatim
31608 #: ../src/guestfs-actions.pod:7553
31609 #, no-wrap
31610 msgid ""
31611 " int\n"
31612 " guestfs_touch (guestfs_h *g,\n"
31613 "                const char *path);\n"
31614 "\n"
31615 msgstr ""
31616
31617 #. type: =head2
31618 #: ../src/guestfs-actions.pod:7568
31619 msgid "guestfs_truncate"
31620 msgstr ""
31621
31622 #. type: verbatim
31623 #: ../src/guestfs-actions.pod:7570
31624 #, no-wrap
31625 msgid ""
31626 " int\n"
31627 " guestfs_truncate (guestfs_h *g,\n"
31628 "                   const char *path);\n"
31629 "\n"
31630 msgstr ""
31631
31632 #. type: =head2
31633 #: ../src/guestfs-actions.pod:7581
31634 msgid "guestfs_truncate_size"
31635 msgstr ""
31636
31637 #. type: verbatim
31638 #: ../src/guestfs-actions.pod:7583
31639 #, no-wrap
31640 msgid ""
31641 " int\n"
31642 " guestfs_truncate_size (guestfs_h *g,\n"
31643 "                        const char *path,\n"
31644 "                        int64_t size);\n"
31645 "\n"
31646 msgstr ""
31647
31648 #. type: textblock
31649 #: ../src/guestfs-actions.pod:7591
31650 msgid ""
31651 "If the current file size is less than C<size> then the file is extended to "
31652 "the required size with zero bytes.  This creates a sparse file (ie. disk "
31653 "blocks are not allocated for the file until you write to it).  To create a "
31654 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
31655 msgstr ""
31656
31657 #. type: =head2
31658 #: ../src/guestfs-actions.pod:7601
31659 msgid "guestfs_tune2fs_l"
31660 msgstr ""
31661
31662 #. type: verbatim
31663 #: ../src/guestfs-actions.pod:7603
31664 #, no-wrap
31665 msgid ""
31666 " char **\n"
31667 " guestfs_tune2fs_l (guestfs_h *g,\n"
31668 "                    const char *device);\n"
31669 "\n"
31670 msgstr ""
31671
31672 #. type: =head2
31673 #: ../src/guestfs-actions.pod:7623
31674 msgid "guestfs_txz_in"
31675 msgstr ""
31676
31677 #. type: verbatim
31678 #: ../src/guestfs-actions.pod:7625
31679 #, no-wrap
31680 msgid ""
31681 " int\n"
31682 " guestfs_txz_in (guestfs_h *g,\n"
31683 "                 const char *tarball,\n"
31684 "                 const char *directory);\n"
31685 "\n"
31686 msgstr ""
31687
31688 #. type: =head2
31689 #: ../src/guestfs-actions.pod:7637
31690 msgid "guestfs_txz_out"
31691 msgstr ""
31692
31693 #. type: verbatim
31694 #: ../src/guestfs-actions.pod:7639
31695 #, no-wrap
31696 msgid ""
31697 " int\n"
31698 " guestfs_txz_out (guestfs_h *g,\n"
31699 "                  const char *directory,\n"
31700 "                  const char *tarball);\n"
31701 "\n"
31702 msgstr ""
31703
31704 #. type: =head2
31705 #: ../src/guestfs-actions.pod:7651
31706 msgid "guestfs_umask"
31707 msgstr ""
31708
31709 #. type: verbatim
31710 #: ../src/guestfs-actions.pod:7653
31711 #, no-wrap
31712 msgid ""
31713 " int\n"
31714 " guestfs_umask (guestfs_h *g,\n"
31715 "                int mask);\n"
31716 "\n"
31717 msgstr ""
31718
31719 #. type: textblock
31720 #: ../src/guestfs-actions.pod:7669
31721 msgid ""
31722 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
31723 "C<guestfs_mkdir>."
31724 msgstr ""
31725
31726 #. type: =head2
31727 #: ../src/guestfs-actions.pod:7678
31728 msgid "guestfs_umount"
31729 msgstr ""
31730
31731 #. type: verbatim
31732 #: ../src/guestfs-actions.pod:7680
31733 #, no-wrap
31734 msgid ""
31735 " int\n"
31736 " guestfs_umount (guestfs_h *g,\n"
31737 "                 const char *pathordevice);\n"
31738 "\n"
31739 msgstr ""
31740
31741 #. type: =head2
31742 #: ../src/guestfs-actions.pod:7692
31743 msgid "guestfs_umount_all"
31744 msgstr ""
31745
31746 #. type: verbatim
31747 #: ../src/guestfs-actions.pod:7694
31748 #, no-wrap
31749 msgid ""
31750 " int\n"
31751 " guestfs_umount_all (guestfs_h *g);\n"
31752 "\n"
31753 msgstr ""
31754
31755 #. type: =head2
31756 #: ../src/guestfs-actions.pod:7705
31757 msgid "guestfs_upload"
31758 msgstr ""
31759
31760 #. type: verbatim
31761 #: ../src/guestfs-actions.pod:7707
31762 #, no-wrap
31763 msgid ""
31764 " int\n"
31765 " guestfs_upload (guestfs_h *g,\n"
31766 "                 const char *filename,\n"
31767 "                 const char *remotefilename);\n"
31768 "\n"
31769 msgstr ""
31770
31771 #. type: textblock
31772 #: ../src/guestfs-actions.pod:7717
31773 msgid "See also C<guestfs_download>."
31774 msgstr ""
31775
31776 #. type: =head2
31777 #: ../src/guestfs-actions.pod:7728
31778 msgid "guestfs_upload_offset"
31779 msgstr ""
31780
31781 #. type: verbatim
31782 #: ../src/guestfs-actions.pod:7730
31783 #, no-wrap
31784 msgid ""
31785 " int\n"
31786 " guestfs_upload_offset (guestfs_h *g,\n"
31787 "                        const char *filename,\n"
31788 "                        const char *remotefilename,\n"
31789 "                        int64_t offset);\n"
31790 "\n"
31791 msgstr ""
31792
31793 #. type: textblock
31794 #: ../src/guestfs-actions.pod:7746
31795 msgid ""
31796 "Note that there is no limit on the amount of data that can be uploaded with "
31797 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
31798 "full amount unless an error occurs."
31799 msgstr ""
31800
31801 #. type: textblock
31802 #: ../src/guestfs-actions.pod:7751
31803 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
31804 msgstr ""
31805
31806 #. type: =head2
31807 #: ../src/guestfs-actions.pod:7762
31808 msgid "guestfs_utimens"
31809 msgstr ""
31810
31811 #. type: verbatim
31812 #: ../src/guestfs-actions.pod:7764
31813 #, no-wrap
31814 msgid ""
31815 " int\n"
31816 " guestfs_utimens (guestfs_h *g,\n"
31817 "                  const char *path,\n"
31818 "                  int64_t atsecs,\n"
31819 "                  int64_t atnsecs,\n"
31820 "                  int64_t mtsecs,\n"
31821 "                  int64_t mtnsecs);\n"
31822 "\n"
31823 msgstr ""
31824
31825 #. type: =head2
31826 #: ../src/guestfs-actions.pod:7793 ../src/guestfs-structs.pod:175
31827 msgid "guestfs_version"
31828 msgstr ""
31829
31830 #. type: verbatim
31831 #: ../src/guestfs-actions.pod:7795
31832 #, no-wrap
31833 msgid ""
31834 " struct guestfs_version *\n"
31835 " guestfs_version (guestfs_h *g);\n"
31836 "\n"
31837 msgstr ""
31838
31839 #. type: textblock
31840 #: ../src/guestfs-actions.pod:7823
31841 msgid ""
31842 "I<Note:> Don't use this call to test for availability of features.  In "
31843 "enterprise distributions we backport features from later versions into "
31844 "earlier versions, making this an unreliable way to test for features.  Use "
31845 "C<guestfs_available> instead."
31846 msgstr ""
31847
31848 #. type: textblock
31849 #: ../src/guestfs-actions.pod:7829
31850 msgid ""
31851 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
31852 "error.  I<The caller must call C<guestfs_free_version> after use>."
31853 msgstr ""
31854
31855 #. type: textblock
31856 #: ../src/guestfs-actions.pod:7833
31857 msgid "(Added in 1.0.58)"
31858 msgstr ""
31859
31860 #. type: =head2
31861 #: ../src/guestfs-actions.pod:7835
31862 msgid "guestfs_vfs_label"
31863 msgstr ""
31864
31865 #. type: verbatim
31866 #: ../src/guestfs-actions.pod:7837
31867 #, no-wrap
31868 msgid ""
31869 " char *\n"
31870 " guestfs_vfs_label (guestfs_h *g,\n"
31871 "                    const char *device);\n"
31872 "\n"
31873 msgstr ""
31874
31875 #. type: textblock
31876 #: ../src/guestfs-actions.pod:7846
31877 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
31878 msgstr ""
31879
31880 #. type: textblock
31881 #: ../src/guestfs-actions.pod:7851 ../src/guestfs-actions.pod:7888
31882 msgid "(Added in 1.3.18)"
31883 msgstr ""
31884
31885 #. type: =head2
31886 #: ../src/guestfs-actions.pod:7853
31887 msgid "guestfs_vfs_type"
31888 msgstr ""
31889
31890 #. type: verbatim
31891 #: ../src/guestfs-actions.pod:7855
31892 #, no-wrap
31893 msgid ""
31894 " char *\n"
31895 " guestfs_vfs_type (guestfs_h *g,\n"
31896 "                   const char *device);\n"
31897 "\n"
31898 msgstr ""
31899
31900 #. type: =head2
31901 #: ../src/guestfs-actions.pod:7872
31902 msgid "guestfs_vfs_uuid"
31903 msgstr ""
31904
31905 #. type: verbatim
31906 #: ../src/guestfs-actions.pod:7874
31907 #, no-wrap
31908 msgid ""
31909 " char *\n"
31910 " guestfs_vfs_uuid (guestfs_h *g,\n"
31911 "                   const char *device);\n"
31912 "\n"
31913 msgstr ""
31914
31915 #. type: textblock
31916 #: ../src/guestfs-actions.pod:7883
31917 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
31918 msgstr ""
31919
31920 #. type: =head2
31921 #: ../src/guestfs-actions.pod:7890
31922 msgid "guestfs_vg_activate"
31923 msgstr ""
31924
31925 #. type: verbatim
31926 #: ../src/guestfs-actions.pod:7892
31927 #, no-wrap
31928 msgid ""
31929 " int\n"
31930 " guestfs_vg_activate (guestfs_h *g,\n"
31931 "                      int activate,\n"
31932 "                      char *const *volgroups);\n"
31933 "\n"
31934 msgstr ""
31935
31936 #. type: =head2
31937 #: ../src/guestfs-actions.pod:7909
31938 msgid "guestfs_vg_activate_all"
31939 msgstr ""
31940
31941 #. type: verbatim
31942 #: ../src/guestfs-actions.pod:7911
31943 #, no-wrap
31944 msgid ""
31945 " int\n"
31946 " guestfs_vg_activate_all (guestfs_h *g,\n"
31947 "                          int activate);\n"
31948 "\n"
31949 msgstr ""
31950
31951 #. type: =head2
31952 #: ../src/guestfs-actions.pod:7924
31953 msgid "guestfs_vgcreate"
31954 msgstr ""
31955
31956 #. type: verbatim
31957 #: ../src/guestfs-actions.pod:7926
31958 #, no-wrap
31959 msgid ""
31960 " int\n"
31961 " guestfs_vgcreate (guestfs_h *g,\n"
31962 "                   const char *volgroup,\n"
31963 "                   char *const *physvols);\n"
31964 "\n"
31965 msgstr ""
31966
31967 #. type: =head2
31968 #: ../src/guestfs-actions.pod:7938
31969 msgid "guestfs_vglvuuids"
31970 msgstr ""
31971
31972 #. type: verbatim
31973 #: ../src/guestfs-actions.pod:7940
31974 #, no-wrap
31975 msgid ""
31976 " char **\n"
31977 " guestfs_vglvuuids (guestfs_h *g,\n"
31978 "                    const char *vgname);\n"
31979 "\n"
31980 msgstr ""
31981
31982 #. type: textblock
31983 #: ../src/guestfs-actions.pod:7947
31984 msgid ""
31985 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
31986 "associate logical volumes and volume groups."
31987 msgstr ""
31988
31989 #. type: textblock
31990 #: ../src/guestfs-actions.pod:7950
31991 msgid "See also C<guestfs_vgpvuuids>."
31992 msgstr ""
31993
31994 #. type: =head2
31995 #: ../src/guestfs-actions.pod:7958
31996 msgid "guestfs_vgpvuuids"
31997 msgstr ""
31998
31999 #. type: verbatim
32000 #: ../src/guestfs-actions.pod:7960
32001 #, no-wrap
32002 msgid ""
32003 " char **\n"
32004 " guestfs_vgpvuuids (guestfs_h *g,\n"
32005 "                    const char *vgname);\n"
32006 "\n"
32007 msgstr ""
32008
32009 #. type: textblock
32010 #: ../src/guestfs-actions.pod:7967
32011 msgid ""
32012 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
32013 "associate physical volumes and volume groups."
32014 msgstr ""
32015
32016 #. type: textblock
32017 #: ../src/guestfs-actions.pod:7970
32018 msgid "See also C<guestfs_vglvuuids>."
32019 msgstr ""
32020
32021 #. type: =head2
32022 #: ../src/guestfs-actions.pod:7978
32023 msgid "guestfs_vgremove"
32024 msgstr ""
32025
32026 #. type: verbatim
32027 #: ../src/guestfs-actions.pod:7980
32028 #, no-wrap
32029 msgid ""
32030 " int\n"
32031 " guestfs_vgremove (guestfs_h *g,\n"
32032 "                   const char *vgname);\n"
32033 "\n"
32034 msgstr ""
32035
32036 #. type: =head2
32037 #: ../src/guestfs-actions.pod:7993
32038 msgid "guestfs_vgrename"
32039 msgstr ""
32040
32041 #. type: verbatim
32042 #: ../src/guestfs-actions.pod:7995
32043 #, no-wrap
32044 msgid ""
32045 " int\n"
32046 " guestfs_vgrename (guestfs_h *g,\n"
32047 "                   const char *volgroup,\n"
32048 "                   const char *newvolgroup);\n"
32049 "\n"
32050 msgstr ""
32051
32052 #. type: =head2
32053 #: ../src/guestfs-actions.pod:8006
32054 msgid "guestfs_vgs"
32055 msgstr ""
32056
32057 #. type: verbatim
32058 #: ../src/guestfs-actions.pod:8008
32059 #, no-wrap
32060 msgid ""
32061 " char **\n"
32062 " guestfs_vgs (guestfs_h *g);\n"
32063 "\n"
32064 msgstr ""
32065
32066 #. type: textblock
32067 #: ../src/guestfs-actions.pod:8017
32068 msgid "See also C<guestfs_vgs_full>."
32069 msgstr ""
32070
32071 #. type: =head2
32072 #: ../src/guestfs-actions.pod:8025
32073 msgid "guestfs_vgs_full"
32074 msgstr ""
32075
32076 #. type: verbatim
32077 #: ../src/guestfs-actions.pod:8027
32078 #, no-wrap
32079 msgid ""
32080 " struct guestfs_lvm_vg_list *\n"
32081 " guestfs_vgs_full (guestfs_h *g);\n"
32082 "\n"
32083 msgstr ""
32084
32085 #. type: textblock
32086 #: ../src/guestfs-actions.pod:8033
32087 msgid ""
32088 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
32089 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
32090 "use>."
32091 msgstr ""
32092
32093 #. type: =head2
32094 #: ../src/guestfs-actions.pod:8039
32095 msgid "guestfs_vgscan"
32096 msgstr ""
32097
32098 #. type: verbatim
32099 #: ../src/guestfs-actions.pod:8041
32100 #, no-wrap
32101 msgid ""
32102 " int\n"
32103 " guestfs_vgscan (guestfs_h *g);\n"
32104 "\n"
32105 msgstr ""
32106
32107 #. type: =head2
32108 #: ../src/guestfs-actions.pod:8051
32109 msgid "guestfs_vguuid"
32110 msgstr ""
32111
32112 #. type: verbatim
32113 #: ../src/guestfs-actions.pod:8053
32114 #, no-wrap
32115 msgid ""
32116 " char *\n"
32117 " guestfs_vguuid (guestfs_h *g,\n"
32118 "                 const char *vgname);\n"
32119 "\n"
32120 msgstr ""
32121
32122 #. type: =head2
32123 #: ../src/guestfs-actions.pod:8064
32124 msgid "guestfs_wait_ready"
32125 msgstr ""
32126
32127 #. type: verbatim
32128 #: ../src/guestfs-actions.pod:8066
32129 #, no-wrap
32130 msgid ""
32131 " int\n"
32132 " guestfs_wait_ready (guestfs_h *g);\n"
32133 "\n"
32134 msgstr ""
32135
32136 #. type: textblock
32137 #: ../src/guestfs-actions.pod:8069
32138 msgid ""
32139 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
32140 "instead."
32141 msgstr ""
32142
32143 #. type: textblock
32144 #: ../src/guestfs-actions.pod:8076
32145 msgid "This function is a no op."
32146 msgstr ""
32147
32148 #. type: textblock
32149 #: ../src/guestfs-actions.pod:8078
32150 msgid ""
32151 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
32152 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
32153 "is no longer necessary because C<guestfs_launch> now does the waiting."
32154 msgstr ""
32155
32156 #. type: textblock
32157 #: ../src/guestfs-actions.pod:8083
32158 msgid ""
32159 "If you see any calls to this function in code then you can just remove them, "
32160 "unless you want to retain compatibility with older versions of the API."
32161 msgstr ""
32162
32163 #. type: =head2
32164 #: ../src/guestfs-actions.pod:8091
32165 msgid "guestfs_wc_c"
32166 msgstr ""
32167
32168 #. type: verbatim
32169 #: ../src/guestfs-actions.pod:8093
32170 #, no-wrap
32171 msgid ""
32172 " int\n"
32173 " guestfs_wc_c (guestfs_h *g,\n"
32174 "               const char *path);\n"
32175 "\n"
32176 msgstr ""
32177
32178 #. type: =head2
32179 #: ../src/guestfs-actions.pod:8104
32180 msgid "guestfs_wc_l"
32181 msgstr ""
32182
32183 #. type: verbatim
32184 #: ../src/guestfs-actions.pod:8106
32185 #, no-wrap
32186 msgid ""
32187 " int\n"
32188 " guestfs_wc_l (guestfs_h *g,\n"
32189 "               const char *path);\n"
32190 "\n"
32191 msgstr ""
32192
32193 #. type: =head2
32194 #: ../src/guestfs-actions.pod:8117
32195 msgid "guestfs_wc_w"
32196 msgstr ""
32197
32198 #. type: verbatim
32199 #: ../src/guestfs-actions.pod:8119
32200 #, no-wrap
32201 msgid ""
32202 " int\n"
32203 " guestfs_wc_w (guestfs_h *g,\n"
32204 "               const char *path);\n"
32205 "\n"
32206 msgstr ""
32207
32208 #. type: =head2
32209 #: ../src/guestfs-actions.pod:8130
32210 msgid "guestfs_write"
32211 msgstr ""
32212
32213 #. type: verbatim
32214 #: ../src/guestfs-actions.pod:8132
32215 #, no-wrap
32216 msgid ""
32217 " int\n"
32218 " guestfs_write (guestfs_h *g,\n"
32219 "                const char *path,\n"
32220 "                const char *content,\n"
32221 "                size_t content_size);\n"
32222 "\n"
32223 msgstr ""
32224
32225 #. type: textblock
32226 #: ../src/guestfs-actions.pod:8141
32227 msgid "See also C<guestfs_write_append>."
32228 msgstr ""
32229
32230 #. type: =head2
32231 #: ../src/guestfs-actions.pod:8150
32232 msgid "guestfs_write_append"
32233 msgstr ""
32234
32235 #. type: verbatim
32236 #: ../src/guestfs-actions.pod:8152
32237 #, no-wrap
32238 msgid ""
32239 " int\n"
32240 " guestfs_write_append (guestfs_h *g,\n"
32241 "                       const char *path,\n"
32242 "                       const char *content,\n"
32243 "                       size_t content_size);\n"
32244 "\n"
32245 msgstr ""
32246
32247 #. type: textblock
32248 #: ../src/guestfs-actions.pod:8161
32249 msgid "See also C<guestfs_write>."
32250 msgstr ""
32251
32252 #. type: =head2
32253 #: ../src/guestfs-actions.pod:8170
32254 msgid "guestfs_write_file"
32255 msgstr ""
32256
32257 #. type: verbatim
32258 #: ../src/guestfs-actions.pod:8172
32259 #, no-wrap
32260 msgid ""
32261 " int\n"
32262 " guestfs_write_file (guestfs_h *g,\n"
32263 "                     const char *path,\n"
32264 "                     const char *content,\n"
32265 "                     int size);\n"
32266 "\n"
32267 msgstr ""
32268
32269 #. type: textblock
32270 #: ../src/guestfs-actions.pod:8178
32271 msgid ""
32272 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
32273 "instead."
32274 msgstr ""
32275
32276 #. type: =head2
32277 #: ../src/guestfs-actions.pod:8203
32278 msgid "guestfs_zegrep"
32279 msgstr ""
32280
32281 #. type: verbatim
32282 #: ../src/guestfs-actions.pod:8205
32283 #, no-wrap
32284 msgid ""
32285 " char **\n"
32286 " guestfs_zegrep (guestfs_h *g,\n"
32287 "                 const char *regex,\n"
32288 "                 const char *path);\n"
32289 "\n"
32290 msgstr ""
32291
32292 #. type: =head2
32293 #: ../src/guestfs-actions.pod:8222
32294 msgid "guestfs_zegrepi"
32295 msgstr ""
32296
32297 #. type: verbatim
32298 #: ../src/guestfs-actions.pod:8224
32299 #, no-wrap
32300 msgid ""
32301 " char **\n"
32302 " guestfs_zegrepi (guestfs_h *g,\n"
32303 "                  const char *regex,\n"
32304 "                  const char *path);\n"
32305 "\n"
32306 msgstr ""
32307
32308 #. type: =head2
32309 #: ../src/guestfs-actions.pod:8241
32310 msgid "guestfs_zero"
32311 msgstr ""
32312
32313 #. type: verbatim
32314 #: ../src/guestfs-actions.pod:8243
32315 #, no-wrap
32316 msgid ""
32317 " int\n"
32318 " guestfs_zero (guestfs_h *g,\n"
32319 "               const char *device);\n"
32320 "\n"
32321 msgstr ""
32322
32323 #. type: textblock
32324 #: ../src/guestfs-actions.pod:8257
32325 msgid ""
32326 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
32327 "C<guestfs_is_zero_device>"
32328 msgstr ""
32329
32330 #. type: =head2
32331 #: ../src/guestfs-actions.pod:8269
32332 msgid "guestfs_zero_device"
32333 msgstr ""
32334
32335 #. type: verbatim
32336 #: ../src/guestfs-actions.pod:8271
32337 #, no-wrap
32338 msgid ""
32339 " int\n"
32340 " guestfs_zero_device (guestfs_h *g,\n"
32341 "                      const char *device);\n"
32342 "\n"
32343 msgstr ""
32344
32345 #. type: textblock
32346 #: ../src/guestfs-actions.pod:8275
32347 msgid ""
32348 "This command writes zeroes over the entire C<device>.  Compare with "
32349 "C<guestfs_zero> which just zeroes the first few blocks of a device."
32350 msgstr ""
32351
32352 #. type: textblock
32353 #: ../src/guestfs-actions.pod:8293
32354 msgid "(Added in 1.3.1)"
32355 msgstr ""
32356
32357 #. type: =head2
32358 #: ../src/guestfs-actions.pod:8295
32359 msgid "guestfs_zerofree"
32360 msgstr ""
32361
32362 #. type: verbatim
32363 #: ../src/guestfs-actions.pod:8297
32364 #, no-wrap
32365 msgid ""
32366 " int\n"
32367 " guestfs_zerofree (guestfs_h *g,\n"
32368 "                   const char *device);\n"
32369 "\n"
32370 msgstr ""
32371
32372 #. type: =head2
32373 #: ../src/guestfs-actions.pod:8316
32374 msgid "guestfs_zfgrep"
32375 msgstr ""
32376
32377 #. type: verbatim
32378 #: ../src/guestfs-actions.pod:8318
32379 #, no-wrap
32380 msgid ""
32381 " char **\n"
32382 " guestfs_zfgrep (guestfs_h *g,\n"
32383 "                 const char *pattern,\n"
32384 "                 const char *path);\n"
32385 "\n"
32386 msgstr ""
32387
32388 #. type: =head2
32389 #: ../src/guestfs-actions.pod:8335
32390 msgid "guestfs_zfgrepi"
32391 msgstr ""
32392
32393 #. type: verbatim
32394 #: ../src/guestfs-actions.pod:8337
32395 #, no-wrap
32396 msgid ""
32397 " char **\n"
32398 " guestfs_zfgrepi (guestfs_h *g,\n"
32399 "                  const char *pattern,\n"
32400 "                  const char *path);\n"
32401 "\n"
32402 msgstr ""
32403
32404 #. type: =head2
32405 #: ../src/guestfs-actions.pod:8354
32406 msgid "guestfs_zfile"
32407 msgstr ""
32408
32409 #. type: verbatim
32410 #: ../src/guestfs-actions.pod:8356
32411 #, no-wrap
32412 msgid ""
32413 " char *\n"
32414 " guestfs_zfile (guestfs_h *g,\n"
32415 "                const char *meth,\n"
32416 "                const char *path);\n"
32417 "\n"
32418 msgstr ""
32419
32420 #. type: textblock
32421 #: ../src/guestfs-actions.pod:8361
32422 msgid ""
32423 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
32424 "instead."
32425 msgstr ""
32426
32427 #. type: textblock
32428 #: ../src/guestfs-actions.pod:8373
32429 msgid ""
32430 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
32431 "files."
32432 msgstr ""
32433
32434 #. type: =head2
32435 #: ../src/guestfs-actions.pod:8381
32436 msgid "guestfs_zgrep"
32437 msgstr ""
32438
32439 #. type: verbatim
32440 #: ../src/guestfs-actions.pod:8383
32441 #, no-wrap
32442 msgid ""
32443 " char **\n"
32444 " guestfs_zgrep (guestfs_h *g,\n"
32445 "                const char *regex,\n"
32446 "                const char *path);\n"
32447 "\n"
32448 msgstr ""
32449
32450 #. type: =head2
32451 #: ../src/guestfs-actions.pod:8400
32452 msgid "guestfs_zgrepi"
32453 msgstr ""
32454
32455 #. type: verbatim
32456 #: ../src/guestfs-actions.pod:8402
32457 #, no-wrap
32458 msgid ""
32459 " char **\n"
32460 " guestfs_zgrepi (guestfs_h *g,\n"
32461 "                 const char *regex,\n"
32462 "                 const char *path);\n"
32463 "\n"
32464 msgstr ""
32465
32466 #. type: =item
32467 #: ../src/guestfs-availability.pod:3
32468 msgid "B<augeas>"
32469 msgstr ""
32470
32471 #. type: textblock
32472 #: ../src/guestfs-availability.pod:5
32473 msgid ""
32474 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
32475 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
32476 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
32477 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
32478 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
32479 msgstr ""
32480
32481 #. type: =item
32482 #: ../src/guestfs-availability.pod:21
32483 msgid "B<btrfs>"
32484 msgstr ""
32485
32486 #. type: textblock
32487 #: ../src/guestfs-availability.pod:23
32488 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
32489 msgstr ""
32490
32491 #. type: =item
32492 #: ../src/guestfs-availability.pod:26
32493 msgid "B<grub>"
32494 msgstr ""
32495
32496 #. type: textblock
32497 #: ../src/guestfs-availability.pod:28
32498 msgid "The following functions: L</guestfs_grub_install>"
32499 msgstr ""
32500
32501 #. type: =item
32502 #: ../src/guestfs-availability.pod:31
32503 msgid "B<inotify>"
32504 msgstr ""
32505
32506 #. type: textblock
32507 #: ../src/guestfs-availability.pod:33
32508 msgid ""
32509 "The following functions: L</guestfs_inotify_add_watch> "
32510 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
32511 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
32512 msgstr ""
32513
32514 #. type: =item
32515 #: ../src/guestfs-availability.pod:41
32516 msgid "B<linuxfsuuid>"
32517 msgstr ""
32518
32519 #. type: textblock
32520 #: ../src/guestfs-availability.pod:43
32521 msgid ""
32522 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
32523 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
32524 msgstr ""
32525
32526 #. type: =item
32527 #: ../src/guestfs-availability.pod:50
32528 msgid "B<linuxmodules>"
32529 msgstr ""
32530
32531 #. type: textblock
32532 #: ../src/guestfs-availability.pod:52
32533 msgid "The following functions: L</guestfs_modprobe>"
32534 msgstr ""
32535
32536 #. type: =item
32537 #: ../src/guestfs-availability.pod:55
32538 msgid "B<linuxxattrs>"
32539 msgstr ""
32540
32541 #. type: textblock
32542 #: ../src/guestfs-availability.pod:57
32543 msgid ""
32544 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> "
32545 "L</guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> "
32546 "L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> "
32547 "L</guestfs_setxattr>"
32548 msgstr ""
32549
32550 #. type: =item
32551 #: ../src/guestfs-availability.pod:68
32552 msgid "B<luks>"
32553 msgstr ""
32554
32555 #. type: textblock
32556 #: ../src/guestfs-availability.pod:70
32557 msgid ""
32558 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
32559 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
32560 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
32561 msgstr ""
32562
32563 #. type: =item
32564 #: ../src/guestfs-availability.pod:79
32565 msgid "B<lvm2>"
32566 msgstr ""
32567
32568 #. type: textblock
32569 #: ../src/guestfs-availability.pod:81
32570 msgid ""
32571 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
32572 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
32573 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
32574 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
32575 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
32576 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
32577 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
32578 "L</guestfs_vgs_full>"
32579 msgstr ""
32580
32581 #. type: =item
32582 #: ../src/guestfs-availability.pod:104
32583 msgid "B<mknod>"
32584 msgstr ""
32585
32586 #. type: textblock
32587 #: ../src/guestfs-availability.pod:106
32588 msgid ""
32589 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
32590 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
32591 msgstr ""
32592
32593 #. type: =item
32594 #: ../src/guestfs-availability.pod:112
32595 msgid "B<ntfs3g>"
32596 msgstr ""
32597
32598 #. type: textblock
32599 #: ../src/guestfs-availability.pod:114
32600 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
32601 msgstr ""
32602
32603 #. type: =item
32604 #: ../src/guestfs-availability.pod:117
32605 msgid "B<ntfsprogs>"
32606 msgstr ""
32607
32608 #. type: textblock
32609 #: ../src/guestfs-availability.pod:119
32610 msgid ""
32611 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
32612 "L</guestfs_ntfsresize_size>"
32613 msgstr ""
32614
32615 #. type: =item
32616 #: ../src/guestfs-availability.pod:124
32617 msgid "B<realpath>"
32618 msgstr ""
32619
32620 #. type: textblock
32621 #: ../src/guestfs-availability.pod:126
32622 msgid "The following functions: L</guestfs_realpath>"
32623 msgstr ""
32624
32625 #. type: =item
32626 #: ../src/guestfs-availability.pod:129
32627 msgid "B<scrub>"
32628 msgstr ""
32629
32630 #. type: textblock
32631 #: ../src/guestfs-availability.pod:131
32632 msgid ""
32633 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
32634 "L</guestfs_scrub_freespace>"
32635 msgstr ""
32636
32637 #. type: =item
32638 #: ../src/guestfs-availability.pod:136
32639 msgid "B<selinux>"
32640 msgstr ""
32641
32642 #. type: textblock
32643 #: ../src/guestfs-availability.pod:138
32644 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
32645 msgstr ""
32646
32647 #. type: =item
32648 #: ../src/guestfs-availability.pod:142
32649 msgid "B<xz>"
32650 msgstr ""
32651
32652 #. type: textblock
32653 #: ../src/guestfs-availability.pod:144
32654 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
32655 msgstr ""
32656
32657 #. type: =item
32658 #: ../src/guestfs-availability.pod:148
32659 msgid "B<zerofree>"
32660 msgstr ""
32661
32662 #. type: textblock
32663 #: ../src/guestfs-availability.pod:150
32664 msgid "The following functions: L</guestfs_zerofree>"
32665 msgstr ""
32666
32667 #. type: =head2
32668 #: ../src/guestfs-structs.pod:1
32669 msgid "guestfs_int_bool"
32670 msgstr ""
32671
32672 #. type: verbatim
32673 #: ../src/guestfs-structs.pod:3
32674 #, no-wrap
32675 msgid ""
32676 " struct guestfs_int_bool {\n"
32677 "   int32_t i;\n"
32678 "   int32_t b;\n"
32679 " };\n"
32680 " \n"
32681 msgstr ""
32682
32683 #. type: verbatim
32684 #: ../src/guestfs-structs.pod:8
32685 #, no-wrap
32686 msgid ""
32687 " struct guestfs_int_bool_list {\n"
32688 "   uint32_t len; /* Number of elements in list. */\n"
32689 "   struct guestfs_int_bool *val; /* Elements. */\n"
32690 " };\n"
32691 " \n"
32692 msgstr ""
32693
32694 #. type: verbatim
32695 #: ../src/guestfs-structs.pod:13
32696 #, no-wrap
32697 msgid ""
32698 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
32699 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
32700 "\n"
32701 msgstr ""
32702
32703 #. type: =head2
32704 #: ../src/guestfs-structs.pod:16
32705 msgid "guestfs_lvm_pv"
32706 msgstr ""
32707
32708 #. type: verbatim
32709 #: ../src/guestfs-structs.pod:18
32710 #, no-wrap
32711 msgid ""
32712 " struct guestfs_lvm_pv {\n"
32713 "   char *pv_name;\n"
32714 "   /* The next field is NOT nul-terminated, be careful when printing it: "
32715 "*/\n"
32716 "   char pv_uuid[32];\n"
32717 "   char *pv_fmt;\n"
32718 "   uint64_t pv_size;\n"
32719 "   uint64_t dev_size;\n"
32720 "   uint64_t pv_free;\n"
32721 "   uint64_t pv_used;\n"
32722 "   char *pv_attr;\n"
32723 "   int64_t pv_pe_count;\n"
32724 "   int64_t pv_pe_alloc_count;\n"
32725 "   char *pv_tags;\n"
32726 "   uint64_t pe_start;\n"
32727 "   int64_t pv_mda_count;\n"
32728 "   uint64_t pv_mda_free;\n"
32729 " };\n"
32730 " \n"
32731 msgstr ""
32732
32733 #. type: verbatim
32734 #: ../src/guestfs-structs.pod:36
32735 #, no-wrap
32736 msgid ""
32737 " struct guestfs_lvm_pv_list {\n"
32738 "   uint32_t len; /* Number of elements in list. */\n"
32739 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
32740 " };\n"
32741 " \n"
32742 msgstr ""
32743
32744 #. type: verbatim
32745 #: ../src/guestfs-structs.pod:41
32746 #, no-wrap
32747 msgid ""
32748 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
32749 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
32750 "\n"
32751 msgstr ""
32752
32753 #. type: =head2
32754 #: ../src/guestfs-structs.pod:44
32755 msgid "guestfs_lvm_vg"
32756 msgstr ""
32757
32758 #. type: verbatim
32759 #: ../src/guestfs-structs.pod:46
32760 #, no-wrap
32761 msgid ""
32762 " struct guestfs_lvm_vg {\n"
32763 "   char *vg_name;\n"
32764 "   /* The next field is NOT nul-terminated, be careful when printing it: "
32765 "*/\n"
32766 "   char vg_uuid[32];\n"
32767 "   char *vg_fmt;\n"
32768 "   char *vg_attr;\n"
32769 "   uint64_t vg_size;\n"
32770 "   uint64_t vg_free;\n"
32771 "   char *vg_sysid;\n"
32772 "   uint64_t vg_extent_size;\n"
32773 "   int64_t vg_extent_count;\n"
32774 "   int64_t vg_free_count;\n"
32775 "   int64_t max_lv;\n"
32776 "   int64_t max_pv;\n"
32777 "   int64_t pv_count;\n"
32778 "   int64_t lv_count;\n"
32779 "   int64_t snap_count;\n"
32780 "   int64_t vg_seqno;\n"
32781 "   char *vg_tags;\n"
32782 "   int64_t vg_mda_count;\n"
32783 "   uint64_t vg_mda_free;\n"
32784 " };\n"
32785 " \n"
32786 msgstr ""
32787
32788 #. type: verbatim
32789 #: ../src/guestfs-structs.pod:69
32790 #, no-wrap
32791 msgid ""
32792 " struct guestfs_lvm_vg_list {\n"
32793 "   uint32_t len; /* Number of elements in list. */\n"
32794 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
32795 " };\n"
32796 " \n"
32797 msgstr ""
32798
32799 #. type: verbatim
32800 #: ../src/guestfs-structs.pod:74
32801 #, no-wrap
32802 msgid ""
32803 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
32804 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
32805 "\n"
32806 msgstr ""
32807
32808 #. type: =head2
32809 #: ../src/guestfs-structs.pod:77
32810 msgid "guestfs_lvm_lv"
32811 msgstr ""
32812
32813 #. type: verbatim
32814 #: ../src/guestfs-structs.pod:79
32815 #, no-wrap
32816 msgid ""
32817 " struct guestfs_lvm_lv {\n"
32818 "   char *lv_name;\n"
32819 "   /* The next field is NOT nul-terminated, be careful when printing it: "
32820 "*/\n"
32821 "   char lv_uuid[32];\n"
32822 "   char *lv_attr;\n"
32823 "   int64_t lv_major;\n"
32824 "   int64_t lv_minor;\n"
32825 "   int64_t lv_kernel_major;\n"
32826 "   int64_t lv_kernel_minor;\n"
32827 "   uint64_t lv_size;\n"
32828 "   int64_t seg_count;\n"
32829 "   char *origin;\n"
32830 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
32831 "   float snap_percent;\n"
32832 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
32833 "   float copy_percent;\n"
32834 "   char *move_pv;\n"
32835 "   char *lv_tags;\n"
32836 "   char *mirror_log;\n"
32837 "   char *modules;\n"
32838 " };\n"
32839 " \n"
32840 msgstr ""
32841
32842 #. type: verbatim
32843 #: ../src/guestfs-structs.pod:101
32844 #, no-wrap
32845 msgid ""
32846 " struct guestfs_lvm_lv_list {\n"
32847 "   uint32_t len; /* Number of elements in list. */\n"
32848 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
32849 " };\n"
32850 " \n"
32851 msgstr ""
32852
32853 #. type: verbatim
32854 #: ../src/guestfs-structs.pod:106
32855 #, no-wrap
32856 msgid ""
32857 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
32858 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
32859 "\n"
32860 msgstr ""
32861
32862 #. type: verbatim
32863 #: ../src/guestfs-structs.pod:111
32864 #, no-wrap
32865 msgid ""
32866 " struct guestfs_stat {\n"
32867 "   int64_t dev;\n"
32868 "   int64_t ino;\n"
32869 "   int64_t mode;\n"
32870 "   int64_t nlink;\n"
32871 "   int64_t uid;\n"
32872 "   int64_t gid;\n"
32873 "   int64_t rdev;\n"
32874 "   int64_t size;\n"
32875 "   int64_t blksize;\n"
32876 "   int64_t blocks;\n"
32877 "   int64_t atime;\n"
32878 "   int64_t mtime;\n"
32879 "   int64_t ctime;\n"
32880 " };\n"
32881 " \n"
32882 msgstr ""
32883
32884 #. type: verbatim
32885 #: ../src/guestfs-structs.pod:127
32886 #, no-wrap
32887 msgid ""
32888 " struct guestfs_stat_list {\n"
32889 "   uint32_t len; /* Number of elements in list. */\n"
32890 "   struct guestfs_stat *val; /* Elements. */\n"
32891 " };\n"
32892 " \n"
32893 msgstr ""
32894
32895 #. type: verbatim
32896 #: ../src/guestfs-structs.pod:132
32897 #, no-wrap
32898 msgid ""
32899 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
32900 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
32901 "\n"
32902 msgstr ""
32903
32904 #. type: verbatim
32905 #: ../src/guestfs-structs.pod:137
32906 #, no-wrap
32907 msgid ""
32908 " struct guestfs_statvfs {\n"
32909 "   int64_t bsize;\n"
32910 "   int64_t frsize;\n"
32911 "   int64_t blocks;\n"
32912 "   int64_t bfree;\n"
32913 "   int64_t bavail;\n"
32914 "   int64_t files;\n"
32915 "   int64_t ffree;\n"
32916 "   int64_t favail;\n"
32917 "   int64_t fsid;\n"
32918 "   int64_t flag;\n"
32919 "   int64_t namemax;\n"
32920 " };\n"
32921 " \n"
32922 msgstr ""
32923
32924 #. type: verbatim
32925 #: ../src/guestfs-structs.pod:151
32926 #, no-wrap
32927 msgid ""
32928 " struct guestfs_statvfs_list {\n"
32929 "   uint32_t len; /* Number of elements in list. */\n"
32930 "   struct guestfs_statvfs *val; /* Elements. */\n"
32931 " };\n"
32932 " \n"
32933 msgstr ""
32934
32935 #. type: verbatim
32936 #: ../src/guestfs-structs.pod:156
32937 #, no-wrap
32938 msgid ""
32939 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
32940 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
32941 "\n"
32942 msgstr ""
32943
32944 #. type: =head2
32945 #: ../src/guestfs-structs.pod:159
32946 msgid "guestfs_dirent"
32947 msgstr ""
32948
32949 #. type: verbatim
32950 #: ../src/guestfs-structs.pod:161
32951 #, no-wrap
32952 msgid ""
32953 " struct guestfs_dirent {\n"
32954 "   int64_t ino;\n"
32955 "   char ftyp;\n"
32956 "   char *name;\n"
32957 " };\n"
32958 " \n"
32959 msgstr ""
32960
32961 #. type: verbatim
32962 #: ../src/guestfs-structs.pod:167
32963 #, no-wrap
32964 msgid ""
32965 " struct guestfs_dirent_list {\n"
32966 "   uint32_t len; /* Number of elements in list. */\n"
32967 "   struct guestfs_dirent *val; /* Elements. */\n"
32968 " };\n"
32969 " \n"
32970 msgstr ""
32971
32972 #. type: verbatim
32973 #: ../src/guestfs-structs.pod:172
32974 #, no-wrap
32975 msgid ""
32976 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
32977 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
32978 "\n"
32979 msgstr ""
32980
32981 #. type: verbatim
32982 #: ../src/guestfs-structs.pod:177
32983 #, no-wrap
32984 msgid ""
32985 " struct guestfs_version {\n"
32986 "   int64_t major;\n"
32987 "   int64_t minor;\n"
32988 "   int64_t release;\n"
32989 "   char *extra;\n"
32990 " };\n"
32991 " \n"
32992 msgstr ""
32993
32994 #. type: verbatim
32995 #: ../src/guestfs-structs.pod:184
32996 #, no-wrap
32997 msgid ""
32998 " struct guestfs_version_list {\n"
32999 "   uint32_t len; /* Number of elements in list. */\n"
33000 "   struct guestfs_version *val; /* Elements. */\n"
33001 " };\n"
33002 " \n"
33003 msgstr ""
33004
33005 #. type: verbatim
33006 #: ../src/guestfs-structs.pod:189
33007 #, no-wrap
33008 msgid ""
33009 " void guestfs_free_version (struct guestfs_free_version *);\n"
33010 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
33011 "\n"
33012 msgstr ""
33013
33014 #. type: =head2
33015 #: ../src/guestfs-structs.pod:192
33016 msgid "guestfs_xattr"
33017 msgstr ""
33018
33019 #. type: verbatim
33020 #: ../src/guestfs-structs.pod:194
33021 #, no-wrap
33022 msgid ""
33023 " struct guestfs_xattr {\n"
33024 "   char *attrname;\n"
33025 "   /* The next two fields describe a byte array. */\n"
33026 "   uint32_t attrval_len;\n"
33027 "   char *attrval;\n"
33028 " };\n"
33029 " \n"
33030 msgstr ""
33031
33032 #. type: verbatim
33033 #: ../src/guestfs-structs.pod:201
33034 #, no-wrap
33035 msgid ""
33036 " struct guestfs_xattr_list {\n"
33037 "   uint32_t len; /* Number of elements in list. */\n"
33038 "   struct guestfs_xattr *val; /* Elements. */\n"
33039 " };\n"
33040 " \n"
33041 msgstr ""
33042
33043 #. type: verbatim
33044 #: ../src/guestfs-structs.pod:206
33045 #, no-wrap
33046 msgid ""
33047 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
33048 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
33049 "\n"
33050 msgstr ""
33051
33052 #. type: =head2
33053 #: ../src/guestfs-structs.pod:209
33054 msgid "guestfs_inotify_event"
33055 msgstr ""
33056
33057 #. type: verbatim
33058 #: ../src/guestfs-structs.pod:211
33059 #, no-wrap
33060 msgid ""
33061 " struct guestfs_inotify_event {\n"
33062 "   int64_t in_wd;\n"
33063 "   uint32_t in_mask;\n"
33064 "   uint32_t in_cookie;\n"
33065 "   char *in_name;\n"
33066 " };\n"
33067 " \n"
33068 msgstr ""
33069
33070 #. type: verbatim
33071 #: ../src/guestfs-structs.pod:218
33072 #, no-wrap
33073 msgid ""
33074 " struct guestfs_inotify_event_list {\n"
33075 "   uint32_t len; /* Number of elements in list. */\n"
33076 "   struct guestfs_inotify_event *val; /* Elements. */\n"
33077 " };\n"
33078 " \n"
33079 msgstr ""
33080
33081 #. type: verbatim
33082 #: ../src/guestfs-structs.pod:223
33083 #, no-wrap
33084 msgid ""
33085 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
33086 " void guestfs_free_inotify_event_list (struct "
33087 "guestfs_free_inotify_event_list *);\n"
33088 "\n"
33089 msgstr ""
33090
33091 #. type: =head2
33092 #: ../src/guestfs-structs.pod:226
33093 msgid "guestfs_partition"
33094 msgstr ""
33095
33096 #. type: verbatim
33097 #: ../src/guestfs-structs.pod:228
33098 #, no-wrap
33099 msgid ""
33100 " struct guestfs_partition {\n"
33101 "   int32_t part_num;\n"
33102 "   uint64_t part_start;\n"
33103 "   uint64_t part_end;\n"
33104 "   uint64_t part_size;\n"
33105 " };\n"
33106 " \n"
33107 msgstr ""
33108
33109 #. type: verbatim
33110 #: ../src/guestfs-structs.pod:235
33111 #, no-wrap
33112 msgid ""
33113 " struct guestfs_partition_list {\n"
33114 "   uint32_t len; /* Number of elements in list. */\n"
33115 "   struct guestfs_partition *val; /* Elements. */\n"
33116 " };\n"
33117 " \n"
33118 msgstr ""
33119
33120 #. type: verbatim
33121 #: ../src/guestfs-structs.pod:240
33122 #, no-wrap
33123 msgid ""
33124 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
33125 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
33126 "\n"
33127 msgstr ""
33128
33129 #. type: =head2
33130 #: ../src/guestfs-structs.pod:243
33131 msgid "guestfs_application"
33132 msgstr ""
33133
33134 #. type: verbatim
33135 #: ../src/guestfs-structs.pod:245
33136 #, no-wrap
33137 msgid ""
33138 " struct guestfs_application {\n"
33139 "   char *app_name;\n"
33140 "   char *app_display_name;\n"
33141 "   int32_t app_epoch;\n"
33142 "   char *app_version;\n"
33143 "   char *app_release;\n"
33144 "   char *app_install_path;\n"
33145 "   char *app_trans_path;\n"
33146 "   char *app_publisher;\n"
33147 "   char *app_url;\n"
33148 "   char *app_source_package;\n"
33149 "   char *app_summary;\n"
33150 "   char *app_description;\n"
33151 " };\n"
33152 " \n"
33153 msgstr ""
33154
33155 #. type: verbatim
33156 #: ../src/guestfs-structs.pod:260
33157 #, no-wrap
33158 msgid ""
33159 " struct guestfs_application_list {\n"
33160 "   uint32_t len; /* Number of elements in list. */\n"
33161 "   struct guestfs_application *val; /* Elements. */\n"
33162 " };\n"
33163 " \n"
33164 msgstr ""
33165
33166 #. type: verbatim
33167 #: ../src/guestfs-structs.pod:265
33168 #, no-wrap
33169 msgid ""
33170 " void guestfs_free_application (struct guestfs_free_application *);\n"
33171 " void guestfs_free_application_list (struct guestfs_free_application_list "
33172 "*);\n"
33173 "\n"
33174 msgstr ""
33175
33176 #. type: textblock
33177 #: ../src/guestfs.pod:5
33178 msgid "guestfs - Library for accessing and modifying virtual machine images"
33179 msgstr ""
33180
33181 #. type: verbatim
33182 #: ../src/guestfs.pod:11
33183 #, no-wrap
33184 msgid ""
33185 " guestfs_h *g = guestfs_create ();\n"
33186 " guestfs_add_drive (g, \"guest.img\");\n"
33187 " guestfs_launch (g);\n"
33188 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33189 " guestfs_touch (g, \"/hello\");\n"
33190 " guestfs_umount (g, \"/\");\n"
33191 " guestfs_close (g);\n"
33192 "\n"
33193 msgstr ""
33194
33195 #. type: textblock
33196 #: ../src/guestfs.pod:25
33197 msgid ""
33198 "Libguestfs is a library for accessing and modifying guest disk images.  "
33199 "Amongst the things this is good for: making batch configuration changes to "
33200 "guests, getting disk used/free statistics (see also: virt-df), migrating "
33201 "between virtualization systems (see also: virt-p2v), performing partial "
33202 "backups, performing partial guest clones, cloning guests and changing "
33203 "registry/UUID/hostname info, and much else besides."
33204 msgstr ""
33205
33206 #. type: textblock
33207 #: ../src/guestfs.pod:33
33208 msgid ""
33209 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
33210 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
33211 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
33212 "qcow2, vmdk."
33213 msgstr ""
33214
33215 #. type: textblock
33216 #: ../src/guestfs.pod:38
33217 msgid ""
33218 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
33219 "what filesystem is in each LV, etc.).  It can also run commands in the "
33220 "context of the guest.  Also you can access filesystems over FUSE."
33221 msgstr ""
33222
33223 #. type: textblock
33224 #: ../src/guestfs.pod:43
33225 msgid ""
33226 "Libguestfs is a library that can be linked with C and C++ management "
33227 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
33228 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
33229 "command line."
33230 msgstr ""
33231
33232 #. type: textblock
33233 #: ../src/guestfs.pod:48
33234 msgid ""
33235 "You don't need to be root to use libguestfs, although obviously you do need "
33236 "enough permissions to access the disk images."
33237 msgstr ""
33238
33239 #. type: textblock
33240 #: ../src/guestfs.pod:51
33241 msgid ""
33242 "Libguestfs is a large API because it can do many things.  For a gentle "
33243 "introduction, please read the L</API OVERVIEW> section next."
33244 msgstr ""
33245
33246 #. type: textblock
33247 #: ../src/guestfs.pod:54
33248 msgid ""
33249 "There are also some example programs in the L<guestfs-examples(3)> manual "
33250 "page."
33251 msgstr ""
33252
33253 #. type: =head1
33254 #: ../src/guestfs.pod:57
33255 msgid "API OVERVIEW"
33256 msgstr ""
33257
33258 #. type: textblock
33259 #: ../src/guestfs.pod:59
33260 msgid ""
33261 "This section provides a gentler overview of the libguestfs API.  We also try "
33262 "to group API calls together, where that may not be obvious from reading "
33263 "about the individual calls in the main section of this manual."
33264 msgstr ""
33265
33266 #. type: =head2
33267 #: ../src/guestfs.pod:64
33268 msgid "HANDLES"
33269 msgstr ""
33270
33271 #. type: textblock
33272 #: ../src/guestfs.pod:66
33273 msgid ""
33274 "Before you can use libguestfs calls, you have to create a handle.  Then you "
33275 "must add at least one disk image to the handle, followed by launching the "
33276 "handle, then performing whatever operations you want, and finally closing "
33277 "the handle.  By convention we use the single letter C<g> for the name of the "
33278 "handle variable, although of course you can use any name you want."
33279 msgstr ""
33280
33281 #. type: textblock
33282 #: ../src/guestfs.pod:73
33283 msgid "The general structure of all libguestfs-using programs looks like this:"
33284 msgstr ""
33285
33286 #. type: verbatim
33287 #: ../src/guestfs.pod:76
33288 #, no-wrap
33289 msgid ""
33290 " guestfs_h *g = guestfs_create ();\n"
33291 " \n"
33292 msgstr ""
33293
33294 #. type: verbatim
33295 #: ../src/guestfs.pod:78
33296 #, no-wrap
33297 msgid ""
33298 " /* Call guestfs_add_drive additional times if there are\n"
33299 "  * multiple disk images.\n"
33300 "  */\n"
33301 " guestfs_add_drive (g, \"guest.img\");\n"
33302 " \n"
33303 msgstr ""
33304
33305 #. type: verbatim
33306 #: ../src/guestfs.pod:83
33307 #, no-wrap
33308 msgid ""
33309 " /* Most manipulation calls won't work until you've launched\n"
33310 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
33311 "  * and _before_ other commands.\n"
33312 "  */\n"
33313 " guestfs_launch (g);\n"
33314 " \n"
33315 msgstr ""
33316
33317 #. type: verbatim
33318 #: ../src/guestfs.pod:89
33319 #, no-wrap
33320 msgid ""
33321 " /* Now you can examine what partitions, LVs etc are available.\n"
33322 "  */\n"
33323 " char **partitions = guestfs_list_partitions (g);\n"
33324 " char **logvols = guestfs_lvs (g);\n"
33325 " \n"
33326 msgstr ""
33327
33328 #. type: verbatim
33329 #: ../src/guestfs.pod:94
33330 #, no-wrap
33331 msgid ""
33332 " /* To access a filesystem in the image, you must mount it.\n"
33333 "  */\n"
33334 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33335 " \n"
33336 msgstr ""
33337
33338 #. type: verbatim
33339 #: ../src/guestfs.pod:98
33340 #, no-wrap
33341 msgid ""
33342 " /* Now you can perform filesystem actions on the guest\n"
33343 "  * disk image.\n"
33344 "  */\n"
33345 " guestfs_touch (g, \"/hello\");\n"
33346 " \n"
33347 msgstr ""
33348
33349 #. type: verbatim
33350 #: ../src/guestfs.pod:103
33351 #, no-wrap
33352 msgid ""
33353 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
33354 "  * it is done automatically when you close the handle.  See\n"
33355 "  * discussion of autosync in this page.\n"
33356 "  */\n"
33357 " guestfs_sync (g);\n"
33358 " \n"
33359 msgstr ""
33360
33361 #. type: verbatim
33362 #: ../src/guestfs.pod:109
33363 #, no-wrap
33364 msgid ""
33365 " /* Close the handle 'g'. */\n"
33366 " guestfs_close (g);\n"
33367 "\n"
33368 msgstr ""
33369
33370 #. type: textblock
33371 #: ../src/guestfs.pod:112
33372 msgid ""
33373 "The code above doesn't include any error checking.  In real code you should "
33374 "check return values carefully for errors.  In general all functions that "
33375 "return integers return C<-1> on error, and all functions that return "
33376 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
33377 "how to handle errors, and consult the documentation for each function call "
33378 "below to see precisely how they return error indications.  See "
33379 "L<guestfs-examples(3)> for fully worked examples."
33380 msgstr ""
33381
33382 #. type: =head2
33383 #: ../src/guestfs.pod:121
33384 msgid "DISK IMAGES"
33385 msgstr ""
33386
33387 #. type: textblock
33388 #: ../src/guestfs.pod:123
33389 msgid ""
33390 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
33391 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
33392 "actual block device, or simply an empty file of zeroes that you have created "
33393 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
33394 "of these."
33395 msgstr ""
33396
33397 #. type: textblock
33398 #: ../src/guestfs.pod:129
33399 msgid ""
33400 "The call you should use in modern code for adding drives is "
33401 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
33402 "specifying that the format is raw, do:"
33403 msgstr ""
33404
33405 #. type: verbatim
33406 #: ../src/guestfs.pod:133
33407 #, no-wrap
33408 msgid ""
33409 " guestfs_add_drive_opts (g, filename,\n"
33410 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33411 "                         -1);\n"
33412 "\n"
33413 msgstr ""
33414
33415 #. type: textblock
33416 #: ../src/guestfs.pod:137
33417 msgid "You can add a disk read-only using:"
33418 msgstr ""
33419
33420 #. type: verbatim
33421 #: ../src/guestfs.pod:139
33422 #, no-wrap
33423 msgid ""
33424 " guestfs_add_drive_opts (g, filename,\n"
33425 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33426 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
33427 "                         -1);\n"
33428 "\n"
33429 msgstr ""
33430
33431 #. type: textblock
33432 #: ../src/guestfs.pod:144
33433 msgid ""
33434 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
33435 "libguestfs won't modify the file."
33436 msgstr ""
33437
33438 #. type: textblock
33439 #: ../src/guestfs.pod:147
33440 msgid ""
33441 "Be extremely cautious if the disk image is in use, eg. if it is being used "
33442 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
33443 "corruption, but adding it read-only is safe."
33444 msgstr ""
33445
33446 #. type: textblock
33447 #: ../src/guestfs.pod:151
33448 msgid ""
33449 "You must add at least one disk image, and you may add multiple disk images.  "
33450 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
33451 "first one you added), C</dev/sdb> (for the second one you added), etc."
33452 msgstr ""
33453
33454 #. type: textblock
33455 #: ../src/guestfs.pod:156
33456 msgid ""
33457 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
33458 "can call L</guestfs_list_devices> to get a list of the device names, in the "
33459 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
33460 msgstr ""
33461
33462 #. type: =head2
33463 #: ../src/guestfs.pod:161
33464 msgid "MOUNTING"
33465 msgstr ""
33466
33467 #. type: textblock
33468 #: ../src/guestfs.pod:163
33469 msgid ""
33470 "Before you can read or write files, create directories and so on in a disk "
33471 "image that contains filesystems, you have to mount those filesystems using "
33472 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
33473 "a disk image contains (for example) one partition with a filesystem on that "
33474 "partition, then you can mount it directly:"
33475 msgstr ""
33476
33477 #. type: verbatim
33478 #: ../src/guestfs.pod:170
33479 #, no-wrap
33480 msgid ""
33481 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
33482 "\n"
33483 msgstr ""
33484
33485 #. type: textblock
33486 #: ../src/guestfs.pod:172
33487 msgid ""
33488 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
33489 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
33490 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
33491 "that these are libguestfs virtual devices, and are nothing to do with host "
33492 "devices."
33493 msgstr ""
33494
33495 #. type: textblock
33496 #: ../src/guestfs.pod:178
33497 msgid ""
33498 "If you are given a disk image and you don't know what it contains then you "
33499 "have to find out.  Libguestfs can do that too: use "
33500 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
33501 "and LVs, and either try mounting each to see what is mountable, or else "
33502 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
33503 "filesystems, use L</guestfs_list_filesystems>."
33504 msgstr ""
33505
33506 #. type: textblock
33507 #: ../src/guestfs.pod:186
33508 msgid ""
33509 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
33510 "L</INSPECTION> below).  But you might find it easier to look at higher level "
33511 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
33512 msgstr ""
33513
33514 #. type: textblock
33515 #: ../src/guestfs.pod:191
33516 msgid ""
33517 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
33518 "several other variations of the C<guestfs_mount_*> call."
33519 msgstr ""
33520
33521 #. type: =head2
33522 #: ../src/guestfs.pod:194
33523 msgid "FILESYSTEM ACCESS AND MODIFICATION"
33524 msgstr ""
33525
33526 #. type: textblock
33527 #: ../src/guestfs.pod:196
33528 msgid ""
33529 "The majority of the libguestfs API consists of fairly low-level calls for "
33530 "accessing and modifying the files, directories, symlinks etc on mounted "
33531 "filesystems.  There are over a hundred such calls which you can find listed "
33532 "in detail below in this man page, and we don't even pretend to cover them "
33533 "all in this overview."
33534 msgstr ""
33535
33536 #. type: textblock
33537 #: ../src/guestfs.pod:202
33538 msgid ""
33539 "Specify filenames as full paths, starting with C<\"/\"> and including the "
33540 "mount point."
33541 msgstr ""
33542
33543 #. type: textblock
33544 #: ../src/guestfs.pod:205
33545 msgid ""
33546 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
33547 "the file called C<\"etc/passwd\"> then you could do:"
33548 msgstr ""
33549
33550 #. type: verbatim
33551 #: ../src/guestfs.pod:208
33552 #, no-wrap
33553 msgid ""
33554 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
33555 "\n"
33556 msgstr ""
33557
33558 #. type: textblock
33559 #: ../src/guestfs.pod:210
33560 msgid ""
33561 "This would return C<data> as a newly allocated buffer containing the full "
33562 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
33563 "or C<NULL> if there was an error."
33564 msgstr ""
33565
33566 #. type: textblock
33567 #: ../src/guestfs.pod:214
33568 msgid ""
33569 "As another example, to create a top-level directory on that filesystem "
33570 "called C<\"var\"> you would do:"
33571 msgstr ""
33572
33573 #. type: verbatim
33574 #: ../src/guestfs.pod:217
33575 #, no-wrap
33576 msgid ""
33577 " guestfs_mkdir (g, \"/var\");\n"
33578 "\n"
33579 msgstr ""
33580
33581 #. type: textblock
33582 #: ../src/guestfs.pod:219
33583 msgid "To create a symlink you could do:"
33584 msgstr ""
33585
33586 #. type: verbatim
33587 #: ../src/guestfs.pod:221
33588 #, no-wrap
33589 msgid ""
33590 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
33591 "               \"/etc/rc3.d/S30portmap\");\n"
33592 "\n"
33593 msgstr ""
33594
33595 #. type: textblock
33596 #: ../src/guestfs.pod:224
33597 msgid ""
33598 "Libguestfs will reject attempts to use relative paths and there is no "
33599 "concept of a current working directory."
33600 msgstr ""
33601
33602 #. type: textblock
33603 #: ../src/guestfs.pod:227
33604 msgid ""
33605 "Libguestfs can return errors in many situations: for example if the "
33606 "filesystem isn't writable, or if a file or directory that you requested "
33607 "doesn't exist.  If you are using the C API (documented here)  you have to "
33608 "check for those error conditions after each call.  (Other language bindings "
33609 "turn these errors into exceptions)."
33610 msgstr ""
33611
33612 #. type: textblock
33613 #: ../src/guestfs.pod:233
33614 msgid ""
33615 "File writes are affected by the per-handle umask, set by calling "
33616 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
33617 msgstr ""
33618
33619 #. type: =head2
33620 #: ../src/guestfs.pod:236
33621 msgid "PARTITIONING"
33622 msgstr ""
33623
33624 #. type: textblock
33625 #: ../src/guestfs.pod:238
33626 msgid ""
33627 "Libguestfs contains API calls to read, create and modify partition tables on "
33628 "disk images."
33629 msgstr ""
33630
33631 #. type: textblock
33632 #: ../src/guestfs.pod:241
33633 msgid ""
33634 "In the common case where you want to create a single partition covering the "
33635 "whole disk, you should use the L</guestfs_part_disk> call:"
33636 msgstr ""
33637
33638 #. type: verbatim
33639 #: ../src/guestfs.pod:245
33640 #, no-wrap
33641 msgid ""
33642 " const char *parttype = \"mbr\";\n"
33643 " if (disk_is_larger_than_2TB)\n"
33644 "   parttype = \"gpt\";\n"
33645 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
33646 "\n"
33647 msgstr ""
33648
33649 #. type: textblock
33650 #: ../src/guestfs.pod:250
33651 msgid ""
33652 "Obviously this effectively wipes anything that was on that disk image "
33653 "before."
33654 msgstr ""
33655
33656 #. type: =head2
33657 #: ../src/guestfs.pod:253
33658 msgid "LVM2"
33659 msgstr ""
33660
33661 #. type: textblock
33662 #: ../src/guestfs.pod:255
33663 msgid ""
33664 "Libguestfs provides access to a large part of the LVM2 API, such as "
33665 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
33666 "unless you familiarize yourself with the concepts of physical volumes, "
33667 "volume groups and logical volumes."
33668 msgstr ""
33669
33670 #. type: textblock
33671 #: ../src/guestfs.pod:260
33672 msgid ""
33673 "This author strongly recommends reading the LVM HOWTO, online at "
33674 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
33675 msgstr ""
33676
33677 #. type: =head2
33678 #: ../src/guestfs.pod:263
33679 msgid "DOWNLOADING"
33680 msgstr ""
33681
33682 #. type: textblock
33683 #: ../src/guestfs.pod:265
33684 msgid ""
33685 "Use L</guestfs_cat> to download small, text only files.  This call is "
33686 "limited to files which are less than 2 MB and which cannot contain any ASCII "
33687 "NUL (C<\\0>) characters.  However the API is very simple to use."
33688 msgstr ""
33689
33690 #. type: textblock
33691 #: ../src/guestfs.pod:269
33692 msgid ""
33693 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
33694 "bit data, since it returns a (pointer, size) pair.  However it is still "
33695 "limited to \"small\" files, less than 2 MB."
33696 msgstr ""
33697
33698 #. type: textblock
33699 #: ../src/guestfs.pod:273
33700 msgid ""
33701 "L</guestfs_download> can be used to download any file, with no limits on "
33702 "content or size (even files larger than 4 GB)."
33703 msgstr ""
33704
33705 #. type: textblock
33706 #: ../src/guestfs.pod:276
33707 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
33708 msgstr ""
33709
33710 #. type: =head2
33711 #: ../src/guestfs.pod:279
33712 msgid "UPLOADING"
33713 msgstr ""
33714
33715 #. type: textblock
33716 #: ../src/guestfs.pod:281
33717 msgid ""
33718 "It's often the case that you want to write a file or files to the disk "
33719 "image."
33720 msgstr ""
33721
33722 #. type: textblock
33723 #: ../src/guestfs.pod:284
33724 msgid ""
33725 "To write a small file with fixed content, use L</guestfs_write>.  To create "
33726 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
33727 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
33728 "variety of other functions for creating test files, for example "
33729 "L</guestfs_fill> and L</guestfs_fill_pattern>."
33730 msgstr ""
33731
33732 #. type: textblock
33733 #: ../src/guestfs.pod:290
33734 msgid ""
33735 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
33736 "file content or size (even files larger than 4 GB)."
33737 msgstr ""
33738
33739 #. type: textblock
33740 #: ../src/guestfs.pod:293
33741 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
33742 msgstr ""
33743
33744 #. type: textblock
33745 #: ../src/guestfs.pod:295
33746 msgid ""
33747 "However the fastest way to upload I<large numbers of arbitrary files> is to "
33748 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
33749 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add "
33750 "the drive in a predictable way (eg. adding it last after all other drives) "
33751 "then you can get the device name from L</guestfs_list_devices> and mount it "
33752 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
33753 "sometimes non-portable between kernel versions, and they don't support "
33754 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
33755 "using a label or UUID, use an ISO image instead."
33756 msgstr ""
33757
33758 #. type: =head2
33759 #: ../src/guestfs.pod:306
33760 msgid "COPYING"
33761 msgstr ""
33762
33763 #. type: textblock
33764 #: ../src/guestfs.pod:308
33765 msgid ""
33766 "There are various different commands for copying between files and devices "
33767 "and in and out of the guest filesystem.  These are summarised in the table "
33768 "below."
33769 msgstr ""
33770
33771 #. type: =item
33772 #: ../src/guestfs.pod:314
33773 msgid "B<file> to B<file>"
33774 msgstr ""
33775
33776 #. type: textblock
33777 #: ../src/guestfs.pod:316
33778 msgid ""
33779 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
33780 "directories recursively."
33781 msgstr ""
33782
33783 #. type: textblock
33784 #: ../src/guestfs.pod:319
33785 msgid "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
33786 msgstr ""
33787
33788 #. type: =item
33789 #: ../src/guestfs.pod:322
33790 msgid "B<file> to B<device>"
33791 msgstr ""
33792
33793 #. type: =item
33794 #: ../src/guestfs.pod:324
33795 msgid "B<device> to B<file>"
33796 msgstr ""
33797
33798 #. type: =item
33799 #: ../src/guestfs.pod:326
33800 msgid "B<device> to B<device>"
33801 msgstr ""
33802
33803 #. type: textblock
33804 #: ../src/guestfs.pod:328
33805 msgid ""
33806 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or "
33807 "L</guestfs_copy_device_to_device>."
33808 msgstr ""
33809
33810 #. type: textblock
33811 #: ../src/guestfs.pod:331
33812 msgid "Example: duplicate the contents of an LV:"
33813 msgstr ""
33814
33815 #. type: verbatim
33816 #: ../src/guestfs.pod:333
33817 #, no-wrap
33818 msgid ""
33819 " guestfs_copy_device_to_device (g,\n"
33820 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
33821 "         /* -1 marks the end of the list of optional parameters */\n"
33822 "         -1);\n"
33823 "\n"
33824 msgstr ""
33825
33826 #. type: textblock
33827 #: ../src/guestfs.pod:338
33828 msgid ""
33829 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
33830 "(C</dev/VG/Original>).  To copy less than the whole source device, use the "
33831 "optional C<size> parameter:"
33832 msgstr ""
33833
33834 #. type: verbatim
33835 #: ../src/guestfs.pod:342
33836 #, no-wrap
33837 msgid ""
33838 " guestfs_copy_device_to_device (g,\n"
33839 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
33840 "         GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
33841 "         -1);\n"
33842 "\n"
33843 msgstr ""
33844
33845 #. type: =item
33846 #: ../src/guestfs.pod:347
33847 msgid "B<file on the host> to B<file or device>"
33848 msgstr ""
33849
33850 #. type: textblock
33851 #: ../src/guestfs.pod:349
33852 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
33853 msgstr ""
33854
33855 #. type: =item
33856 #: ../src/guestfs.pod:351
33857 msgid "B<file or device> to B<file on the host>"
33858 msgstr ""
33859
33860 #. type: textblock
33861 #: ../src/guestfs.pod:353
33862 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
33863 msgstr ""
33864
33865 #. type: =head2
33866 #: ../src/guestfs.pod:357
33867 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
33868 msgstr ""
33869
33870 #. type: textblock
33871 #: ../src/guestfs.pod:359
33872 msgid ""
33873 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, "
33874 "L</guestfs_tar_out> etc appear to only take filenames as arguments, so it "
33875 "appears you can only upload and download to files.  However many Un*x-like "
33876 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, "
33877 "C</dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, "
33878 "stderr, and arbitrary file descriptor N."
33879 msgstr ""
33880
33881 #. type: textblock
33882 #: ../src/guestfs.pod:367
33883 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
33884 msgstr ""
33885
33886 #. type: verbatim
33887 #: ../src/guestfs.pod:370
33888 #, no-wrap
33889 msgid ""
33890 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33891 "\n"
33892 msgstr ""
33893
33894 #. type: textblock
33895 #: ../src/guestfs.pod:372
33896 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
33897 msgstr ""
33898
33899 #. type: verbatim
33900 #: ../src/guestfs.pod:374
33901 #, no-wrap
33902 msgid ""
33903 " char devfd[64];\n"
33904 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33905 " guestfs_tar_out (g, \"/\", devfd);\n"
33906 "\n"
33907 msgstr ""
33908
33909 #. type: =head2
33910 #: ../src/guestfs.pod:378
33911 msgid "LISTING FILES"
33912 msgstr ""
33913
33914 #. type: textblock
33915 #: ../src/guestfs.pod:380
33916 msgid ""
33917 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
33918 "L<guestfish(1)>-equivalent command C<ll>)."
33919 msgstr ""
33920
33921 #. type: textblock
33922 #: ../src/guestfs.pod:383
33923 msgid ""
33924 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
33925 "programs, as a flat list of strings."
33926 msgstr ""
33927
33928 #. type: textblock
33929 #: ../src/guestfs.pod:386
33930 msgid ""
33931 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
33932 "directory, plus additional information about each one.  It is more "
33933 "equivalent to using the L<readdir(3)> call on a local filesystem."
33934 msgstr ""
33935
33936 #. type: textblock
33937 #: ../src/guestfs.pod:390
33938 msgid ""
33939 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
33940 "files."
33941 msgstr ""
33942
33943 #. type: =head2
33944 #: ../src/guestfs.pod:393
33945 msgid "RUNNING COMMANDS"
33946 msgstr ""
33947
33948 #. type: textblock
33949 #: ../src/guestfs.pod:395
33950 msgid ""
33951 "Although libguestfs is primarily an API for manipulating files inside guest "
33952 "images, we also provide some limited facilities for running commands inside "
33953 "guests."
33954 msgstr ""
33955
33956 #. type: textblock
33957 #: ../src/guestfs.pod:399
33958 msgid "There are many limitations to this:"
33959 msgstr ""
33960
33961 #. type: textblock
33962 #: ../src/guestfs.pod:405
33963 msgid ""
33964 "The kernel version that the command runs under will be different from what "
33965 "it expects."
33966 msgstr ""
33967
33968 #. type: textblock
33969 #: ../src/guestfs.pod:410
33970 msgid ""
33971 "If the command needs to communicate with daemons, then most likely they "
33972 "won't be running."
33973 msgstr ""
33974
33975 #. type: textblock
33976 #: ../src/guestfs.pod:415
33977 msgid "The command will be running in limited memory."
33978 msgstr ""
33979
33980 #. type: textblock
33981 #: ../src/guestfs.pod:419
33982 msgid ""
33983 "The network may not be available unless you enable it (see "
33984 "L</guestfs_set_network>)."
33985 msgstr ""
33986
33987 #. type: textblock
33988 #: ../src/guestfs.pod:424
33989 msgid "Only supports Linux guests (not Windows, BSD, etc)."
33990 msgstr ""
33991
33992 #. type: textblock
33993 #: ../src/guestfs.pod:428
33994 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
33995 msgstr ""
33996
33997 #. type: textblock
33998 #: ../src/guestfs.pod:433
33999 msgid ""
34000 "For SELinux guests, you may need to enable SELinux and load policy first.  "
34001 "See L</SELINUX> in this manpage."
34002 msgstr ""
34003
34004 #. type: textblock
34005 #: ../src/guestfs.pod:438
34006 msgid ""
34007 "I<Security:> It is not safe to run commands from untrusted, possibly "
34008 "malicious guests.  These commands may attempt to exploit your program by "
34009 "sending unexpected output.  They could also try to exploit the Linux kernel "
34010 "or qemu provided by the libguestfs appliance.  They could use the network "
34011 "provided by the libguestfs appliance to bypass ordinary network partitions "
34012 "and firewalls.  They could use the elevated privileges or different SELinux "
34013 "context of your program to their advantage."
34014 msgstr ""
34015
34016 #. type: textblock
34017 #: ../src/guestfs.pod:447
34018 msgid ""
34019 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
34020 "(a script which runs when the guest next boots normally), and to have this "
34021 "script run the commands you want in the normal context of the running guest, "
34022 "network security and so on.  For information about other security issues, "
34023 "see L</SECURITY>."
34024 msgstr ""
34025
34026 #. type: textblock
34027 #: ../src/guestfs.pod:455
34028 msgid ""
34029 "The two main API calls to run commands are L</guestfs_command> and "
34030 "L</guestfs_sh> (there are also variations)."
34031 msgstr ""
34032
34033 #. type: textblock
34034 #: ../src/guestfs.pod:458
34035 msgid ""
34036 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
34037 "shell globs, redirections, etc will work."
34038 msgstr ""
34039
34040 #. type: =head2
34041 #: ../src/guestfs.pod:461
34042 msgid "CONFIGURATION FILES"
34043 msgstr ""
34044
34045 #. type: textblock
34046 #: ../src/guestfs.pod:463
34047 msgid ""
34048 "To read and write configuration files in Linux guest filesystems, we "
34049 "strongly recommend using Augeas.  For example, Augeas understands how to "
34050 "read and write, say, a Linux shadow password file or X.org configuration "
34051 "file, and so avoids you having to write that code."
34052 msgstr ""
34053
34054 #. type: textblock
34055 #: ../src/guestfs.pod:468
34056 msgid ""
34057 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
34058 "document Augeas itself here because there is excellent documentation on the "
34059 "L<http://augeas.net/> website."
34060 msgstr ""
34061
34062 #. type: textblock
34063 #: ../src/guestfs.pod:472
34064 msgid ""
34065 "If you don't want to use Augeas (you fool!) then try calling "
34066 "L</guestfs_read_lines> to get the file as a list of lines which you can "
34067 "iterate over."
34068 msgstr ""
34069
34070 #. type: =head2
34071 #: ../src/guestfs.pod:476
34072 msgid "SELINUX"
34073 msgstr ""
34074
34075 #. type: textblock
34076 #: ../src/guestfs.pod:478
34077 msgid ""
34078 "We support SELinux guests.  To ensure that labeling happens correctly in "
34079 "SELinux guests, you need to enable SELinux and load the guest's policy:"
34080 msgstr ""
34081
34082 #. type: textblock
34083 #: ../src/guestfs.pod:486
34084 msgid "Before launching, do:"
34085 msgstr ""
34086
34087 #. type: verbatim
34088 #: ../src/guestfs.pod:488
34089 #, no-wrap
34090 msgid ""
34091 " guestfs_set_selinux (g, 1);\n"
34092 "\n"
34093 msgstr ""
34094
34095 #. type: textblock
34096 #: ../src/guestfs.pod:492
34097 msgid ""
34098 "After mounting the guest's filesystem(s), load the policy.  This is best "
34099 "done by running the L<load_policy(8)> command in the guest itself:"
34100 msgstr ""
34101
34102 #. type: verbatim
34103 #: ../src/guestfs.pod:496
34104 #, no-wrap
34105 msgid ""
34106 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
34107 "\n"
34108 msgstr ""
34109
34110 #. type: textblock
34111 #: ../src/guestfs.pod:498
34112 msgid ""
34113 "(Older versions of C<load_policy> require you to specify the name of the "
34114 "policy file)."
34115 msgstr ""
34116
34117 #. type: textblock
34118 #: ../src/guestfs.pod:503
34119 msgid ""
34120 "Optionally, set the security context for the API.  The correct security "
34121 "context to use can only be known by inspecting the guest.  As an example:"
34122 msgstr ""
34123
34124 #. type: verbatim
34125 #: ../src/guestfs.pod:507
34126 #, no-wrap
34127 msgid ""
34128 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
34129 "\n"
34130 msgstr ""
34131
34132 #. type: textblock
34133 #: ../src/guestfs.pod:511
34134 msgid "This will work for running commands and editing existing files."
34135 msgstr ""
34136
34137 #. type: textblock
34138 #: ../src/guestfs.pod:513
34139 msgid ""
34140 "When new files are created, you may need to label them explicitly, for "
34141 "example by running the external command C<restorecon pathname>."
34142 msgstr ""
34143
34144 #. type: =head2
34145 #: ../src/guestfs.pod:517
34146 msgid "UMASK"
34147 msgstr ""
34148
34149 #. type: textblock
34150 #: ../src/guestfs.pod:519
34151 msgid ""
34152 "Certain calls are affected by the current file mode creation mask (the "
34153 "\"umask\").  In particular ones which create files or directories, such as "
34154 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
34155 "either the default mode that the file is created with or modifies the mode "
34156 "that you supply."
34157 msgstr ""
34158
34159 #. type: textblock
34160 #: ../src/guestfs.pod:525
34161 msgid ""
34162 "The default umask is C<022>, so files are created with modes such as C<0644> "
34163 "and directories with C<0755>."
34164 msgstr ""
34165
34166 #. type: textblock
34167 #: ../src/guestfs.pod:528
34168 msgid ""
34169 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
34170 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
34171 "L</guestfs_chmod> after creating each file or directory."
34172 msgstr ""
34173
34174 #. type: textblock
34175 #: ../src/guestfs.pod:532
34176 msgid "For more information about umask, see L<umask(2)>."
34177 msgstr ""
34178
34179 #. type: textblock
34180 #: ../src/guestfs.pod:536
34181 msgid ""
34182 "Libguestfs allows you to access Linux guests which have been encrypted using "
34183 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
34184 "standard.  This includes nearly all whole disk encryption systems used by "
34185 "modern Linux guests."
34186 msgstr ""
34187
34188 #. type: textblock
34189 #: ../src/guestfs.pod:542
34190 msgid ""
34191 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
34192 "returns the string C<crypto_LUKS>)."
34193 msgstr ""
34194
34195 #. type: textblock
34196 #: ../src/guestfs.pod:545
34197 msgid ""
34198 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
34199 "will require the passphrase!"
34200 msgstr ""
34201
34202 #. type: textblock
34203 #: ../src/guestfs.pod:548
34204 msgid ""
34205 "Opening a LUKS device creates a new device mapper device called "
34206 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
34207 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
34208 "decrypted from and encrypted to the underlying block device respectively."
34209 msgstr ""
34210
34211 #. type: textblock
34212 #: ../src/guestfs.pod:554
34213 msgid ""
34214 "LVM volume groups on the device can be made visible by calling "
34215 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
34216 "volume(s) can now be mounted in the usual way."
34217 msgstr ""
34218
34219 #. type: textblock
34220 #: ../src/guestfs.pod:558
34221 msgid ""
34222 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
34223 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
34224 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
34225 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
34226 "underlying encrypted block device)."
34227 msgstr ""
34228
34229 #. type: =head2
34230 #: ../src/guestfs.pod:565
34231 msgid "INSPECTION"
34232 msgstr ""
34233
34234 #. type: textblock
34235 #: ../src/guestfs.pod:567
34236 msgid ""
34237 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
34238 "contains operating systems, an install CD or a live CD.  (These APIs used to "
34239 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
34240 "version 1.5.3 the most frequently used part of this library has been "
34241 "rewritten in C and moved into the core code)."
34242 msgstr ""
34243
34244 #. type: textblock
34245 #: ../src/guestfs.pod:574
34246 msgid ""
34247 "Add all disks belonging to the unknown virtual machine and call "
34248 "L</guestfs_launch> in the usual way."
34249 msgstr ""
34250
34251 #. type: textblock
34252 #: ../src/guestfs.pod:577
34253 msgid ""
34254 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
34255 "and certain heuristics, and returns a list of operating systems that were "
34256 "found.  An empty list means none were found.  A single element is the root "
34257 "filesystem of the operating system.  For dual- or multi-boot guests, "
34258 "multiple roots can be returned, each one corresponding to a separate "
34259 "operating system.  (Multi-boot virtual machines are extremely rare in the "
34260 "world of virtualization, but since this scenario can happen, we have built "
34261 "libguestfs to deal with it.)"
34262 msgstr ""
34263
34264 #. type: textblock
34265 #: ../src/guestfs.pod:586
34266 msgid ""
34267 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
34268 "to get additional details about that operating system.  For example, call "
34269 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
34270 "Windows and Linux-based operating systems respectively."
34271 msgstr ""
34272
34273 #. type: textblock
34274 #: ../src/guestfs.pod:592
34275 msgid ""
34276 "Un*x-like and Linux-based operating systems usually consist of several "
34277 "filesystems which are mounted at boot time (for example, a separate boot "
34278 "partition mounted on C</boot>).  The inspection rules are able to detect how "
34279 "filesystems correspond to mount points.  Call "
34280 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
34281 "hash table like this example:"
34282 msgstr ""
34283
34284 #. type: verbatim
34285 #: ../src/guestfs.pod:599
34286 #, no-wrap
34287 msgid ""
34288 " /boot => /dev/sda1\n"
34289 " /     => /dev/vg_guest/lv_root\n"
34290 " /usr  => /dev/vg_guest/lv_usr\n"
34291 "\n"
34292 msgstr ""
34293
34294 #. type: textblock
34295 #: ../src/guestfs.pod:603
34296 msgid ""
34297 "The caller can then make calls to L</guestfs_mount_options> to mount the "
34298 "filesystems as suggested."
34299 msgstr ""
34300
34301 #. type: textblock
34302 #: ../src/guestfs.pod:606
34303 msgid ""
34304 "Be careful to mount filesystems in the right order (eg. C</> before "
34305 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
34306 "work."
34307 msgstr ""
34308
34309 #. type: textblock
34310 #: ../src/guestfs.pod:610
34311 msgid ""
34312 "Inspection currently only works for some common operating systems.  "
34313 "Contributors are welcome to send patches for other operating systems that we "
34314 "currently cannot detect."
34315 msgstr ""
34316
34317 #. type: textblock
34318 #: ../src/guestfs.pod:614
34319 msgid ""
34320 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
34321 "for more details.  The L</guestfs_inspect_os> function just ignores any "
34322 "encrypted devices."
34323 msgstr ""
34324
34325 #. type: textblock
34326 #: ../src/guestfs.pod:618
34327 msgid ""
34328 "A note on the implementation: The call L</guestfs_inspect_os> performs "
34329 "inspection and caches the results in the guest handle.  Subsequent calls to "
34330 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
34331 "re-read the disks.  If you change the content of the guest disks, you can "
34332 "redo inspection by calling L</guestfs_inspect_os> again.  "
34333 "(L</guestfs_inspect_list_applications> works a little differently from the "
34334 "other calls and does read the disks.  See documentation for that function "
34335 "for details)."
34336 msgstr ""
34337
34338 #. type: =head3
34339 #: ../src/guestfs.pod:627
34340 msgid "INSPECTING INSTALL DISKS"
34341 msgstr ""
34342
34343 #. type: textblock
34344 #: ../src/guestfs.pod:629
34345 msgid ""
34346 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
34347 "CDs and more."
34348 msgstr ""
34349
34350 #. type: textblock
34351 #: ../src/guestfs.pod:632
34352 msgid ""
34353 "Call L</guestfs_inspect_get_format> to return the format of the operating "
34354 "system, which currently can be C<installed> (a regular operating system) or "
34355 "C<installer> (some sort of install disk)."
34356 msgstr ""
34357
34358 #. type: textblock
34359 #: ../src/guestfs.pod:636
34360 msgid ""
34361 "Further information is available about the operating system that can be "
34362 "installed using the regular inspection APIs like "
34363 "L</guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> "
34364 "etc."
34365 msgstr ""
34366
34367 #. type: textblock
34368 #: ../src/guestfs.pod:641
34369 msgid ""
34370 "Some additional information specific to installer disks is also available "
34371 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and "
34372 "L</guestfs_inspect_is_multipart> calls."
34373 msgstr ""
34374
34375 #. type: =head2
34376 #: ../src/guestfs.pod:646
34377 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
34378 msgstr ""
34379
34380 #. type: textblock
34381 #: ../src/guestfs.pod:648
34382 msgid ""
34383 "Libguestfs can mount NTFS partitions.  It does this using the "
34384 "L<http://www.ntfs-3g.org/> driver."
34385 msgstr ""
34386
34387 #. type: =head3
34388 #: ../src/guestfs.pod:651
34389 msgid "DRIVE LETTERS AND PATHS"
34390 msgstr ""
34391
34392 #. type: textblock
34393 #: ../src/guestfs.pod:653
34394 msgid ""
34395 "DOS and Windows still use drive letters, and the filesystems are always "
34396 "treated as case insensitive by Windows itself, and therefore you might find "
34397 "a Windows configuration file referring to a path like "
34398 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
34399 "that directory might be referred to as C</WINDOWS/System32>."
34400 msgstr ""
34401
34402 #. type: textblock
34403 #: ../src/guestfs.pod:659
34404 msgid ""
34405 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
34406 "L</guestfs_inspect_get_drive_mappings>)"
34407 msgstr ""
34408
34409 #. type: textblock
34410 #: ../src/guestfs.pod:662
34411 msgid ""
34412 "Dealing with separator characters (backslash vs forward slash) is outside "
34413 "the scope of libguestfs, but usually a simple character replacement will "
34414 "work."
34415 msgstr ""
34416
34417 #. type: textblock
34418 #: ../src/guestfs.pod:666
34419 msgid ""
34420 "To resolve the case insensitivity of paths, call "
34421 "L</guestfs_case_sensitive_path>."
34422 msgstr ""
34423
34424 #. type: =head3
34425 #: ../src/guestfs.pod:669
34426 msgid "ACCESSING THE WINDOWS REGISTRY"
34427 msgstr ""
34428
34429 #. type: textblock
34430 #: ../src/guestfs.pod:671
34431 msgid ""
34432 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
34433 "files, through the library C<hivex> which is part of the libguestfs project "
34434 "although ships as a separate tarball.  You have to locate and download the "
34435 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
34436 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
34437 "L<virt-win-reg(1)> for more help on this issue."
34438 msgstr ""
34439
34440 #. type: =head3
34441 #: ../src/guestfs.pod:679
34442 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
34443 msgstr ""
34444
34445 #. type: textblock
34446 #: ../src/guestfs.pod:681
34447 msgid ""
34448 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
34449 "provide something which looks like a Linux symlink.  The way it tries to do "
34450 "the rewriting is described here:"
34451 msgstr ""
34452
34453 #. type: textblock
34454 #: ../src/guestfs.pod:685
34455 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-symbolic-links/>"
34456 msgstr ""
34457
34458 #. type: textblock
34459 #: ../src/guestfs.pod:687
34460 msgid ""
34461 "The essential problem is that ntfs-3g simply does not have enough "
34462 "information to do a correct job.  NTFS links can contain drive letters and "
34463 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
34464 "It is almost certainly the case that libguestfs callers should ignore what "
34465 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
34466 msgstr ""
34467
34468 #. type: textblock
34469 #: ../src/guestfs.pod:694
34470 msgid ""
34471 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use "
34472 "L</guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
34473 "attribute, and read the raw reparse data from that (you can find the format "
34474 "documented in various places around the web)."
34475 msgstr ""
34476
34477 #. type: =head3
34478 #: ../src/guestfs.pod:699
34479 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
34480 msgstr ""
34481
34482 #. type: textblock
34483 #: ../src/guestfs.pod:701
34484 msgid ""
34485 "There are other useful extended attributes that can be read from ntfs-3g "
34486 "filesystems (using L</guestfs_getxattr>).  See:"
34487 msgstr ""
34488
34489 #. type: textblock
34490 #: ../src/guestfs.pod:704
34491 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
34492 msgstr ""
34493
34494 #. type: =head2
34495 #: ../src/guestfs.pod:706
34496 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
34497 msgstr ""
34498
34499 #. type: textblock
34500 #: ../src/guestfs.pod:708
34501 msgid ""
34502 "Although we don't want to discourage you from using the C API, we will "
34503 "mention here that the same API is also available in other languages."
34504 msgstr ""
34505
34506 #. type: textblock
34507 #: ../src/guestfs.pod:711
34508 msgid ""
34509 "The API is broadly identical in all supported languages.  This means that "
34510 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
34511 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
34512 "OCaml.  In other words, a straightforward, predictable isomorphism between "
34513 "each language."
34514 msgstr ""
34515
34516 #. type: textblock
34517 #: ../src/guestfs.pod:717
34518 msgid ""
34519 "Error messages are automatically transformed into exceptions if the language "
34520 "supports it."
34521 msgstr ""
34522
34523 #. type: textblock
34524 #: ../src/guestfs.pod:720
34525 msgid ""
34526 "We don't try to \"object orientify\" parts of the API in OO languages, "
34527 "although contributors are welcome to write higher level APIs above what we "
34528 "provide in their favourite languages if they wish."
34529 msgstr ""
34530
34531 #. type: =item
34532 #: ../src/guestfs.pod:726
34533 msgid "B<C++>"
34534 msgstr ""
34535
34536 #. type: textblock
34537 #: ../src/guestfs.pod:728
34538 msgid ""
34539 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
34540 "identical to the C API.  C++ classes and exceptions are not used."
34541 msgstr ""
34542
34543 #. type: =item
34544 #: ../src/guestfs.pod:732
34545 msgid "B<C#>"
34546 msgstr ""
34547
34548 #. type: textblock
34549 #: ../src/guestfs.pod:734
34550 msgid ""
34551 "The C# bindings are highly experimental.  Please read the warnings at the "
34552 "top of C<csharp/Libguestfs.cs>."
34553 msgstr ""
34554
34555 #. type: =item
34556 #: ../src/guestfs.pod:737
34557 msgid "B<Erlang>"
34558 msgstr ""
34559
34560 #. type: textblock
34561 #: ../src/guestfs.pod:739
34562 msgid "See L<guestfs-erlang(3)>."
34563 msgstr ""
34564
34565 #. type: =item
34566 #: ../src/guestfs.pod:741
34567 msgid "B<Haskell>"
34568 msgstr ""
34569
34570 #. type: textblock
34571 #: ../src/guestfs.pod:743
34572 msgid ""
34573 "This is the only language binding that is working but incomplete.  Only "
34574 "calls which return simple integers have been bound in Haskell, and we are "
34575 "looking for help to complete this binding."
34576 msgstr ""
34577
34578 #. type: =item
34579 #: ../src/guestfs.pod:747
34580 msgid "B<Java>"
34581 msgstr ""
34582
34583 #. type: textblock
34584 #: ../src/guestfs.pod:749
34585 msgid ""
34586 "Full documentation is contained in the Javadoc which is distributed with "
34587 "libguestfs.  For examples, see L<guestfs-java(3)>."
34588 msgstr ""
34589
34590 #. type: =item
34591 #: ../src/guestfs.pod:752
34592 msgid "B<OCaml>"
34593 msgstr ""
34594
34595 #. type: textblock
34596 #: ../src/guestfs.pod:754
34597 msgid "See L<guestfs-ocaml(3)>."
34598 msgstr ""
34599
34600 #. type: =item
34601 #: ../src/guestfs.pod:756
34602 msgid "B<Perl>"
34603 msgstr ""
34604
34605 #. type: textblock
34606 #: ../src/guestfs.pod:758
34607 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
34608 msgstr ""
34609
34610 #. type: =item
34611 #: ../src/guestfs.pod:760
34612 msgid "B<PHP>"
34613 msgstr ""
34614
34615 #. type: textblock
34616 #: ../src/guestfs.pod:762
34617 msgid ""
34618 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
34619 "the php-libguestfs package for your distribution."
34620 msgstr ""
34621
34622 #. type: textblock
34623 #: ../src/guestfs.pod:765
34624 msgid "The PHP binding only works correctly on 64 bit machines."
34625 msgstr ""
34626
34627 #. type: =item
34628 #: ../src/guestfs.pod:767
34629 msgid "B<Python>"
34630 msgstr ""
34631
34632 #. type: textblock
34633 #: ../src/guestfs.pod:769
34634 msgid "See L<guestfs-python(3)>."
34635 msgstr ""
34636
34637 #. type: =item
34638 #: ../src/guestfs.pod:771
34639 msgid "B<Ruby>"
34640 msgstr ""
34641
34642 #. type: textblock
34643 #: ../src/guestfs.pod:773
34644 msgid "See L<guestfs-ruby(3)>."
34645 msgstr ""
34646
34647 #. type: =item
34648 #: ../src/guestfs.pod:775
34649 msgid "B<shell scripts>"
34650 msgstr ""
34651
34652 #. type: textblock
34653 #: ../src/guestfs.pod:777
34654 msgid "See L<guestfish(1)>."
34655 msgstr ""
34656
34657 #. type: =head2
34658 #: ../src/guestfs.pod:781
34659 msgid "LIBGUESTFS GOTCHAS"
34660 msgstr ""
34661
34662 #. type: textblock
34663 #: ../src/guestfs.pod:783
34664 msgid ""
34665 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
34666 "system [...] that works in the way it is documented but is counterintuitive "
34667 "and almost invites mistakes.\""
34668 msgstr ""
34669
34670 #. type: textblock
34671 #: ../src/guestfs.pod:787
34672 msgid ""
34673 "Since we developed libguestfs and the associated tools, there are several "
34674 "things we would have designed differently, but are now stuck with for "
34675 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
34676 "release, you can expect these to change.  Beware of them."
34677 msgstr ""
34678
34679 #. type: =item
34680 #: ../src/guestfs.pod:795
34681 msgid "Autosync / forgetting to sync."
34682 msgstr ""
34683
34684 #. type: textblock
34685 #: ../src/guestfs.pod:797
34686 msgid ""
34687 "I<Update:> Autosync is enabled by default for all API users starting from "
34688 "libguestfs 1.5.24.  This section only applies to older versions."
34689 msgstr ""
34690
34691 #. type: textblock
34692 #: ../src/guestfs.pod:800
34693 msgid ""
34694 "When modifying a filesystem from C or another language, you B<must> unmount "
34695 "all filesystems and call L</guestfs_sync> explicitly before you close the "
34696 "libguestfs handle.  You can also call:"
34697 msgstr ""
34698
34699 #. type: verbatim
34700 #: ../src/guestfs.pod:804
34701 #, no-wrap
34702 msgid ""
34703 " guestfs_set_autosync (g, 1);\n"
34704 "\n"
34705 msgstr ""
34706
34707 #. type: textblock
34708 #: ../src/guestfs.pod:806
34709 msgid ""
34710 "to have the unmount/sync done automatically for you when the handle 'g' is "
34711 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
34712 "q.v.)"
34713 msgstr ""
34714
34715 #. type: textblock
34716 #: ../src/guestfs.pod:810
34717 msgid ""
34718 "If you forget to do this, then it is entirely possible that your changes "
34719 "won't be written out, or will be partially written, or (very rarely) that "
34720 "you'll get disk corruption."
34721 msgstr ""
34722
34723 #. type: textblock
34724 #: ../src/guestfs.pod:814
34725 msgid ""
34726 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
34727 "guestfish scripts that forget to sync will work just fine, which can make "
34728 "this very puzzling if you are trying to debug a problem."
34729 msgstr ""
34730
34731 #. type: =item
34732 #: ../src/guestfs.pod:818
34733 msgid "Mount option C<-o sync> should not be the default."
34734 msgstr ""
34735
34736 #. type: textblock
34737 #: ../src/guestfs.pod:820
34738 msgid ""
34739 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
34740 "libguestfs 1.13.16.  This section only applies to older versions."
34741 msgstr ""
34742
34743 #. type: textblock
34744 #: ../src/guestfs.pod:823
34745 msgid ""
34746 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
34747 "However C<-o sync> does not add any reliability benefit, but does have a "
34748 "very large performance impact."
34749 msgstr ""
34750
34751 #. type: textblock
34752 #: ../src/guestfs.pod:827
34753 msgid ""
34754 "The work around is to use L</guestfs_mount_options> and set the mount "
34755 "options that you actually want to use."
34756 msgstr ""
34757
34758 #. type: =item
34759 #: ../src/guestfs.pod:830
34760 msgid "Read-only should be the default."
34761 msgstr ""
34762
34763 #. type: textblock
34764 #: ../src/guestfs.pod:832
34765 msgid ""
34766 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
34767 "specify I<--rw> if you want to make changes to the image."
34768 msgstr ""
34769
34770 #. type: textblock
34771 #: ../src/guestfs.pod:835
34772 msgid "This would reduce the potential to corrupt live VM images."
34773 msgstr ""
34774
34775 #. type: textblock
34776 #: ../src/guestfs.pod:837
34777 msgid ""
34778 "Note that many filesystems change the disk when you just mount and unmount, "
34779 "even if you didn't perform any writes.  You need to use "
34780 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
34781 msgstr ""
34782
34783 #. type: =item
34784 #: ../src/guestfs.pod:841
34785 msgid "guestfish command line is hard to use."
34786 msgstr ""
34787
34788 #. type: textblock
34789 #: ../src/guestfs.pod:843
34790 msgid ""
34791 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
34792 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
34793 "exist, so it fails.  In earlier versions of guestfish the error message was "
34794 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
34795 "we should have used C<guestfish -c command> to run commands."
34796 msgstr ""
34797
34798 #. type: =item
34799 #: ../src/guestfs.pod:850
34800 msgid "guestfish megabyte modifiers don't work right on all commands"
34801 msgstr ""
34802
34803 #. type: textblock
34804 #: ../src/guestfs.pod:852
34805 msgid ""
34806 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
34807 "other modifiers).  What guestfish actually does is to multiply the number "
34808 "part by the modifier part and pass the result to the C API.  However this "
34809 "doesn't work for a few APIs which aren't expecting bytes, but are already "
34810 "expecting some other unit (eg. megabytes)."
34811 msgstr ""
34812
34813 #. type: textblock
34814 #: ../src/guestfs.pod:859
34815 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
34816 msgstr ""
34817
34818 #. type: verbatim
34819 #: ../src/guestfs.pod:861
34820 #, no-wrap
34821 msgid ""
34822 " lvcreate LV VG 100M\n"
34823 "\n"
34824 msgstr ""
34825
34826 #. type: textblock
34827 #: ../src/guestfs.pod:863
34828 msgid ""
34829 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
34830 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
34831 "megabytes * megabytes) logical volume.  The error message you get from this "
34832 "is also a little obscure."
34833 msgstr ""
34834
34835 #. type: textblock
34836 #: ../src/guestfs.pod:868
34837 msgid ""
34838 "This could be fixed in the generator by specially marking parameters and "
34839 "return values which take bytes or other units."
34840 msgstr ""
34841
34842 #. type: =item
34843 #: ../src/guestfs.pod:871
34844 msgid "Ambiguity between devices and paths"
34845 msgstr ""
34846
34847 #. type: textblock
34848 #: ../src/guestfs.pod:873
34849 msgid ""
34850 "There is a subtle ambiguity in the API between a device name "
34851 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
34852 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
34853 msgstr ""
34854
34855 #. type: textblock
34856 #: ../src/guestfs.pod:878
34857 msgid ""
34858 "In the current API we usually resolve this ambiguity by having two separate "
34859 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
34860 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
34861 "detecting if the path supplied begins with C</dev/>."
34862 msgstr ""
34863
34864 #. type: textblock
34865 #: ../src/guestfs.pod:884
34866 msgid ""
34867 "To avoid both the ambiguity and the need to duplicate some calls, we could "
34868 "make paths/devices into structured names.  One way to do this would be to "
34869 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
34870 "aspect of grub.  Another way would be to use a structured type, equivalent "
34871 "to this OCaml type:"
34872 msgstr ""
34873
34874 #. type: verbatim
34875 #: ../src/guestfs.pod:890
34876 #, no-wrap
34877 msgid ""
34878 " type path = Path of string | Device of int | Partition of int * int\n"
34879 "\n"
34880 msgstr ""
34881
34882 #. type: textblock
34883 #: ../src/guestfs.pod:892
34884 msgid "which would allow you to pass arguments like:"
34885 msgstr ""
34886
34887 #. type: verbatim
34888 #: ../src/guestfs.pod:894
34889 #, no-wrap
34890 msgid ""
34891 " Path \"/foo/bar\"\n"
34892 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
34893 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
34894 " Path \"/dev/sdb2\"    (* not a device *)\n"
34895 "\n"
34896 msgstr ""
34897
34898 #. type: textblock
34899 #: ../src/guestfs.pod:899
34900 msgid ""
34901 "As you can see there are still problems to resolve even with this "
34902 "representation.  Also consider how it might work in guestfish."
34903 msgstr ""
34904
34905 #. type: =head2
34906 #: ../src/guestfs.pod:904
34907 msgid "KEYS AND PASSPHRASES"
34908 msgstr ""
34909
34910 #. type: textblock
34911 #: ../src/guestfs.pod:906
34912 msgid ""
34913 "Certain libguestfs calls take a parameter that contains sensitive key "
34914 "material, passed in as a C string."
34915 msgstr ""
34916
34917 #. type: textblock
34918 #: ../src/guestfs.pod:909
34919 msgid ""
34920 "In the future we would hope to change the libguestfs implementation so that "
34921 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
34922 "swap.  However this is I<not> done at the moment, because of the complexity "
34923 "of such an implementation."
34924 msgstr ""
34925
34926 #. type: textblock
34927 #: ../src/guestfs.pod:914
34928 msgid ""
34929 "Therefore you should be aware that any key parameter you pass to libguestfs "
34930 "might end up being written out to the swap partition.  If this is a concern, "
34931 "scrub the swap partition or don't use libguestfs on encrypted devices."
34932 msgstr ""
34933
34934 #. type: =head2
34935 #: ../src/guestfs.pod:919
34936 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
34937 msgstr ""
34938
34939 #. type: textblock
34940 #: ../src/guestfs.pod:921
34941 msgid ""
34942 "All high-level libguestfs actions are synchronous.  If you want to use "
34943 "libguestfs asynchronously then you must create a thread."
34944 msgstr ""
34945
34946 #. type: textblock
34947 #: ../src/guestfs.pod:924
34948 msgid ""
34949 "Only use the handle from a single thread.  Either use the handle exclusively "
34950 "from one thread, or provide your own mutex so that two threads cannot issue "
34951 "calls on the same handle at the same time."
34952 msgstr ""
34953
34954 #. type: textblock
34955 #: ../src/guestfs.pod:928
34956 msgid ""
34957 "See the graphical program guestfs-browser for one possible architecture for "
34958 "multithreaded programs using libvirt and libguestfs."
34959 msgstr ""
34960
34961 #. type: =head2
34962 #: ../src/guestfs.pod:931
34963 msgid "PATH"
34964 msgstr ""
34965
34966 #. type: textblock
34967 #: ../src/guestfs.pod:933
34968 msgid ""
34969 "Libguestfs needs a supermin appliance, which it finds by looking along an "
34970 "internal path."
34971 msgstr ""
34972
34973 #. type: textblock
34974 #: ../src/guestfs.pod:936
34975 msgid ""
34976 "By default it looks for these in the directory C<$libdir/guestfs> "
34977 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
34978 msgstr ""
34979
34980 #. type: textblock
34981 #: ../src/guestfs.pod:939
34982 msgid ""
34983 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
34984 "to change the directories that libguestfs will search in.  The value is a "
34985 "colon-separated list of paths.  The current directory is I<not> searched "
34986 "unless the path contains an empty element or C<.>.  For example "
34987 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
34988 "then C</usr/lib/guestfs>."
34989 msgstr ""
34990
34991 #. type: =head2
34992 #: ../src/guestfs.pod:946
34993 msgid "QEMU WRAPPERS"
34994 msgstr ""
34995
34996 #. type: textblock
34997 #: ../src/guestfs.pod:948
34998 msgid ""
34999 "If you want to compile your own qemu, run qemu from a non-standard location, "
35000 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
35001 "around qemu."
35002 msgstr ""
35003
35004 #. type: textblock
35005 #: ../src/guestfs.pod:952
35006 msgid ""
35007 "There is one important rule to remember: you I<must C<exec qemu>> as the "
35008 "last command in the shell script (so that qemu replaces the shell and "
35009 "becomes the direct child of the libguestfs-using program).  If you don't do "
35010 "this, then the qemu process won't be cleaned up correctly."
35011 msgstr ""
35012
35013 #. type: textblock
35014 #: ../src/guestfs.pod:957
35015 msgid ""
35016 "Here is an example of a wrapper, where I have built my own copy of qemu from "
35017 "source:"
35018 msgstr ""
35019
35020 #. type: verbatim
35021 #: ../src/guestfs.pod:960
35022 #, no-wrap
35023 msgid ""
35024 " #!/bin/sh -\n"
35025 " qemudir=/home/rjones/d/qemu\n"
35026 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
35027 "\"$@\"\n"
35028 "\n"
35029 msgstr ""
35030
35031 #. type: textblock
35032 #: ../src/guestfs.pod:964
35033 msgid ""
35034 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
35035 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
35036 "example:"
35037 msgstr ""
35038
35039 #. type: verbatim
35040 #: ../src/guestfs.pod:968
35041 #, no-wrap
35042 msgid ""
35043 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
35044 "\n"
35045 msgstr ""
35046
35047 #. type: textblock
35048 #: ../src/guestfs.pod:970
35049 msgid ""
35050 "Note that libguestfs also calls qemu with the -help and -version options in "
35051 "order to determine features."
35052 msgstr ""
35053
35054 #. type: textblock
35055 #: ../src/guestfs.pod:973
35056 msgid ""
35057 "Wrappers can also be used to edit the options passed to qemu.  In the "
35058 "following example, the C<-machine ...> option (C<-machine> and the following "
35059 "argument) are removed from the command line and replaced with C<-machine "
35060 "pc,accel=tcg>.  The while loop iterates over the options until it finds the "
35061 "right one to remove, putting the remaining options into the C<args> array."
35062 msgstr ""
35063
35064 #. type: verbatim
35065 #: ../src/guestfs.pod:982
35066 #, no-wrap
35067 msgid ""
35068 " i=0\n"
35069 " while [ $# -gt 0 ]; do\n"
35070 "     case \"$1\" in\n"
35071 "     -machine)\n"
35072 "         shift 2;;\n"
35073 "     *)\n"
35074 "         args[i]=\"$1\"\n"
35075 "         (( i++ ))\n"
35076 "         shift ;;\n"
35077 "     esac\n"
35078 " done\n"
35079 " \n"
35080 msgstr ""
35081
35082 #. type: verbatim
35083 #: ../src/guestfs.pod:994
35084 #, no-wrap
35085 msgid ""
35086 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
35087 "\n"
35088 msgstr ""
35089
35090 #. type: =head2
35091 #: ../src/guestfs.pod:996
35092 msgid "ATTACHING TO RUNNING DAEMONS"
35093 msgstr ""
35094
35095 #. type: textblock
35096 #: ../src/guestfs.pod:998
35097 msgid ""
35098 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
35099 "babies.  Use with caution."
35100 msgstr ""
35101
35102 #. type: textblock
35103 #: ../src/guestfs.pod:1001
35104 msgid ""
35105 "I<Note (2):> This section explains how to attach to a running daemon from a "
35106 "low level perspective.  For most users, simply using virt tools such as "
35107 "L<guestfish(1)> with the I<--live> option will \"just work\"."
35108 msgstr ""
35109
35110 #. type: =head3
35111 #: ../src/guestfs.pod:1005
35112 msgid "Using guestfs_set_attach_method"
35113 msgstr ""
35114
35115 #. type: textblock
35116 #: ../src/guestfs.pod:1007
35117 msgid ""
35118 "By calling L</guestfs_set_attach_method> you can change how the library "
35119 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read "
35120 "L</ARCHITECTURE> for some background)."
35121 msgstr ""
35122
35123 #. type: textblock
35124 #: ../src/guestfs.pod:1011
35125 msgid ""
35126 "The normal attach method is C<appliance>, where a small appliance is created "
35127 "containing the daemon, and then the library connects to this."
35128 msgstr ""
35129
35130 #. type: textblock
35131 #: ../src/guestfs.pod:1014
35132 msgid ""
35133 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
35134 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
35135 "daemon over the Unix domain socket."
35136 msgstr ""
35137
35138 #. type: textblock
35139 #: ../src/guestfs.pod:1018
35140 msgid ""
35141 "The normal use for this is to connect to a running virtual machine that "
35142 "contains a C<guestfsd> daemon, and send commands so you can read and write "
35143 "files inside the live virtual machine."
35144 msgstr ""
35145
35146 #. type: =head3
35147 #: ../src/guestfs.pod:1022
35148 msgid "Using guestfs_add_domain with live flag"
35149 msgstr ""
35150
35151 #. type: textblock
35152 #: ../src/guestfs.pod:1024
35153 msgid ""
35154 "L</guestfs_add_domain> provides some help for getting the correct attach "
35155 "method.  If you pass the C<live> option to this function, then (if the "
35156 "virtual machine is running) it will examine the libvirt XML looking for a "
35157 "virtio-serial channel to connect to:"
35158 msgstr ""
35159
35160 #. type: verbatim
35161 #: ../src/guestfs.pod:1030
35162 #, no-wrap
35163 msgid ""
35164 " <domain>\n"
35165 "   ...\n"
35166 "   <devices>\n"
35167 "     ...\n"
35168 "     <channel type='unix'>\n"
35169 "       <source mode='bind' path='/path/to/socket'/>\n"
35170 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
35171 "     </channel>\n"
35172 "     ...\n"
35173 "   </devices>\n"
35174 " </domain>\n"
35175 "\n"
35176 msgstr ""
35177
35178 #. type: textblock
35179 #: ../src/guestfs.pod:1042
35180 msgid ""
35181 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
35182 "method to C<unix:/path/to/socket>."
35183 msgstr ""
35184
35185 #. type: textblock
35186 #: ../src/guestfs.pod:1045
35187 msgid ""
35188 "Some of the libguestfs tools (including guestfish) support a I<--live> "
35189 "option which is passed through to L</guestfs_add_domain> thus allowing you "
35190 "to attach to and modify live virtual machines."
35191 msgstr ""
35192
35193 #. type: textblock
35194 #: ../src/guestfs.pod:1049
35195 msgid ""
35196 "The virtual machine needs to have been set up beforehand so that it has the "
35197 "virtio-serial channel and so that guestfsd is running inside it."
35198 msgstr ""
35199
35200 #. type: =head2
35201 #: ../src/guestfs.pod:1053
35202 msgid "ABI GUARANTEE"
35203 msgstr ""
35204
35205 #. type: textblock
35206 #: ../src/guestfs.pod:1055
35207 msgid ""
35208 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
35209 "actions as outlined in this section.  Although we will deprecate some "
35210 "actions, for example if they get replaced by newer calls, we will keep the "
35211 "old actions forever.  This allows you the developer to program in confidence "
35212 "against the libguestfs API."
35213 msgstr ""
35214
35215 #. type: =head2
35216 #: ../src/guestfs.pod:1061
35217 msgid "BLOCK DEVICE NAMING"
35218 msgstr ""
35219
35220 #. type: textblock
35221 #: ../src/guestfs.pod:1063
35222 msgid ""
35223 "In the kernel there is now quite a profusion of schemata for naming block "
35224 "devices (in this context, by I<block device> I mean a physical or virtual "
35225 "hard drive).  The original Linux IDE driver used names starting with "
35226 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
35227 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
35228 "replacement for the old IDE driver (particularly for SATA devices) those "
35229 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
35230 "machines with paravirtualized drivers.  This has created several different "
35231 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
35232 "Xen PV disks."
35233 msgstr ""
35234
35235 #. type: textblock
35236 #: ../src/guestfs.pod:1075
35237 msgid ""
35238 "As discussed above, libguestfs uses a qemu appliance running an embedded "
35239 "Linux kernel to access block devices.  We can run a variety of appliances "
35240 "based on a variety of Linux kernels."
35241 msgstr ""
35242
35243 #. type: textblock
35244 #: ../src/guestfs.pod:1079
35245 msgid ""
35246 "This causes a problem for libguestfs because many API calls use device or "
35247 "partition names.  Working scripts and the recipe (example) scripts that we "
35248 "make available over the internet could fail if the naming scheme changes."
35249 msgstr ""
35250
35251 #. type: textblock
35252 #: ../src/guestfs.pod:1084
35253 msgid ""
35254 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
35255 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
35256 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
35257 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
35258 msgstr ""
35259
35260 #. type: textblock
35261 #: ../src/guestfs.pod:1090
35262 msgid ""
35263 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
35264 "L</guestfs_list_partitions> and similar calls return the true names of the "
35265 "devices and partitions as known to the appliance."
35266 msgstr ""
35267
35268 #. type: =head3
35269 #: ../src/guestfs.pod:1095
35270 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
35271 msgstr ""
35272
35273 #. type: textblock
35274 #: ../src/guestfs.pod:1097
35275 msgid ""
35276 "Usually this translation is transparent.  However in some (very rare)  cases "
35277 "you may need to know the exact algorithm.  Such cases include where you use "
35278 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
35279 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
35280 "devices."
35281 msgstr ""
35282
35283 #. type: textblock
35284 #: ../src/guestfs.pod:1103
35285 msgid ""
35286 "The algorithm is applied only to I<parameters> which are known to be either "
35287 "device or partition names.  Return values from functions such as "
35288 "L</guestfs_list_devices> are never changed."
35289 msgstr ""
35290
35291 #. type: textblock
35292 #: ../src/guestfs.pod:1111
35293 msgid "Is the string a parameter which is a device or partition name?"
35294 msgstr ""
35295
35296 #. type: textblock
35297 #: ../src/guestfs.pod:1115
35298 msgid "Does the string begin with C</dev/sd>?"
35299 msgstr ""
35300
35301 #. type: textblock
35302 #: ../src/guestfs.pod:1119
35303 msgid ""
35304 "Does the named device exist? If so, we use that device.  However if I<not> "
35305 "then we continue with this algorithm."
35306 msgstr ""
35307
35308 #. type: textblock
35309 #: ../src/guestfs.pod:1124
35310 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
35311 msgstr ""
35312
35313 #. type: textblock
35314 #: ../src/guestfs.pod:1126
35315 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
35316 msgstr ""
35317
35318 #. type: textblock
35319 #: ../src/guestfs.pod:1128
35320 msgid "If that named device exists, use it.  If not, continue."
35321 msgstr ""
35322
35323 #. type: textblock
35324 #: ../src/guestfs.pod:1132
35325 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
35326 msgstr ""
35327
35328 #. type: textblock
35329 #: ../src/guestfs.pod:1134
35330 msgid "If that named device exists, use it.  If not, return an error."
35331 msgstr ""
35332
35333 #. type: =head3
35334 #: ../src/guestfs.pod:1138
35335 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
35336 msgstr ""
35337
35338 #. type: textblock
35339 #: ../src/guestfs.pod:1140
35340 msgid ""
35341 "Although the standard naming scheme and automatic translation is useful for "
35342 "simple programs and guestfish scripts, for larger programs it is best not to "
35343 "rely on this mechanism."
35344 msgstr ""
35345
35346 #. type: textblock
35347 #: ../src/guestfs.pod:1144
35348 msgid ""
35349 "Where possible for maximum future portability programs using libguestfs "
35350 "should use these future-proof techniques:"
35351 msgstr ""
35352
35353 #. type: textblock
35354 #: ../src/guestfs.pod:1151
35355 msgid ""
35356 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
35357 "device names, and then use those names directly."
35358 msgstr ""
35359
35360 #. type: textblock
35361 #: ../src/guestfs.pod:1154
35362 msgid "Since those device names exist by definition, they will never be translated."
35363 msgstr ""
35364
35365 #. type: textblock
35366 #: ../src/guestfs.pod:1159
35367 msgid ""
35368 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
35369 "filesystem labels."
35370 msgstr ""
35371
35372 #. type: textblock
35373 #: ../src/guestfs.pod:1166
35374 msgid ""
35375 "This section discusses security implications of using libguestfs, "
35376 "particularly with untrusted or malicious guests or disk images."
35377 msgstr ""
35378
35379 #. type: =head2
35380 #: ../src/guestfs.pod:1169
35381 msgid "GENERAL SECURITY CONSIDERATIONS"
35382 msgstr ""
35383
35384 #. type: textblock
35385 #: ../src/guestfs.pod:1171
35386 msgid ""
35387 "Be careful with any files or data that you download from a guest (by "
35388 "\"download\" we mean not just the L</guestfs_download> command but any "
35389 "command that reads files, filenames, directories or anything else from a "
35390 "disk image).  An attacker could manipulate the data to fool your program "
35391 "into doing the wrong thing.  Consider cases such as:"
35392 msgstr ""
35393
35394 #. type: textblock
35395 #: ../src/guestfs.pod:1181
35396 msgid "the data (file etc) not being present"
35397 msgstr ""
35398
35399 #. type: textblock
35400 #: ../src/guestfs.pod:1185
35401 msgid "being present but empty"
35402 msgstr ""
35403
35404 #. type: textblock
35405 #: ../src/guestfs.pod:1189
35406 msgid "being much larger than normal"
35407 msgstr ""
35408
35409 #. type: textblock
35410 #: ../src/guestfs.pod:1193
35411 msgid "containing arbitrary 8 bit data"
35412 msgstr ""
35413
35414 #. type: textblock
35415 #: ../src/guestfs.pod:1197
35416 msgid "being in an unexpected character encoding"
35417 msgstr ""
35418
35419 #. type: textblock
35420 #: ../src/guestfs.pod:1201
35421 msgid "containing homoglyphs."
35422 msgstr ""
35423
35424 #. type: =head2
35425 #: ../src/guestfs.pod:1205
35426 msgid "SECURITY OF MOUNTING FILESYSTEMS"
35427 msgstr ""
35428
35429 #. type: textblock
35430 #: ../src/guestfs.pod:1207
35431 msgid ""
35432 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
35433 "(VFS) module can sometimes be escalated into exploits by deliberately "
35434 "creating a malicious, malformed filesystem.  These exploits are very severe "
35435 "for two reasons.  Firstly there are very many filesystem drivers in the "
35436 "kernel, and many of them are infrequently used and not much developer "
35437 "attention has been paid to the code.  Linux userspace helps potential "
35438 "crackers by detecting the filesystem type and automatically choosing the "
35439 "right VFS driver, even if that filesystem type is obscure or unexpected for "
35440 "the administrator.  Secondly, a kernel-level exploit is like a local root "
35441 "exploit (worse in some ways), giving immediate and total access to the "
35442 "system right down to the hardware level."
35443 msgstr ""
35444
35445 #. type: textblock
35446 #: ../src/guestfs.pod:1220
35447 msgid ""
35448 "That explains why you should never mount a filesystem from an untrusted "
35449 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
35450 "inside a qemu virtual machine, usually running as a non-root user.  The "
35451 "attacker would need to write a filesystem which first exploited the kernel, "
35452 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
35453 "the libguestfs protocol, and finally to be as serious as the host kernel "
35454 "exploit it would need to escalate its privileges to root.  This multi-step "
35455 "escalation, performed by a static piece of data, is thought to be extremely "
35456 "hard to do, although we never say 'never' about security issues."
35457 msgstr ""
35458
35459 #. type: textblock
35460 #: ../src/guestfs.pod:1231
35461 msgid ""
35462 "In any case callers can reduce the attack surface by forcing the filesystem "
35463 "type when mounting (use L</guestfs_mount_vfs>)."
35464 msgstr ""
35465
35466 #. type: =head2
35467 #: ../src/guestfs.pod:1234
35468 msgid "PROTOCOL SECURITY"
35469 msgstr ""
35470
35471 #. type: textblock
35472 #: ../src/guestfs.pod:1236
35473 msgid ""
35474 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
35475 "defined upper message size.  However a program that uses libguestfs must "
35476 "also take care - for example you can write a program that downloads a binary "
35477 "from a disk image and executes it locally, and no amount of protocol "
35478 "security will save you from the consequences."
35479 msgstr ""
35480
35481 #. type: =head2
35482 #: ../src/guestfs.pod:1242
35483 msgid "INSPECTION SECURITY"
35484 msgstr ""
35485
35486 #. type: textblock
35487 #: ../src/guestfs.pod:1244
35488 msgid ""
35489 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
35490 "directly from the guest, and these could contain any 8 bit data.  Callers "
35491 "should be careful to escape these before printing them to a structured file "
35492 "(for example, use HTML escaping if creating a web page)."
35493 msgstr ""
35494
35495 #. type: textblock
35496 #: ../src/guestfs.pod:1250
35497 msgid ""
35498 "Guest configuration may be altered in unusual ways by the administrator of "
35499 "the virtual machine, and may not reflect reality (particularly for untrusted "
35500 "or actively malicious guests).  For example we parse the hostname from "
35501 "configuration files like C</etc/sysconfig/network> that we find in the "
35502 "guest, but the guest administrator can easily manipulate these files to "
35503 "provide the wrong hostname."
35504 msgstr ""
35505
35506 #. type: textblock
35507 #: ../src/guestfs.pod:1258
35508 msgid ""
35509 "The inspection API parses guest configuration using two external libraries: "
35510 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
35511 "designed to be robust in the face of malicious data, although denial of "
35512 "service attacks are still possible, for example with oversized configuration "
35513 "files."
35514 msgstr ""
35515
35516 #. type: =head2
35517 #: ../src/guestfs.pod:1264
35518 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
35519 msgstr ""
35520
35521 #. type: textblock
35522 #: ../src/guestfs.pod:1266
35523 msgid ""
35524 "Be very cautious about running commands from the guest.  By running a "
35525 "command in the guest, you are giving CPU time to a binary that you do not "
35526 "control, under the same user account as the library, albeit wrapped in qemu "
35527 "virtualization.  More information and alternatives can be found in the "
35528 "section L</RUNNING COMMANDS>."
35529 msgstr ""
35530
35531 #. type: =head2
35532 #: ../src/guestfs.pod:1272
35533 msgid "CVE-2010-3851"
35534 msgstr ""
35535
35536 #. type: textblock
35537 #: ../src/guestfs.pod:1274
35538 msgid "https://bugzilla.redhat.com/642934"
35539 msgstr ""
35540
35541 #. type: textblock
35542 #: ../src/guestfs.pod:1276
35543 msgid ""
35544 "This security bug concerns the automatic disk format detection that qemu "
35545 "does on disk images."
35546 msgstr ""
35547
35548 #. type: textblock
35549 #: ../src/guestfs.pod:1279
35550 msgid ""
35551 "A raw disk image is just the raw bytes, there is no header.  Other disk "
35552 "images like qcow2 contain a special header.  Qemu deals with this by looking "
35553 "for one of the known headers, and if none is found then assuming the disk "
35554 "image must be raw."
35555 msgstr ""
35556
35557 #. type: textblock
35558 #: ../src/guestfs.pod:1284
35559 msgid ""
35560 "This allows a guest which has been given a raw disk image to write some "
35561 "other header.  At next boot (or when the disk image is accessed by "
35562 "libguestfs) qemu would do autodetection and think the disk image format was, "
35563 "say, qcow2 based on the header written by the guest."
35564 msgstr ""
35565
35566 #. type: textblock
35567 #: ../src/guestfs.pod:1289
35568 msgid ""
35569 "This in itself would not be a problem, but qcow2 offers many features, one "
35570 "of which is to allow a disk image to refer to another image (called the "
35571 "\"backing disk\").  It does this by placing the path to the backing disk "
35572 "into the qcow2 header.  This path is not validated and could point to any "
35573 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
35574 "\"holes\" in the qcow2 disk image, which of course is completely under the "
35575 "control of the attacker."
35576 msgstr ""
35577
35578 #. type: textblock
35579 #: ../src/guestfs.pod:1297
35580 msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
35581 msgstr ""
35582
35583 #. type: textblock
35584 #: ../src/guestfs.pod:1304
35585 msgid "You have enabled the network or have opened the disk in write mode."
35586 msgstr ""
35587
35588 #. type: textblock
35589 #: ../src/guestfs.pod:1308
35590 msgid ""
35591 "You are also running untrusted code from the guest (see L</RUNNING "
35592 "COMMANDS>)."
35593 msgstr ""
35594
35595 #. type: textblock
35596 #: ../src/guestfs.pod:1313
35597 msgid ""
35598 "The way to avoid this is to specify the expected disk format when adding "
35599 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
35600 "should always do this if the disk is raw format, and it's a good idea for "
35601 "other cases too."
35602 msgstr ""
35603
35604 #. type: textblock
35605 #: ../src/guestfs.pod:1318
35606 msgid ""
35607 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
35608 "format is fetched from libvirt and passed through."
35609 msgstr ""
35610
35611 #. type: textblock
35612 #: ../src/guestfs.pod:1321
35613 msgid ""
35614 "For libguestfs tools, use the I<--format> command line parameter as "
35615 "appropriate."
35616 msgstr ""
35617
35618 #. type: =head1
35619 #: ../src/guestfs.pod:1324
35620 msgid "CONNECTION MANAGEMENT"
35621 msgstr ""
35622
35623 #. type: =head2
35624 #: ../src/guestfs.pod:1326
35625 msgid "guestfs_h *"
35626 msgstr ""
35627
35628 #. type: textblock
35629 #: ../src/guestfs.pod:1328
35630 msgid ""
35631 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
35632 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
35633 "handle and release all resources used."
35634 msgstr ""
35635
35636 #. type: textblock
35637 #: ../src/guestfs.pod:1332
35638 msgid ""
35639 "For information on using multiple handles and threads, see the section "
35640 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> above."
35641 msgstr ""
35642
35643 #. type: =head2
35644 #: ../src/guestfs.pod:1335
35645 msgid "guestfs_create"
35646 msgstr ""
35647
35648 #. type: verbatim
35649 #: ../src/guestfs.pod:1337
35650 #, no-wrap
35651 msgid ""
35652 " guestfs_h *guestfs_create (void);\n"
35653 "\n"
35654 msgstr ""
35655
35656 #. type: textblock
35657 #: ../src/guestfs.pod:1339
35658 msgid "Create a connection handle."
35659 msgstr ""
35660
35661 #. type: textblock
35662 #: ../src/guestfs.pod:1341
35663 msgid ""
35664 "On success this returns a non-NULL pointer to a handle.  On error it returns "
35665 "NULL."
35666 msgstr ""
35667
35668 #. type: textblock
35669 #: ../src/guestfs.pod:1344
35670 msgid ""
35671 "You have to \"configure\" the handle after creating it.  This includes "
35672 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
35673 "handle at least once."
35674 msgstr ""
35675
35676 #. type: textblock
35677 #: ../src/guestfs.pod:1348
35678 msgid "After configuring the handle, you have to call L</guestfs_launch>."
35679 msgstr ""
35680
35681 #. type: textblock
35682 #: ../src/guestfs.pod:1350
35683 msgid ""
35684 "You may also want to configure error handling for the handle.  See the "
35685 "L</ERROR HANDLING> section below."
35686 msgstr ""
35687
35688 #. type: =head2
35689 #: ../src/guestfs.pod:1353
35690 msgid "guestfs_close"
35691 msgstr ""
35692
35693 #. type: verbatim
35694 #: ../src/guestfs.pod:1355
35695 #, no-wrap
35696 msgid ""
35697 " void guestfs_close (guestfs_h *g);\n"
35698 "\n"
35699 msgstr ""
35700
35701 #. type: textblock
35702 #: ../src/guestfs.pod:1357
35703 msgid "This closes the connection handle and frees up all resources used."
35704 msgstr ""
35705
35706 #. type: textblock
35707 #: ../src/guestfs.pod:1359
35708 msgid ""
35709 "If autosync was set on the handle and the handle was launched, then this "
35710 "implicitly calls various functions to unmount filesystems and sync the "
35711 "disk.  See L</guestfs_set_autosync> for more details."
35712 msgstr ""
35713
35714 #. type: textblock
35715 #: ../src/guestfs.pod:1363
35716 msgid "If a close callback was set on the handle, then it is called."
35717 msgstr ""
35718
35719 #. type: =head1
35720 #: ../src/guestfs.pod:1365
35721 msgid "ERROR HANDLING"
35722 msgstr ""
35723
35724 #. type: textblock
35725 #: ../src/guestfs.pod:1367
35726 msgid ""
35727 "API functions can return errors.  For example, almost all functions that "
35728 "return C<int> will return C<-1> to indicate an error."
35729 msgstr ""
35730
35731 #. type: textblock
35732 #: ../src/guestfs.pod:1370
35733 msgid ""
35734 "Additional information is available for errors: an error message string and "
35735 "optionally an error number (errno) if the thing that failed was a system "
35736 "call."
35737 msgstr ""
35738
35739 #. type: textblock
35740 #: ../src/guestfs.pod:1374
35741 msgid ""
35742 "You can get at the additional information about the last error on the handle "
35743 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
35744 "up an error handler with L</guestfs_set_error_handler>."
35745 msgstr ""
35746
35747 #. type: textblock
35748 #: ../src/guestfs.pod:1379
35749 msgid ""
35750 "When the handle is created, a default error handler is installed which "
35751 "prints the error message string to C<stderr>.  For small short-running "
35752 "command line programs it is sufficient to do:"
35753 msgstr ""
35754
35755 #. type: verbatim
35756 #: ../src/guestfs.pod:1383
35757 #, no-wrap
35758 msgid ""
35759 " if (guestfs_launch (g) == -1)\n"
35760 "   exit (EXIT_FAILURE);\n"
35761 "\n"
35762 msgstr ""
35763
35764 #. type: textblock
35765 #: ../src/guestfs.pod:1386
35766 msgid ""
35767 "since the default error handler will ensure that an error message has been "
35768 "printed to C<stderr> before the program exits."
35769 msgstr ""
35770
35771 #. type: textblock
35772 #: ../src/guestfs.pod:1389
35773 msgid ""
35774 "For other programs the caller will almost certainly want to install an "
35775 "alternate error handler or do error handling in-line like this:"
35776 msgstr ""
35777
35778 #. type: verbatim
35779 #: ../src/guestfs.pod:1392
35780 #, no-wrap
35781 msgid ""
35782 " /* This disables the default behaviour of printing errors\n"
35783 "    on stderr. */\n"
35784 " guestfs_set_error_handler (g, NULL, NULL);\n"
35785 " \n"
35786 msgstr ""
35787
35788 #. type: verbatim
35789 #: ../src/guestfs.pod:1396
35790 #, no-wrap
35791 msgid ""
35792 " if (guestfs_launch (g) == -1) {\n"
35793 "   /* Examine the error message and print it etc. */\n"
35794 "   char *msg = guestfs_last_error (g);\n"
35795 "   int errnum = guestfs_last_errno (g);\n"
35796 "   fprintf (stderr, \"%s\", msg);\n"
35797 "   if (errnum != 0)\n"
35798 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
35799 "   fprintf (stderr, \"\\n\");\n"
35800 "   /* ... */\n"
35801 " }\n"
35802 "\n"
35803 msgstr ""
35804
35805 #. type: textblock
35806 #: ../src/guestfs.pod:1407
35807 msgid ""
35808 "Out of memory errors are handled differently.  The default action is to call "
35809 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
35810 "L</guestfs_set_out_of_memory_handler>."
35811 msgstr ""
35812
35813 #. type: textblock
35814 #: ../src/guestfs.pod:1411
35815 msgid ""
35816 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
35817 "because there is no handle if this happens there is no way to get additional "
35818 "error information.  However L</guestfs_create> is supposed to be a "
35819 "lightweight operation which can only fail because of insufficient memory (it "
35820 "returns NULL in this case)."
35821 msgstr ""
35822
35823 #. type: =head2
35824 #: ../src/guestfs.pod:1417
35825 msgid "guestfs_last_error"
35826 msgstr ""
35827
35828 #. type: verbatim
35829 #: ../src/guestfs.pod:1419
35830 #, no-wrap
35831 msgid ""
35832 " const char *guestfs_last_error (guestfs_h *g);\n"
35833 "\n"
35834 msgstr ""
35835
35836 #. type: textblock
35837 #: ../src/guestfs.pod:1421
35838 msgid ""
35839 "This returns the last error message that happened on C<g>.  If there has not "
35840 "been an error since the handle was created, then this returns C<NULL>."
35841 msgstr ""
35842
35843 #. type: textblock
35844 #: ../src/guestfs.pod:1425
35845 msgid ""
35846 "The lifetime of the returned string is until the next error occurs, or "
35847 "L</guestfs_close> is called."
35848 msgstr ""
35849
35850 #. type: =head2
35851 #: ../src/guestfs.pod:1428
35852 msgid "guestfs_last_errno"
35853 msgstr ""
35854
35855 #. type: verbatim
35856 #: ../src/guestfs.pod:1430
35857 #, no-wrap
35858 msgid ""
35859 " int guestfs_last_errno (guestfs_h *g);\n"
35860 "\n"
35861 msgstr ""
35862
35863 #. type: textblock
35864 #: ../src/guestfs.pod:1432
35865 msgid "This returns the last error number (errno) that happened on C<g>."
35866 msgstr ""
35867
35868 #. type: textblock
35869 #: ../src/guestfs.pod:1434
35870 msgid "If successful, an errno integer not equal to zero is returned."
35871 msgstr ""
35872
35873 #. type: textblock
35874 #: ../src/guestfs.pod:1436
35875 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
35876 msgstr ""
35877
35878 #. type: textblock
35879 #: ../src/guestfs.pod:1443
35880 msgid "There has not been any error on the handle."
35881 msgstr ""
35882
35883 #. type: textblock
35884 #: ../src/guestfs.pod:1447
35885 msgid ""
35886 "There has been an error but the errno was meaningless.  This corresponds to "
35887 "the case where the error did not come from a failed system call, but for "
35888 "some other reason."
35889 msgstr ""
35890
35891 #. type: textblock
35892 #: ../src/guestfs.pod:1453
35893 msgid ""
35894 "There was an error from a failed system call, but for some reason the errno "
35895 "was not captured and returned.  This usually indicates a bug in libguestfs."
35896 msgstr ""
35897
35898 #. type: textblock
35899 #: ../src/guestfs.pod:1459
35900 msgid ""
35901 "Libguestfs tries to convert the errno from inside the applicance into a "
35902 "corresponding errno for the caller (not entirely trivial: the appliance "
35903 "might be running a completely different operating system from the library "
35904 "and error numbers are not standardized across Un*xen).  If this could not be "
35905 "done, then the error is translated to C<EINVAL>.  In practice this should "
35906 "only happen in very rare circumstances."
35907 msgstr ""
35908
35909 #. type: =head2
35910 #: ../src/guestfs.pod:1467
35911 msgid "guestfs_set_error_handler"
35912 msgstr ""
35913
35914 #. type: verbatim
35915 #: ../src/guestfs.pod:1469
35916 #, no-wrap
35917 msgid ""
35918 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35919 "                                           void *opaque,\n"
35920 "                                           const char *msg);\n"
35921 " void guestfs_set_error_handler (guestfs_h *g,\n"
35922 "                                 guestfs_error_handler_cb cb,\n"
35923 "                                 void *opaque);\n"
35924 "\n"
35925 msgstr ""
35926
35927 #. type: textblock
35928 #: ../src/guestfs.pod:1476
35929 msgid ""
35930 "The callback C<cb> will be called if there is an error.  The parameters "
35931 "passed to the callback are an opaque data pointer and the error message "
35932 "string."
35933 msgstr ""
35934
35935 #. type: textblock
35936 #: ../src/guestfs.pod:1480
35937 msgid ""
35938 "C<errno> is not passed to the callback.  To get that the callback must call "
35939 "L</guestfs_last_errno>."
35940 msgstr ""
35941
35942 #. type: textblock
35943 #: ../src/guestfs.pod:1483
35944 msgid ""
35945 "Note that the message string C<msg> is freed as soon as the callback "
35946 "function returns, so if you want to stash it somewhere you must make your "
35947 "own copy."
35948 msgstr ""
35949
35950 #. type: textblock
35951 #: ../src/guestfs.pod:1487
35952 msgid "The default handler prints messages on C<stderr>."
35953 msgstr ""
35954
35955 #. type: textblock
35956 #: ../src/guestfs.pod:1489
35957 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
35958 msgstr ""
35959
35960 #. type: =head2
35961 #: ../src/guestfs.pod:1491
35962 msgid "guestfs_get_error_handler"
35963 msgstr ""
35964
35965 #. type: verbatim
35966 #: ../src/guestfs.pod:1493
35967 #, no-wrap
35968 msgid ""
35969 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35970 "                                                     void **opaque_rtn);\n"
35971 "\n"
35972 msgstr ""
35973
35974 #. type: textblock
35975 #: ../src/guestfs.pod:1496
35976 msgid "Returns the current error handler callback."
35977 msgstr ""
35978
35979 #. type: =head2
35980 #: ../src/guestfs.pod:1498
35981 msgid "guestfs_set_out_of_memory_handler"
35982 msgstr ""
35983
35984 #. type: verbatim
35985 #: ../src/guestfs.pod:1500
35986 #, no-wrap
35987 msgid ""
35988 " typedef void (*guestfs_abort_cb) (void);\n"
35989 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35990 "                                         guestfs_abort_cb);\n"
35991 "\n"
35992 msgstr ""
35993
35994 #. type: textblock
35995 #: ../src/guestfs.pod:1504
35996 msgid ""
35997 "The callback C<cb> will be called if there is an out of memory situation.  "
35998 "I<Note this callback must not return>."
35999 msgstr ""
36000
36001 #. type: textblock
36002 #: ../src/guestfs.pod:1507
36003 msgid "The default is to call L<abort(3)>."
36004 msgstr ""
36005
36006 #. type: textblock
36007 #: ../src/guestfs.pod:1509
36008 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
36009 msgstr ""
36010
36011 #. type: =head2
36012 #: ../src/guestfs.pod:1512
36013 msgid "guestfs_get_out_of_memory_handler"
36014 msgstr ""
36015
36016 #. type: verbatim
36017 #: ../src/guestfs.pod:1514
36018 #, no-wrap
36019 msgid ""
36020 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
36021 "\n"
36022 msgstr ""
36023
36024 #. type: textblock
36025 #: ../src/guestfs.pod:1516
36026 msgid "This returns the current out of memory handler."
36027 msgstr ""
36028
36029 #. type: =head1
36030 #: ../src/guestfs.pod:1518
36031 msgid "API CALLS"
36032 msgstr ""
36033
36034 #. type: =head1
36035 #: ../src/guestfs.pod:1522
36036 msgid "STRUCTURES"
36037 msgstr ""
36038
36039 #. type: textblock
36040 #: ../src/guestfs.pod:1524
36041 msgid "@STRUCTS@"
36042 msgstr ""
36043
36044 #. type: =head1
36045 #: ../src/guestfs.pod:1526
36046 msgid "AVAILABILITY"
36047 msgstr ""
36048
36049 #. type: =head2
36050 #: ../src/guestfs.pod:1528
36051 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
36052 msgstr ""
36053
36054 #. type: textblock
36055 #: ../src/guestfs.pod:1530
36056 msgid ""
36057 "Using L</guestfs_available> you can test availability of the following "
36058 "groups of functions.  This test queries the appliance to see if the "
36059 "appliance you are currently using supports the functionality."
36060 msgstr ""
36061
36062 #. type: textblock
36063 #: ../src/guestfs.pod:1535
36064 msgid "@AVAILABILITY@"
36065 msgstr ""
36066
36067 #. type: =head2
36068 #: ../src/guestfs.pod:1537
36069 msgid "GUESTFISH supported COMMAND"
36070 msgstr ""
36071
36072 #. type: textblock
36073 #: ../src/guestfs.pod:1539
36074 msgid ""
36075 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
36076 "prints out the available groups and whether they are supported by this build "
36077 "of libguestfs.  Note however that you have to do C<run> first."
36078 msgstr ""
36079
36080 #. type: =head2
36081 #: ../src/guestfs.pod:1544
36082 msgid "SINGLE CALLS AT COMPILE TIME"
36083 msgstr ""
36084
36085 #. type: textblock
36086 #: ../src/guestfs.pod:1546
36087 msgid ""
36088 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
36089 "function, such as:"
36090 msgstr ""
36091
36092 #. type: verbatim
36093 #: ../src/guestfs.pod:1549
36094 #, no-wrap
36095 msgid ""
36096 " #define LIBGUESTFS_HAVE_DD 1\n"
36097 "\n"
36098 msgstr ""
36099
36100 #. type: textblock
36101 #: ../src/guestfs.pod:1551
36102 msgid "if L</guestfs_dd> is available."
36103 msgstr ""
36104
36105 #. type: textblock
36106 #: ../src/guestfs.pod:1553
36107 msgid ""
36108 "Before version 1.5.8, if you needed to test whether a single libguestfs "
36109 "function is available at compile time, we recommended using build tools such "
36110 "as autoconf or cmake.  For example in autotools you could use:"
36111 msgstr ""
36112
36113 #. type: verbatim
36114 #: ../src/guestfs.pod:1558
36115 #, no-wrap
36116 msgid ""
36117 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
36118 " AC_CHECK_FUNCS([guestfs_dd])\n"
36119 "\n"
36120 msgstr ""
36121
36122 #. type: textblock
36123 #: ../src/guestfs.pod:1561
36124 msgid ""
36125 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
36126 "in your program."
36127 msgstr ""
36128
36129 #. type: =head2
36130 #: ../src/guestfs.pod:1564
36131 msgid "SINGLE CALLS AT RUN TIME"
36132 msgstr ""
36133
36134 #. type: textblock
36135 #: ../src/guestfs.pod:1566
36136 msgid ""
36137 "Testing at compile time doesn't guarantee that a function really exists in "
36138 "the library.  The reason is that you might be dynamically linked against a "
36139 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
36140 "This situation unfortunately results in a segmentation fault, which is a "
36141 "shortcoming of the C dynamic linking system itself."
36142 msgstr ""
36143
36144 #. type: textblock
36145 #: ../src/guestfs.pod:1573
36146 msgid ""
36147 "You can use L<dlopen(3)> to test if a function is available at run time, as "
36148 "in this example program (note that you still need the compile time check as "
36149 "well):"
36150 msgstr ""
36151
36152 #. type: verbatim
36153 #: ../src/guestfs.pod:1577
36154 #, no-wrap
36155 msgid ""
36156 " #include <stdio.h>\n"
36157 " #include <stdlib.h>\n"
36158 " #include <unistd.h>\n"
36159 " #include <dlfcn.h>\n"
36160 " #include <guestfs.h>\n"
36161 " \n"
36162 msgstr ""
36163
36164 #. type: verbatim
36165 #: ../src/guestfs.pod:1583
36166 #, no-wrap
36167 msgid ""
36168 " main ()\n"
36169 " {\n"
36170 " #ifdef LIBGUESTFS_HAVE_DD\n"
36171 "   void *dl;\n"
36172 "   int has_function;\n"
36173 " \n"
36174 msgstr ""
36175
36176 #. type: verbatim
36177 #: ../src/guestfs.pod:1589
36178 #, no-wrap
36179 msgid ""
36180 "   /* Test if the function guestfs_dd is really available. */\n"
36181 "   dl = dlopen (NULL, RTLD_LAZY);\n"
36182 "   if (!dl) {\n"
36183 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
36184 "     exit (EXIT_FAILURE);\n"
36185 "   }\n"
36186 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
36187 "   dlclose (dl);\n"
36188 " \n"
36189 msgstr ""
36190
36191 #. type: verbatim
36192 #: ../src/guestfs.pod:1598
36193 #, no-wrap
36194 msgid ""
36195 "   if (!has_function)\n"
36196 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
36197 "   else {\n"
36198 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
36199 "     /* Now it's safe to call\n"
36200 "     guestfs_dd (g, \"foo\", \"bar\");\n"
36201 "     */\n"
36202 "   }\n"
36203 " #else\n"
36204 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
36205 " #endif\n"
36206 "  }\n"
36207 "\n"
36208 msgstr ""
36209
36210 #. type: textblock
36211 #: ../src/guestfs.pod:1611
36212 msgid ""
36213 "You may think the above is an awful lot of hassle, and it is.  There are "
36214 "other ways outside of the C linking system to ensure that this kind of "
36215 "incompatibility never arises, such as using package versioning:"
36216 msgstr ""
36217
36218 #. type: verbatim
36219 #: ../src/guestfs.pod:1616
36220 #, no-wrap
36221 msgid ""
36222 " Requires: libguestfs >= 1.0.80\n"
36223 "\n"
36224 msgstr ""
36225
36226 #. type: =head1
36227 #: ../src/guestfs.pod:1618
36228 msgid "CALLS WITH OPTIONAL ARGUMENTS"
36229 msgstr ""
36230
36231 #. type: textblock
36232 #: ../src/guestfs.pod:1620
36233 msgid ""
36234 "A recent feature of the API is the introduction of calls which take optional "
36235 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
36236 "takes variable arguments (ie. C<...>), as in this example:"
36237 msgstr ""
36238
36239 #. type: verbatim
36240 #: ../src/guestfs.pod:1625
36241 #, no-wrap
36242 msgid ""
36243 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
36244 "\n"
36245 msgstr ""
36246
36247 #. type: textblock
36248 #: ../src/guestfs.pod:1627
36249 msgid ""
36250 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
36251 "call with no optional arguments specified:"
36252 msgstr ""
36253
36254 #. type: verbatim
36255 #: ../src/guestfs.pod:1630
36256 #, no-wrap
36257 msgid ""
36258 " guestfs_add_drive_opts (g, filename, -1);\n"
36259 "\n"
36260 msgstr ""
36261
36262 #. type: textblock
36263 #: ../src/guestfs.pod:1632
36264 msgid "With a single optional argument:"
36265 msgstr ""
36266
36267 #. type: verbatim
36268 #: ../src/guestfs.pod:1634
36269 #, no-wrap
36270 msgid ""
36271 " guestfs_add_drive_opts (g, filename,\n"
36272 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36273 "                         -1);\n"
36274 "\n"
36275 msgstr ""
36276
36277 #. type: textblock
36278 #: ../src/guestfs.pod:1638
36279 msgid "With two:"
36280 msgstr ""
36281
36282 #. type: verbatim
36283 #: ../src/guestfs.pod:1640
36284 #, no-wrap
36285 msgid ""
36286 " guestfs_add_drive_opts (g, filename,\n"
36287 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36288 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36289 "                         -1);\n"
36290 "\n"
36291 msgstr ""
36292
36293 #. type: textblock
36294 #: ../src/guestfs.pod:1645
36295 msgid ""
36296 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
36297 "happen!"
36298 msgstr ""
36299
36300 #. type: =head2
36301 #: ../src/guestfs.pod:1648
36302 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
36303 msgstr ""
36304
36305 #. type: textblock
36306 #: ../src/guestfs.pod:1650
36307 msgid ""
36308 "The second variant has the same name with the suffix C<_va>, which works the "
36309 "same way but takes a C<va_list>.  See the C manual for details.  For the "
36310 "example function, this is declared:"
36311 msgstr ""
36312
36313 #. type: verbatim
36314 #: ../src/guestfs.pod:1654
36315 #, no-wrap
36316 msgid ""
36317 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
36318 "                                va_list args);\n"
36319 "\n"
36320 msgstr ""
36321
36322 #. type: =head2
36323 #: ../src/guestfs.pod:1657
36324 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
36325 msgstr ""
36326
36327 #. type: textblock
36328 #: ../src/guestfs.pod:1659
36329 msgid ""
36330 "The third variant is useful where you need to construct these calls.  You "
36331 "pass in a structure where you fill in the optional fields.  The structure "
36332 "has a bitmask as the first element which you must set to indicate which "
36333 "fields you have filled in.  For our example function the structure and call "
36334 "are declared:"
36335 msgstr ""
36336
36337 #. type: verbatim
36338 #: ../src/guestfs.pod:1665
36339 #, no-wrap
36340 msgid ""
36341 " struct guestfs_add_drive_opts_argv {\n"
36342 "   uint64_t bitmask;\n"
36343 "   int readonly;\n"
36344 "   const char *format;\n"
36345 "   /* ... */\n"
36346 " };\n"
36347 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
36348 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
36349 "\n"
36350 msgstr ""
36351
36352 #. type: textblock
36353 #: ../src/guestfs.pod:1674
36354 msgid "You could call it like this:"
36355 msgstr ""
36356
36357 #. type: verbatim
36358 #: ../src/guestfs.pod:1676
36359 #, no-wrap
36360 msgid ""
36361 " struct guestfs_add_drive_opts_argv optargs = {\n"
36362 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
36363 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
36364 "   .readonly = 1,\n"
36365 "   .format = \"qcow2\"\n"
36366 " };\n"
36367 " \n"
36368 msgstr ""
36369
36370 #. type: verbatim
36371 #: ../src/guestfs.pod:1683
36372 #, no-wrap
36373 msgid ""
36374 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
36375 "\n"
36376 msgstr ""
36377
36378 #. type: textblock
36379 #: ../src/guestfs.pod:1691
36380 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
36381 msgstr ""
36382
36383 #. type: textblock
36384 #: ../src/guestfs.pod:1696
36385 msgid "You do not need to fill in all fields of the structure."
36386 msgstr ""
36387
36388 #. type: textblock
36389 #: ../src/guestfs.pod:1700
36390 msgid ""
36391 "There must be a one-to-one correspondence between fields of the structure "
36392 "that are filled in, and bits set in the bitmask."
36393 msgstr ""
36394
36395 #. type: =head2
36396 #: ../src/guestfs.pod:1705
36397 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
36398 msgstr ""
36399
36400 #. type: textblock
36401 #: ../src/guestfs.pod:1707
36402 msgid ""
36403 "In other languages, optional arguments are expressed in the way that is "
36404 "natural for that language.  We refer you to the language-specific "
36405 "documentation for more details on that."
36406 msgstr ""
36407
36408 #. type: textblock
36409 #: ../src/guestfs.pod:1711
36410 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
36411 msgstr ""
36412
36413 #. type: =head2
36414 #: ../src/guestfs.pod:1713
36415 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
36416 msgstr ""
36417
36418 #. type: textblock
36419 #: ../src/guestfs.pod:1715
36420 msgid ""
36421 "B<Note:> This section documents the generic event mechanism introduced in "
36422 "libguestfs 1.10, which you should use in new code if possible.  The old "
36423 "functions C<guestfs_set_log_message_callback>, "
36424 "C<guestfs_set_subprocess_quit_callback>, "
36425 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
36426 "C<guestfs_set_progress_callback> are no longer documented in this manual "
36427 "page.  Because of the ABI guarantee, the old functions continue to work."
36428 msgstr ""
36429
36430 #. type: textblock
36431 #: ../src/guestfs.pod:1724
36432 msgid ""
36433 "Handles generate events when certain things happen, such as log messages "
36434 "being generated, progress messages during long-running operations, or the "
36435 "handle being closed.  The API calls described below let you register a "
36436 "callback to be called when events happen.  You can register multiple "
36437 "callbacks (for the same, different or overlapping sets of events), and "
36438 "individually remove callbacks.  If callbacks are not removed, then they "
36439 "remain in force until the handle is closed."
36440 msgstr ""
36441
36442 #. type: textblock
36443 #: ../src/guestfs.pod:1732
36444 msgid ""
36445 "In the current implementation, events are only generated synchronously: that "
36446 "means that events (and hence callbacks) can only happen while you are in the "
36447 "middle of making another libguestfs call.  The callback is called in the "
36448 "same thread."
36449 msgstr ""
36450
36451 #. type: textblock
36452 #: ../src/guestfs.pod:1737
36453 msgid ""
36454 "Events may contain a payload, usually nothing (void), an array of 64 bit "
36455 "unsigned integers, or a message buffer.  Payloads are discussed later on."
36456 msgstr ""
36457
36458 #. type: =head3
36459 #: ../src/guestfs.pod:1741
36460 msgid "CLASSES OF EVENTS"
36461 msgstr ""
36462
36463 #. type: =item
36464 #: ../src/guestfs.pod:1745
36465 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
36466 msgstr ""
36467
36468 #. type: textblock
36469 #: ../src/guestfs.pod:1748
36470 msgid ""
36471 "The callback function will be called while the handle is being closed "
36472 "(synchronously from L</guestfs_close>)."
36473 msgstr ""
36474
36475 #. type: textblock
36476 #: ../src/guestfs.pod:1751
36477 msgid ""
36478 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
36479 "handles that are open when the program exits.  This means that this callback "
36480 "might be called indirectly from L<exit(3)>, which can cause unexpected "
36481 "problems in higher-level languages (eg. if your HLL interpreter has already "
36482 "been cleaned up by the time this is called, and if your callback then jumps "
36483 "into some HLL function)."
36484 msgstr ""
36485
36486 #. type: textblock
36487 #: ../src/guestfs.pod:1758
36488 msgid ""
36489 "If no callback is registered: the handle is closed without any callback "
36490 "being invoked."
36491 msgstr ""
36492
36493 #. type: =item
36494 #: ../src/guestfs.pod:1761
36495 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
36496 msgstr ""
36497
36498 #. type: textblock
36499 #: ../src/guestfs.pod:1764
36500 msgid ""
36501 "The callback function will be called when the child process quits, either "
36502 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
36503 "corresponds to a transition from any state to the CONFIG state)."
36504 msgstr ""
36505
36506 #. type: textblock
36507 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
36508 msgid "If no callback is registered: the event is ignored."
36509 msgstr ""
36510
36511 #. type: =item
36512 #: ../src/guestfs.pod:1770
36513 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
36514 msgstr ""
36515
36516 #. type: textblock
36517 #: ../src/guestfs.pod:1773
36518 msgid ""
36519 "The callback function will be called when the child process becomes ready "
36520 "first time after it has been launched.  (This corresponds to a transition "
36521 "from LAUNCHING to the READY state)."
36522 msgstr ""
36523
36524 #. type: =item
36525 #: ../src/guestfs.pod:1779
36526 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
36527 msgstr ""
36528
36529 #. type: textblock
36530 #: ../src/guestfs.pod:1782
36531 msgid ""
36532 "Some long-running operations can generate progress messages.  If this "
36533 "callback is registered, then it will be called each time a progress message "
36534 "is generated (usually two seconds after the operation started, and three "
36535 "times per second thereafter until it completes, although the frequency may "
36536 "change in future versions)."
36537 msgstr ""
36538
36539 #. type: textblock
36540 #: ../src/guestfs.pod:1788
36541 msgid ""
36542 "The callback receives in the payload four unsigned 64 bit numbers which are "
36543 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
36544 msgstr ""
36545
36546 #. type: textblock
36547 #: ../src/guestfs.pod:1791
36548 msgid ""
36549 "The units of C<total> are not defined, although for some operations C<total> "
36550 "may relate in some way to the amount of data to be transferred (eg. in bytes "
36551 "or megabytes), and C<position> may be the portion which has been "
36552 "transferred."
36553 msgstr ""
36554
36555 #. type: textblock
36556 #: ../src/guestfs.pod:1796
36557 msgid "The only defined and stable parts of the API are:"
36558 msgstr ""
36559
36560 #. type: textblock
36561 #: ../src/guestfs.pod:1802
36562 msgid ""
36563 "The callback can display to the user some type of progress bar or indicator "
36564 "which shows the ratio of C<position>:C<total>."
36565 msgstr ""
36566
36567 #. type: textblock
36568 #: ../src/guestfs.pod:1807
36569 msgid "0 E<lt>= C<position> E<lt>= C<total>"
36570 msgstr ""
36571
36572 #. type: textblock
36573 #: ../src/guestfs.pod:1811
36574 msgid ""
36575 "If any progress notification is sent during a call, then a final progress "
36576 "notification is always sent when C<position> = C<total> (I<unless> the call "
36577 "fails with an error)."
36578 msgstr ""
36579
36580 #. type: textblock
36581 #: ../src/guestfs.pod:1815
36582 msgid ""
36583 "This is to simplify caller code, so callers can easily set the progress "
36584 "indicator to \"100%\" at the end of the operation, without requiring special "
36585 "code to detect this case."
36586 msgstr ""
36587
36588 #. type: textblock
36589 #: ../src/guestfs.pod:1821
36590 msgid ""
36591 "For some calls we are unable to estimate the progress of the call, but we "
36592 "can still generate progress messages to indicate activity.  This is known as "
36593 "\"pulse mode\", and is directly supported by certain progress bar "
36594 "implementations (eg. GtkProgressBar)."
36595 msgstr ""
36596
36597 #. type: textblock
36598 #: ../src/guestfs.pod:1826
36599 msgid ""
36600 "For these calls, zero or more progress messages are generated with "
36601 "C<position = 0> and C<total = 1>, followed by a final message with "
36602 "C<position = total = 1>."
36603 msgstr ""
36604
36605 #. type: textblock
36606 #: ../src/guestfs.pod:1830
36607 msgid ""
36608 "As noted above, if the call fails with an error then the final message may "
36609 "not be generated."
36610 msgstr ""
36611
36612 #. type: textblock
36613 #: ../src/guestfs.pod:1835
36614 msgid ""
36615 "The callback also receives the procedure number (C<proc_nr>) and serial "
36616 "number (C<serial>) of the call.  These are only useful for debugging "
36617 "protocol issues, and the callback can normally ignore them.  The callback "
36618 "may want to print these numbers in error messages or debugging messages."
36619 msgstr ""
36620
36621 #. type: textblock
36622 #: ../src/guestfs.pod:1841
36623 msgid "If no callback is registered: progress messages are discarded."
36624 msgstr ""
36625
36626 #. type: =item
36627 #: ../src/guestfs.pod:1843
36628 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
36629 msgstr ""
36630
36631 #. type: textblock
36632 #: ../src/guestfs.pod:1846
36633 msgid ""
36634 "The callback function is called whenever a log message is generated by qemu, "
36635 "the appliance kernel, guestfsd (daemon), or utility programs."
36636 msgstr ""
36637
36638 #. type: textblock
36639 #: ../src/guestfs.pod:1849
36640 msgid ""
36641 "If the verbose flag (L</guestfs_set_verbose>) is set before launch "
36642 "(L</guestfs_launch>) then additional debug messages are generated."
36643 msgstr ""
36644
36645 #. type: textblock
36646 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
36647 msgid ""
36648 "If no callback is registered: the messages are discarded unless the verbose "
36649 "flag is set in which case they are sent to stderr.  You can override the "
36650 "printing of verbose messages to stderr by setting up a callback."
36651 msgstr ""
36652
36653 #. type: =item
36654 #: ../src/guestfs.pod:1857
36655 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
36656 msgstr ""
36657
36658 #. type: textblock
36659 #: ../src/guestfs.pod:1860
36660 msgid ""
36661 "The callback function is called whenever a log message is generated by the "
36662 "library part of libguestfs."
36663 msgstr ""
36664
36665 #. type: textblock
36666 #: ../src/guestfs.pod:1863
36667 msgid ""
36668 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
36669 "messages are generated."
36670 msgstr ""
36671
36672 #. type: =item
36673 #: ../src/guestfs.pod:1871
36674 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
36675 msgstr ""
36676
36677 #. type: textblock
36678 #: ../src/guestfs.pod:1874
36679 msgid ""
36680 "The callback function is called whenever a trace message is generated.  This "
36681 "only applies if the trace flag (L</guestfs_set_trace>) is set."
36682 msgstr ""
36683
36684 #. type: textblock
36685 #: ../src/guestfs.pod:1877
36686 msgid ""
36687 "If no callback is registered: the messages are sent to stderr.  You can "
36688 "override the printing of trace messages to stderr by setting up a callback."
36689 msgstr ""
36690
36691 #. type: =item
36692 #: ../src/guestfs.pod:1881
36693 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
36694 msgstr ""
36695
36696 #. type: textblock
36697 #: ../src/guestfs.pod:1884
36698 msgid "The callback function is called whenever a libguestfs function is entered."
36699 msgstr ""
36700
36701 #. type: textblock
36702 #: ../src/guestfs.pod:1887
36703 msgid ""
36704 "The payload is a string which contains the name of the function that we are "
36705 "entering (not including C<guestfs_> prefix)."
36706 msgstr ""
36707
36708 #. type: textblock
36709 #: ../src/guestfs.pod:1890
36710 msgid ""
36711 "Note that libguestfs functions can call themselves, so you may see many "
36712 "events from a single call.  A few libguestfs functions do not generate this "
36713 "event."
36714 msgstr ""
36715
36716 #. type: =head3
36717 #: ../src/guestfs.pod:1898
36718 msgid "guestfs_set_event_callback"
36719 msgstr ""
36720
36721 #. type: verbatim
36722 #: ../src/guestfs.pod:1900
36723 #, no-wrap
36724 msgid ""
36725 " int guestfs_set_event_callback (guestfs_h *g,\n"
36726 "                                 guestfs_event_callback cb,\n"
36727 "                                 uint64_t event_bitmask,\n"
36728 "                                 int flags,\n"
36729 "                                 void *opaque);\n"
36730 "\n"
36731 msgstr ""
36732
36733 #. type: textblock
36734 #: ../src/guestfs.pod:1906
36735 msgid ""
36736 "This function registers a callback (C<cb>) for all event classes in the "
36737 "C<event_bitmask>."
36738 msgstr ""
36739
36740 #. type: textblock
36741 #: ../src/guestfs.pod:1909
36742 msgid ""
36743 "For example, to register for all log message events, you could call this "
36744 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
36745 "To register a single callback for all possible classes of events, use "
36746 "C<GUESTFS_EVENT_ALL>."
36747 msgstr ""
36748
36749 #. type: textblock
36750 #: ../src/guestfs.pod:1915
36751 msgid "C<flags> should always be passed as 0."
36752 msgstr ""
36753
36754 #. type: textblock
36755 #: ../src/guestfs.pod:1917
36756 msgid ""
36757 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
36758 "it for any purpose."
36759 msgstr ""
36760
36761 #. type: textblock
36762 #: ../src/guestfs.pod:1920
36763 msgid ""
36764 "The return value is the event handle (an integer) which you can use to "
36765 "delete the callback (see below)."
36766 msgstr ""
36767
36768 #. type: textblock
36769 #: ../src/guestfs.pod:1923
36770 msgid ""
36771 "If there is an error, this function returns C<-1>, and sets the error in the "
36772 "handle in the usual way (see L</guestfs_last_error> etc.)"
36773 msgstr ""
36774
36775 #. type: textblock
36776 #: ../src/guestfs.pod:1926
36777 msgid ""
36778 "Callbacks remain in effect until they are deleted, or until the handle is "
36779 "closed."
36780 msgstr ""
36781
36782 #. type: textblock
36783 #: ../src/guestfs.pod:1929
36784 msgid ""
36785 "In the case where multiple callbacks are registered for a particular event "
36786 "class, all of the callbacks are called.  The order in which multiple "
36787 "callbacks are called is not defined."
36788 msgstr ""
36789
36790 #. type: =head3
36791 #: ../src/guestfs.pod:1933
36792 msgid "guestfs_delete_event_callback"
36793 msgstr ""
36794
36795 #. type: verbatim
36796 #: ../src/guestfs.pod:1935
36797 #, no-wrap
36798 msgid ""
36799 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
36800 "\n"
36801 msgstr ""
36802
36803 #. type: textblock
36804 #: ../src/guestfs.pod:1937
36805 msgid ""
36806 "Delete a callback that was previously registered.  C<event_handle> should be "
36807 "the integer that was returned by a previous call to "
36808 "C<guestfs_set_event_callback> on the same handle."
36809 msgstr ""
36810
36811 #. type: =head3
36812 #: ../src/guestfs.pod:1941
36813 msgid "guestfs_event_callback"
36814 msgstr ""
36815
36816 #. type: verbatim
36817 #: ../src/guestfs.pod:1943
36818 #, no-wrap
36819 msgid ""
36820 " typedef void (*guestfs_event_callback) (\n"
36821 "                  guestfs_h *g,\n"
36822 "                  void *opaque,\n"
36823 "                  uint64_t event,\n"
36824 "                  int event_handle,\n"
36825 "                  int flags,\n"
36826 "                  const char *buf, size_t buf_len,\n"
36827 "                  const uint64_t *array, size_t array_len);\n"
36828 "\n"
36829 msgstr ""
36830
36831 #. type: textblock
36832 #: ../src/guestfs.pod:1952
36833 msgid "This is the type of the event callback function that you have to provide."
36834 msgstr ""
36835
36836 #. type: textblock
36837 #: ../src/guestfs.pod:1955
36838 msgid ""
36839 "The basic parameters are: the handle (C<g>), the opaque user pointer "
36840 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
36841 "handle, and C<flags> which in the current API you should ignore."
36842 msgstr ""
36843
36844 #. type: textblock
36845 #: ../src/guestfs.pod:1959
36846 msgid ""
36847 "The remaining parameters contain the event payload (if any).  Each event may "
36848 "contain a payload, which usually relates to the event class, but for future "
36849 "proofing your code should be written to handle any payload for any event "
36850 "class."
36851 msgstr ""
36852
36853 #. type: textblock
36854 #: ../src/guestfs.pod:1964
36855 msgid ""
36856 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
36857 "there is no message buffer).  Note that this message buffer can contain "
36858 "arbitrary 8 bit data, including NUL bytes."
36859 msgstr ""
36860
36861 #. type: textblock
36862 #: ../src/guestfs.pod:1968
36863 msgid ""
36864 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
36865 "moment this is only used for progress messages."
36866 msgstr ""
36867
36868 #. type: =head3
36869 #: ../src/guestfs.pod:1971
36870 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
36871 msgstr ""
36872
36873 #. type: textblock
36874 #: ../src/guestfs.pod:1973
36875 msgid ""
36876 "One motivation for the generic event API was to allow GUI programs to "
36877 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
36878 "unconditionally to C<stderr>."
36879 msgstr ""
36880
36881 #. type: textblock
36882 #: ../src/guestfs.pod:1977
36883 msgid ""
36884 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
36885 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
36886 "messages are not events; you must capture error messages separately)."
36887 msgstr ""
36888
36889 #. type: textblock
36890 #: ../src/guestfs.pod:1982
36891 msgid ""
36892 "Programs have to set up a callback to capture the classes of events of "
36893 "interest:"
36894 msgstr ""
36895
36896 #. type: verbatim
36897 #: ../src/guestfs.pod:1985
36898 #, no-wrap
36899 msgid ""
36900 " int eh =\n"
36901 "   guestfs_set_event_callback\n"
36902 "     (g, message_callback,\n"
36903 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
36904 "      GUESTFS_EVENT_TRACE,\n"
36905 "      0, NULL) == -1)\n"
36906 " if (eh == -1) {\n"
36907 "   // handle error in the usual way\n"
36908 " }\n"
36909 "\n"
36910 msgstr ""
36911
36912 #. type: textblock
36913 #: ../src/guestfs.pod:1995
36914 msgid ""
36915 "The callback can then direct messages to the appropriate place.  In this "
36916 "example, messages are directed to syslog:"
36917 msgstr ""
36918
36919 #. type: verbatim
36920 #: ../src/guestfs.pod:1998
36921 #, no-wrap
36922 msgid ""
36923 " static void\n"
36924 " message_callback (\n"
36925 "         guestfs_h *g,\n"
36926 "         void *opaque,\n"
36927 "         uint64_t event,\n"
36928 "         int event_handle,\n"
36929 "         int flags,\n"
36930 "         const char *buf, size_t buf_len,\n"
36931 "         const uint64_t *array, size_t array_len)\n"
36932 " {\n"
36933 "   const int priority = LOG_USER|LOG_INFO;\n"
36934 "   if (buf_len > 0)\n"
36935 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
36936 " }\n"
36937 "\n"
36938 msgstr ""
36939
36940 #. type: =head1
36941 #: ../src/guestfs.pod:2013
36942 msgid "CANCELLING LONG TRANSFERS"
36943 msgstr ""
36944
36945 #. type: textblock
36946 #: ../src/guestfs.pod:2015
36947 msgid ""
36948 "Some operations can be cancelled by the caller while they are in progress.  "
36949 "Currently only operations that involve uploading or downloading data can be "
36950 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
36951 "parameters in the generator)."
36952 msgstr ""
36953
36954 #. type: =head2
36955 #: ../src/guestfs.pod:2020
36956 msgid "guestfs_user_cancel"
36957 msgstr ""
36958
36959 #. type: verbatim
36960 #: ../src/guestfs.pod:2022
36961 #, no-wrap
36962 msgid ""
36963 " void guestfs_user_cancel (guestfs_h *g);\n"
36964 "\n"
36965 msgstr ""
36966
36967 #. type: textblock
36968 #: ../src/guestfs.pod:2024
36969 msgid "C<guestfs_user_cancel> cancels the current upload or download operation."
36970 msgstr ""
36971
36972 #. type: textblock
36973 #: ../src/guestfs.pod:2027
36974 msgid ""
36975 "Unlike most other libguestfs calls, this function is signal safe and thread "
36976 "safe.  You can call it from a signal handler or from another thread, without "
36977 "needing to do any locking."
36978 msgstr ""
36979
36980 #. type: textblock
36981 #: ../src/guestfs.pod:2031
36982 msgid ""
36983 "The transfer that was in progress (if there is one) will stop shortly "
36984 "afterwards, and will return an error.  The errno (see "
36985 "L</guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
36986 "out if the operation was cancelled or failed because of another error."
36987 msgstr ""
36988
36989 #. type: textblock
36990 #: ../src/guestfs.pod:2037
36991 msgid ""
36992 "No cleanup is performed: for example, if a file was being uploaded then "
36993 "after cancellation there may be a partially uploaded file.  It is the "
36994 "caller's responsibility to clean up if necessary."
36995 msgstr ""
36996
36997 #. type: textblock
36998 #: ../src/guestfs.pod:2041
36999 msgid "There are two common places that you might call C<guestfs_user_cancel>."
37000 msgstr ""
37001
37002 #. type: textblock
37003 #: ../src/guestfs.pod:2043
37004 msgid ""
37005 "In an interactive text-based program, you might call it from a C<SIGINT> "
37006 "signal handler so that pressing C<^C> cancels the current operation.  (You "
37007 "also need to call L</guestfs_set_pgroup> so that child processes don't "
37008 "receive the C<^C> signal)."
37009 msgstr ""
37010
37011 #. type: textblock
37012 #: ../src/guestfs.pod:2048
37013 msgid ""
37014 "In a graphical program, when the main thread is displaying a progress bar "
37015 "with a cancel button, wire up the cancel button to call this function."
37016 msgstr ""
37017
37018 #. type: =head1
37019 #: ../src/guestfs.pod:2052
37020 msgid "PRIVATE DATA AREA"
37021 msgstr ""
37022
37023 #. type: textblock
37024 #: ../src/guestfs.pod:2054
37025 msgid ""
37026 "You can attach named pieces of private data to the libguestfs handle, fetch "
37027 "them by name, and walk over them, for the lifetime of the handle.  This is "
37028 "called the private data area and is only available from the C API."
37029 msgstr ""
37030
37031 #. type: textblock
37032 #: ../src/guestfs.pod:2059
37033 msgid "To attach a named piece of data, use the following call:"
37034 msgstr ""
37035
37036 #. type: verbatim
37037 #: ../src/guestfs.pod:2061
37038 #, no-wrap
37039 msgid ""
37040 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
37041 "\n"
37042 msgstr ""
37043
37044 #. type: textblock
37045 #: ../src/guestfs.pod:2063
37046 msgid ""
37047 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
37048 "pointer (which can be C<NULL>).  Any previous item with the same key is "
37049 "overwritten."
37050 msgstr ""
37051
37052 #. type: textblock
37053 #: ../src/guestfs.pod:2067
37054 msgid ""
37055 "You can use any C<key> you want, but your key should I<not> start with an "
37056 "underscore character.  Keys beginning with an underscore character are "
37057 "reserved for internal libguestfs purposes (eg. for implementing language "
37058 "bindings).  It is recommended that you prefix the key with some unique "
37059 "string to avoid collisions with other users."
37060 msgstr ""
37061
37062 #. type: textblock
37063 #: ../src/guestfs.pod:2073
37064 msgid "To retrieve the pointer, use:"
37065 msgstr ""
37066
37067 #. type: verbatim
37068 #: ../src/guestfs.pod:2075
37069 #, no-wrap
37070 msgid ""
37071 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
37072 "\n"
37073 msgstr ""
37074
37075 #. type: textblock
37076 #: ../src/guestfs.pod:2077
37077 msgid ""
37078 "This function returns C<NULL> if either no data is found associated with "
37079 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
37080 "C<NULL>."
37081 msgstr ""
37082
37083 #. type: textblock
37084 #: ../src/guestfs.pod:2081
37085 msgid ""
37086 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
37087 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
37088 "all.  In particular, libguestfs does I<not> try to free the data when the "
37089 "handle is closed.  If the data must be freed, then the caller must either "
37090 "free it before calling L</guestfs_close> or must set up a close callback to "
37091 "do it (see L</GUESTFS_EVENT_CLOSE>)."
37092 msgstr ""
37093
37094 #. type: textblock
37095 #: ../src/guestfs.pod:2088
37096 msgid "To walk over all entries, use these two functions:"
37097 msgstr ""
37098
37099 #. type: verbatim
37100 #: ../src/guestfs.pod:2090
37101 #, no-wrap
37102 msgid ""
37103 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
37104 "\n"
37105 msgstr ""
37106
37107 #. type: verbatim
37108 #: ../src/guestfs.pod:2092
37109 #, no-wrap
37110 msgid ""
37111 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
37112 "\n"
37113 msgstr ""
37114
37115 #. type: textblock
37116 #: ../src/guestfs.pod:2094
37117 msgid ""
37118 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
37119 "not have any particular meaning -- keys are not returned in any defined "
37120 "order).  A pointer to the key is returned in C<*key_rtn> and the "
37121 "corresponding data pointer is returned from the function.  C<NULL> is "
37122 "returned if there are no keys stored in the handle."
37123 msgstr ""
37124
37125 #. type: textblock
37126 #: ../src/guestfs.pod:2100
37127 msgid ""
37128 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
37129 "value of this function is also C<NULL> is there are no further entries to "
37130 "return."
37131 msgstr ""
37132
37133 #. type: textblock
37134 #: ../src/guestfs.pod:2104
37135 msgid "Notes about walking over entries:"
37136 msgstr ""
37137
37138 #. type: textblock
37139 #: ../src/guestfs.pod:2110
37140 msgid "You must not call C<guestfs_set_private> while walking over the entries."
37141 msgstr ""
37142
37143 #. type: textblock
37144 #: ../src/guestfs.pod:2115
37145 msgid ""
37146 "The handle maintains an internal iterator which is reset when you call "
37147 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
37148 "call C<guestfs_set_private>."
37149 msgstr ""
37150
37151 #. type: textblock
37152 #: ../src/guestfs.pod:2121
37153 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
37154 msgstr ""
37155
37156 #. type: verbatim
37157 #: ../src/guestfs.pod:2123
37158 #, no-wrap
37159 msgid ""
37160 " guestfs_set_private (g, key, NULL);\n"
37161 "\n"
37162 msgstr ""
37163
37164 #. type: textblock
37165 #: ../src/guestfs.pod:2125
37166 msgid "then that C<key> is not returned when walking."
37167 msgstr ""
37168
37169 #. type: textblock
37170 #: ../src/guestfs.pod:2129
37171 msgid ""
37172 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
37173 "C<guestfs_next_private> or C<guestfs_set_private>."
37174 msgstr ""
37175
37176 #. type: textblock
37177 #: ../src/guestfs.pod:2135
37178 msgid ""
37179 "The following example code shows how to print all keys and data pointers "
37180 "that are associated with the handle C<g>:"
37181 msgstr ""
37182
37183 #. type: verbatim
37184 #: ../src/guestfs.pod:2138
37185 #, no-wrap
37186 msgid ""
37187 " const char *key;\n"
37188 " void *data = guestfs_first_private (g, &key);\n"
37189 " while (data != NULL)\n"
37190 "   {\n"
37191 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
37192 "     data = guestfs_next_private (g, &key);\n"
37193 "   }\n"
37194 "\n"
37195 msgstr ""
37196
37197 #. type: textblock
37198 #: ../src/guestfs.pod:2146
37199 msgid ""
37200 "More commonly you are only interested in keys that begin with an "
37201 "application-specific prefix C<foo_>.  Modify the loop like so:"
37202 msgstr ""
37203
37204 #. type: verbatim
37205 #: ../src/guestfs.pod:2149
37206 #, no-wrap
37207 msgid ""
37208 " const char *key;\n"
37209 " void *data = guestfs_first_private (g, &key);\n"
37210 " while (data != NULL)\n"
37211 "   {\n"
37212 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
37213 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
37214 "     data = guestfs_next_private (g, &key);\n"
37215 "   }\n"
37216 "\n"
37217 msgstr ""
37218
37219 #. type: textblock
37220 #: ../src/guestfs.pod:2158
37221 msgid ""
37222 "If you need to modify keys while walking, then you have to jump back to the "
37223 "beginning of the loop.  For example, to delete all keys prefixed with "
37224 "C<foo_>:"
37225 msgstr ""
37226
37227 #. type: verbatim
37228 #: ../src/guestfs.pod:2162
37229 #, no-wrap
37230 msgid ""
37231 "  const char *key;\n"
37232 "  void *data;\n"
37233 " again:\n"
37234 "  data = guestfs_first_private (g, &key);\n"
37235 "  while (data != NULL)\n"
37236 "    {\n"
37237 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
37238 "        {\n"
37239 "          guestfs_set_private (g, key, NULL);\n"
37240 "          /* note that 'key' pointer is now invalid, and so is\n"
37241 "             the internal iterator */\n"
37242 "          goto again;\n"
37243 "        }\n"
37244 "      data = guestfs_next_private (g, &key);\n"
37245 "    }\n"
37246 "\n"
37247 msgstr ""
37248
37249 #. type: textblock
37250 #: ../src/guestfs.pod:2178
37251 msgid ""
37252 "Note that the above loop is guaranteed to terminate because the keys are "
37253 "being deleted, but other manipulations of keys within the loop might not "
37254 "terminate unless you also maintain an indication of which keys have been "
37255 "visited."
37256 msgstr ""
37257
37258 #. type: =head1
37259 #: ../src/guestfs.pod:2183
37260 msgid "SYSTEMTAP"
37261 msgstr ""
37262
37263 #. type: textblock
37264 #: ../src/guestfs.pod:2185
37265 msgid ""
37266 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
37267 "true of any library, not just libguestfs.  However libguestfs also contains "
37268 "static markers to help in probing internal operations."
37269 msgstr ""
37270
37271 #. type: textblock
37272 #: ../src/guestfs.pod:2189
37273 msgid "You can list all the static markers by doing:"
37274 msgstr ""
37275
37276 #. type: verbatim
37277 #: ../src/guestfs.pod:2191
37278 #, no-wrap
37279 msgid ""
37280 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
37281 "              .provider(\"guestfs\").mark(\"*\")'\n"
37282 "\n"
37283 msgstr ""
37284
37285 #. type: textblock
37286 #: ../src/guestfs.pod:2194
37287 msgid ""
37288 "B<Note:> These static markers are I<not> part of the stable API and may "
37289 "change in future versions."
37290 msgstr ""
37291
37292 #. type: =head2
37293 #: ../src/guestfs.pod:2197
37294 msgid "SYSTEMTAP SCRIPT EXAMPLE"
37295 msgstr ""
37296
37297 #. type: textblock
37298 #: ../src/guestfs.pod:2199
37299 msgid ""
37300 "This script contains examples of displaying both the static markers and some "
37301 "ordinary C entry points:"
37302 msgstr ""
37303
37304 #. type: verbatim
37305 #: ../src/guestfs.pod:2202
37306 #, no-wrap
37307 msgid ""
37308 " global last;\n"
37309 " \n"
37310 msgstr ""
37311
37312 #. type: verbatim
37313 #: ../src/guestfs.pod:2204
37314 #, no-wrap
37315 msgid ""
37316 " function display_time () {\n"
37317 "       now = gettimeofday_us ();\n"
37318 "       delta = 0;\n"
37319 "       if (last > 0)\n"
37320 "             delta = now - last;\n"
37321 "       last = now;\n"
37322 " \n"
37323 msgstr ""
37324
37325 #. type: verbatim
37326 #: ../src/guestfs.pod:2211
37327 #, no-wrap
37328 msgid ""
37329 "       printf (\"%d (+%d):\", now, delta);\n"
37330 " }\n"
37331 " \n"
37332 msgstr ""
37333
37334 #. type: verbatim
37335 #: ../src/guestfs.pod:2214
37336 #, no-wrap
37337 msgid ""
37338 " probe begin {\n"
37339 "       last = 0;\n"
37340 "       printf (\"ready\\n\");\n"
37341 " }\n"
37342 " \n"
37343 msgstr ""
37344
37345 #. type: verbatim
37346 #: ../src/guestfs.pod:2219
37347 #, no-wrap
37348 msgid ""
37349 " /* Display all calls to static markers. */\n"
37350 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
37351 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
37352 "       display_time();\n"
37353 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
37354 " }\n"
37355 " \n"
37356 msgstr ""
37357
37358 #. type: verbatim
37359 #: ../src/guestfs.pod:2226
37360 #, no-wrap
37361 msgid ""
37362 " /* Display all calls to guestfs_mkfs* functions. */\n"
37363 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
37364 "           .function(\"guestfs_mkfs*\") ? {\n"
37365 "       display_time();\n"
37366 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
37367 " }\n"
37368 "\n"
37369 msgstr ""
37370
37371 #. type: textblock
37372 #: ../src/guestfs.pod:2233
37373 msgid ""
37374 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
37375 "program.  Note that you either have to be root, or you have to add yourself "
37376 "to several special stap groups.  Consult the systemtap documentation for "
37377 "more information."
37378 msgstr ""
37379
37380 #. type: verbatim
37381 #: ../src/guestfs.pod:2238
37382 #, no-wrap
37383 msgid ""
37384 " # stap /tmp/test.stap\n"
37385 " ready\n"
37386 "\n"
37387 msgstr ""
37388
37389 #. type: textblock
37390 #: ../src/guestfs.pod:2241
37391 msgid "In another terminal, run a guestfish command such as this:"
37392 msgstr ""
37393
37394 #. type: textblock
37395 #: ../src/guestfs.pod:2245
37396 msgid "In the first terminal, stap trace output similar to this is shown:"
37397 msgstr ""
37398
37399 #. type: verbatim
37400 #: ../src/guestfs.pod:2247
37401 #, no-wrap
37402 msgid ""
37403 " 1318248056692655 (+0):\tlaunch_start\n"
37404 " 1318248056692850 (+195):       launch_build_appliance_start\n"
37405 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
37406 " 1318248056838059 (+19774):     launch_run_qemu\n"
37407 " 1318248061071167 (+4233108):   launch_end\n"
37408 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f "
37409 "device=0x1024e60\n"
37410 "\n"
37411 msgstr ""
37412
37413 #. type: =end
37414 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
37415 msgid "html"
37416 msgstr ""
37417
37418 #. type: textblock
37419 #: ../src/guestfs.pod:2256
37420 msgid ""
37421 "<!-- old anchor for the next section --> <a "
37422 "name=\"state_machine_and_low_level_event_api\"/>"
37423 msgstr ""
37424
37425 #. type: =head1
37426 #: ../src/guestfs.pod:2261
37427 msgid "ARCHITECTURE"
37428 msgstr ""
37429
37430 #. type: textblock
37431 #: ../src/guestfs.pod:2263
37432 msgid ""
37433 "Internally, libguestfs is implemented by running an appliance (a special "
37434 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
37435 "process of the main program."
37436 msgstr ""
37437
37438 #. type: verbatim
37439 #: ../src/guestfs.pod:2267
37440 #, no-wrap
37441 msgid ""
37442 "  ___________________\n"
37443 " /                   \\\n"
37444 " | main program      |\n"
37445 " |                   |\n"
37446 " |                   |           child process / appliance\n"
37447 " |                   |           __________________________\n"
37448 " |                   |          / qemu                     \\\n"
37449 " +-------------------+   RPC    |      +-----------------+ |\n"
37450 " | libguestfs     <--------------------> guestfsd        | |\n"
37451 " |                   |          |      +-----------------+ |\n"
37452 " \\___________________/          |      | Linux kernel    | |\n"
37453 "                                |      +--^--------------+ |\n"
37454 "                                \\_________|________________/\n"
37455 "                                          |\n"
37456 "                                   _______v______\n"
37457 "                                  /              \\\n"
37458 "                                  | Device or    |\n"
37459 "                                  | disk image   |\n"
37460 "                                  \\______________/\n"
37461 "\n"
37462 msgstr ""
37463
37464 #. type: textblock
37465 #: ../src/guestfs.pod:2287
37466 msgid ""
37467 "The library, linked to the main program, creates the child process and hence "
37468 "the appliance in the L</guestfs_launch> function."
37469 msgstr ""
37470
37471 #. type: textblock
37472 #: ../src/guestfs.pod:2290
37473 msgid ""
37474 "Inside the appliance is a Linux kernel and a complete stack of userspace "
37475 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
37476 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
37477 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
37478 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
37479 "attached to the qemu process which translates device access by the "
37480 "appliance's Linux kernel into accesses to the image."
37481 msgstr ""
37482
37483 #. type: textblock
37484 #: ../src/guestfs.pod:2299
37485 msgid ""
37486 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
37487 "Although the disk image you are attached to might also be used by some "
37488 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
37489 "care if both libguestfs's qemu process and your virtual machine are trying "
37490 "to update the disk image at the same time, since these usually results in "
37491 "massive disk corruption)."
37492 msgstr ""
37493
37494 #. type: =head1
37495 #: ../src/guestfs.pod:2306
37496 msgid "STATE MACHINE"
37497 msgstr ""
37498
37499 #. type: textblock
37500 #: ../src/guestfs.pod:2308
37501 msgid "libguestfs uses a state machine to model the child process:"
37502 msgstr ""
37503
37504 #. type: verbatim
37505 #: ../src/guestfs.pod:2310
37506 #, no-wrap
37507 msgid ""
37508 "                         |\n"
37509 "                    guestfs_create\n"
37510 "                         |\n"
37511 "                         |\n"
37512 "                     ____V_____\n"
37513 "                    /          \\\n"
37514 "                    |  CONFIG  |\n"
37515 "                    \\__________/\n"
37516 "                     ^ ^   ^  \\\n"
37517 "                    /  |    \\  \\ guestfs_launch\n"
37518 "                   /   |    _\\__V______\n"
37519 "                  /    |   /           \\\n"
37520 "                 /     |   | LAUNCHING |\n"
37521 "                /      |   \\___________/\n"
37522 "               /       |       /\n"
37523 "              /        |  guestfs_launch\n"
37524 "             /         |     /\n"
37525 "    ______  /        __|____V\n"
37526 "   /      \\ ------> /        \\\n"
37527 "   | BUSY |         | READY  |\n"
37528 "   \\______/ <------ \\________/\n"
37529 "\n"
37530 msgstr ""
37531
37532 #. type: textblock
37533 #: ../src/guestfs.pod:2332
37534 msgid ""
37535 "The normal transitions are (1) CONFIG (when the handle is created, but there "
37536 "is no child process), (2) LAUNCHING (when the child process is booting up), "
37537 "(3) alternating between READY and BUSY as commands are issued to, and "
37538 "carried out by, the child process."
37539 msgstr ""
37540
37541 #. type: textblock
37542 #: ../src/guestfs.pod:2337
37543 msgid ""
37544 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
37545 "asynchronously at any time (eg. due to some internal error), and that causes "
37546 "the state to transition back to CONFIG."
37547 msgstr ""
37548
37549 #. type: textblock
37550 #: ../src/guestfs.pod:2341
37551 msgid ""
37552 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
37553 "issued when in the CONFIG state."
37554 msgstr ""
37555
37556 #. type: textblock
37557 #: ../src/guestfs.pod:2344
37558 msgid ""
37559 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
37560 "L</guestfs_launch> blocks until the child process is READY to accept "
37561 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
37562 "moves the state from CONFIG to LAUNCHING while it is running."
37563 msgstr ""
37564
37565 #. type: textblock
37566 #: ../src/guestfs.pod:2350
37567 msgid ""
37568 "API actions such as L</guestfs_mount> can only be issued when in the READY "
37569 "state.  These API calls block waiting for the command to be carried out "
37570 "(ie. the state to transition to BUSY and then back to READY).  There are no "
37571 "non-blocking versions, and no way to issue more than one command per handle "
37572 "at the same time."
37573 msgstr ""
37574
37575 #. type: textblock
37576 #: ../src/guestfs.pod:2356
37577 msgid ""
37578 "Finally, the child process sends asynchronous messages back to the main "
37579 "program, such as kernel log messages.  You can register a callback to "
37580 "receive these messages."
37581 msgstr ""
37582
37583 #. type: =head1
37584 #: ../src/guestfs.pod:2360
37585 msgid "INTERNALS"
37586 msgstr ""
37587
37588 #. type: =head2
37589 #: ../src/guestfs.pod:2362
37590 msgid "APPLIANCE BOOT PROCESS"
37591 msgstr ""
37592
37593 #. type: textblock
37594 #: ../src/guestfs.pod:2364
37595 msgid ""
37596 "This process has evolved and continues to evolve.  The description here "
37597 "corresponds only to the current version of libguestfs and is provided for "
37598 "information only."
37599 msgstr ""
37600
37601 #. type: textblock
37602 #: ../src/guestfs.pod:2368
37603 msgid ""
37604 "In order to follow the stages involved below, enable libguestfs debugging "
37605 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
37606 msgstr ""
37607
37608 #. type: =item
37609 #: ../src/guestfs.pod:2373
37610 msgid "Create the appliance"
37611 msgstr ""
37612
37613 #. type: textblock
37614 #: ../src/guestfs.pod:2375
37615 msgid ""
37616 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
37617 "initrd and the appliance."
37618 msgstr ""
37619
37620 #. type: textblock
37621 #: ../src/guestfs.pod:2378
37622 msgid ""
37623 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
37624 "directory if C<TMPDIR> is set)."
37625 msgstr ""
37626
37627 #. type: textblock
37628 #: ../src/guestfs.pod:2381
37629 msgid ""
37630 "For a complete description of how the appliance is created and cached, read "
37631 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
37632 msgstr ""
37633
37634 #. type: =item
37635 #: ../src/guestfs.pod:2385
37636 msgid "Start qemu and boot the kernel"
37637 msgstr ""
37638
37639 #. type: textblock
37640 #: ../src/guestfs.pod:2387
37641 msgid "qemu is invoked to boot the kernel."
37642 msgstr ""
37643
37644 #. type: =item
37645 #: ../src/guestfs.pod:2389
37646 msgid "Run the initrd"
37647 msgstr ""
37648
37649 #. type: textblock
37650 #: ../src/guestfs.pod:2391
37651 msgid ""
37652 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
37653 "appliance.  The purpose of the initrd is to load enough kernel modules in "
37654 "order that the appliance itself can be mounted and started."
37655 msgstr ""
37656
37657 #. type: textblock
37658 #: ../src/guestfs.pod:2395
37659 msgid ""
37660 "The initrd is a cpio archive called "
37661 "C</var/tmp/.guestfs-E<lt>UIDE<gt>/initrd>."
37662 msgstr ""
37663
37664 #. type: textblock
37665 #: ../src/guestfs.pod:2398
37666 msgid ""
37667 "When the initrd has started you will see messages showing that kernel "
37668 "modules are being loaded, similar to this:"
37669 msgstr ""
37670
37671 #. type: verbatim
37672 #: ../src/guestfs.pod:2401
37673 #, no-wrap
37674 msgid ""
37675 " febootstrap: ext2 mini initrd starting up\n"
37676 " febootstrap: mounting /sys\n"
37677 " febootstrap: internal insmod libcrc32c.ko\n"
37678 " febootstrap: internal insmod crc32c-intel.ko\n"
37679 "\n"
37680 msgstr ""
37681
37682 #. type: =item
37683 #: ../src/guestfs.pod:2406
37684 msgid "Find and mount the appliance device"
37685 msgstr ""
37686
37687 #. type: textblock
37688 #: ../src/guestfs.pod:2408
37689 msgid ""
37690 "The appliance is a sparse file containing an ext2 filesystem which contains "
37691 "a familiar (although reduced in size) Linux operating system.  It would "
37692 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
37693 msgstr ""
37694
37695 #. type: textblock
37696 #: ../src/guestfs.pod:2412
37697 msgid ""
37698 "The regular disks being inspected by libguestfs are the first devices "
37699 "exposed by qemu (eg. as C</dev/vda>)."
37700 msgstr ""
37701
37702 #. type: textblock
37703 #: ../src/guestfs.pod:2415
37704 msgid ""
37705 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
37706 "there was only one regular disk)."
37707 msgstr ""
37708
37709 #. type: textblock
37710 #: ../src/guestfs.pod:2418
37711 msgid ""
37712 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
37713 "and switch root into the appliance, and run C</init> from the appliance."
37714 msgstr ""
37715
37716 #. type: textblock
37717 #: ../src/guestfs.pod:2422
37718 msgid "If this works successfully you will see messages such as:"
37719 msgstr ""
37720
37721 #. type: verbatim
37722 #: ../src/guestfs.pod:2424
37723 #, no-wrap
37724 msgid ""
37725 " febootstrap: picked /sys/block/vdb/dev as root device\n"
37726 " febootstrap: creating /dev/root as block special 252:16\n"
37727 " febootstrap: mounting new root on /root\n"
37728 " febootstrap: chroot\n"
37729 " Starting /init script ...\n"
37730 "\n"
37731 msgstr ""
37732
37733 #. type: textblock
37734 #: ../src/guestfs.pod:2430
37735 msgid ""
37736 "Note that C<Starting /init script ...> indicates that the appliance's init "
37737 "script is now running."
37738 msgstr ""
37739
37740 #. type: =item
37741 #: ../src/guestfs.pod:2433
37742 msgid "Initialize the appliance"
37743 msgstr ""
37744
37745 #. type: textblock
37746 #: ../src/guestfs.pod:2435
37747 msgid ""
37748 "The appliance itself now initializes itself.  This involves starting certain "
37749 "processes like C<udev>, possibly printing some debug information, and "
37750 "finally running the daemon (C<guestfsd>)."
37751 msgstr ""
37752
37753 #. type: =item
37754 #: ../src/guestfs.pod:2439
37755 msgid "The daemon"
37756 msgstr ""
37757
37758 #. type: textblock
37759 #: ../src/guestfs.pod:2441
37760 msgid ""
37761 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
37762 "should see:"
37763 msgstr ""
37764
37765 #. type: verbatim
37766 #: ../src/guestfs.pod:2444
37767 #, no-wrap
37768 msgid ""
37769 " verbose daemon enabled\n"
37770 "\n"
37771 msgstr ""
37772
37773 #. type: textblock
37774 #: ../src/guestfs.pod:2446
37775 msgid ""
37776 "The daemon expects to see a named virtio-serial port exposed by qemu and "
37777 "connected on the other end to the library."
37778 msgstr ""
37779
37780 #. type: textblock
37781 #: ../src/guestfs.pod:2449
37782 msgid ""
37783 "The daemon connects to this port (and hence to the library) and sends a four "
37784 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
37785 "protocol (see below)."
37786 msgstr ""
37787
37788 #. type: =head2
37789 #: ../src/guestfs.pod:2455
37790 msgid "COMMUNICATION PROTOCOL"
37791 msgstr ""
37792
37793 #. type: textblock
37794 #: ../src/guestfs.pod:2457
37795 msgid ""
37796 "Don't rely on using this protocol directly.  This section documents how it "
37797 "currently works, but it may change at any time."
37798 msgstr ""
37799
37800 #. type: textblock
37801 #: ../src/guestfs.pod:2460
37802 msgid ""
37803 "The protocol used to talk between the library and the daemon running inside "
37804 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
37805 "1014, RFC 1832, RFC 4506)."
37806 msgstr ""
37807
37808 #. type: textblock
37809 #: ../src/guestfs.pod:2464
37810 msgid ""
37811 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
37812 "this file is automatically generated)."
37813 msgstr ""
37814
37815 #. type: textblock
37816 #: ../src/guestfs.pod:2467
37817 msgid ""
37818 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
37819 "and C<FileOut> parameters, which are handled with very simple request/reply "
37820 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
37821 "parameters, which use the same request and reply messages, but they may also "
37822 "be followed by files sent using a chunked encoding."
37823 msgstr ""
37824
37825 #. type: =head3
37826 #: ../src/guestfs.pod:2474
37827 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
37828 msgstr ""
37829
37830 #. type: textblock
37831 #: ../src/guestfs.pod:2476
37832 msgid "For ordinary functions, the request message is:"
37833 msgstr ""
37834
37835 #. type: verbatim
37836 #: ../src/guestfs.pod:2478
37837 #, no-wrap
37838 msgid ""
37839 " total length (header + arguments,\n"
37840 "      but not including the length word itself)\n"
37841 " struct guestfs_message_header (encoded as XDR)\n"
37842 " struct guestfs_<foo>_args (encoded as XDR)\n"
37843 "\n"
37844 msgstr ""
37845
37846 #. type: textblock
37847 #: ../src/guestfs.pod:2483
37848 msgid ""
37849 "The total length field allows the daemon to allocate a fixed size buffer "
37850 "into which it slurps the rest of the message.  As a result, the total length "
37851 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
37852 "effective size of any request is limited to somewhere under this size."
37853 msgstr ""
37854
37855 #. type: textblock
37856 #: ../src/guestfs.pod:2489
37857 msgid ""
37858 "Note also that many functions don't take any arguments, in which case the "
37859 "C<guestfs_I<foo>_args> is completely omitted."
37860 msgstr ""
37861
37862 #. type: textblock
37863 #: ../src/guestfs.pod:2492
37864 msgid ""
37865 "The header contains the procedure number (C<guestfs_proc>) which is how the "
37866 "receiver knows what type of args structure to expect, or none at all."
37867 msgstr ""
37868
37869 #. type: textblock
37870 #: ../src/guestfs.pod:2496
37871 msgid ""
37872 "For functions that take optional arguments, the optional arguments are "
37873 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
37874 "arguments.  A bitmask in the header indicates which optional arguments are "
37875 "meaningful.  The bitmask is also checked to see if it contains bits set "
37876 "which the daemon does not know about (eg. if more optional arguments were "
37877 "added in a later version of the library), and this causes the call to be "
37878 "rejected."
37879 msgstr ""
37880
37881 #. type: textblock
37882 #: ../src/guestfs.pod:2504
37883 msgid "The reply message for ordinary functions is:"
37884 msgstr ""
37885
37886 #. type: verbatim
37887 #: ../src/guestfs.pod:2506
37888 #, no-wrap
37889 msgid ""
37890 " total length (header + ret,\n"
37891 "      but not including the length word itself)\n"
37892 " struct guestfs_message_header (encoded as XDR)\n"
37893 " struct guestfs_<foo>_ret (encoded as XDR)\n"
37894 "\n"
37895 msgstr ""
37896
37897 #. type: textblock
37898 #: ../src/guestfs.pod:2511
37899 msgid ""
37900 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
37901 "functions that return no formal return values."
37902 msgstr ""
37903
37904 #. type: textblock
37905 #: ../src/guestfs.pod:2514
37906 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
37907 msgstr ""
37908
37909 #. type: textblock
37910 #: ../src/guestfs.pod:2517
37911 msgid ""
37912 "In the case of an error, a flag is set in the header, and the reply message "
37913 "is slightly changed:"
37914 msgstr ""
37915
37916 #. type: verbatim
37917 #: ../src/guestfs.pod:2520
37918 #, no-wrap
37919 msgid ""
37920 " total length (header + error,\n"
37921 "      but not including the length word itself)\n"
37922 " struct guestfs_message_header (encoded as XDR)\n"
37923 " struct guestfs_message_error (encoded as XDR)\n"
37924 "\n"
37925 msgstr ""
37926
37927 #. type: textblock
37928 #: ../src/guestfs.pod:2525
37929 msgid ""
37930 "The C<guestfs_message_error> structure contains the error message as a "
37931 "string."
37932 msgstr ""
37933
37934 #. type: =head3
37935 #: ../src/guestfs.pod:2528
37936 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
37937 msgstr ""
37938
37939 #. type: textblock
37940 #: ../src/guestfs.pod:2530
37941 msgid ""
37942 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
37943 "The normal request message is sent (see above).  However this is followed by "
37944 "a sequence of file chunks."
37945 msgstr ""
37946
37947 #. type: verbatim
37948 #: ../src/guestfs.pod:2534
37949 #, no-wrap
37950 msgid ""
37951 " total length (header + arguments,\n"
37952 "      but not including the length word itself,\n"
37953 "      and not including the chunks)\n"
37954 " struct guestfs_message_header (encoded as XDR)\n"
37955 " struct guestfs_<foo>_args (encoded as XDR)\n"
37956 " sequence of chunks for FileIn param #0\n"
37957 " sequence of chunks for FileIn param #1 etc.\n"
37958 "\n"
37959 msgstr ""
37960
37961 #. type: textblock
37962 #: ../src/guestfs.pod:2542
37963 msgid "The \"sequence of chunks\" is:"
37964 msgstr ""
37965
37966 #. type: verbatim
37967 #: ../src/guestfs.pod:2544
37968 #, no-wrap
37969 msgid ""
37970 " length of chunk (not including length word itself)\n"
37971 " struct guestfs_chunk (encoded as XDR)\n"
37972 " length of chunk\n"
37973 " struct guestfs_chunk (encoded as XDR)\n"
37974 "   ...\n"
37975 " length of chunk\n"
37976 " struct guestfs_chunk (with data.data_len == 0)\n"
37977 "\n"
37978 msgstr ""
37979
37980 #. type: textblock
37981 #: ../src/guestfs.pod:2552
37982 msgid ""
37983 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
37984 "is set in the final chunk to indicate either successful completion or early "
37985 "cancellation."
37986 msgstr ""
37987
37988 #. type: textblock
37989 #: ../src/guestfs.pod:2556
37990 msgid ""
37991 "At time of writing there are no functions that have more than one FileIn "
37992 "parameter.  However this is (theoretically) supported, by sending the "
37993 "sequence of chunks for each FileIn parameter one after another (from left to "
37994 "right)."
37995 msgstr ""
37996
37997 #. type: textblock
37998 #: ../src/guestfs.pod:2561
37999 msgid ""
38000 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
38001 "transfer.  The library does this by sending a chunk with a special flag set "
38002 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
38003 "RPC, does I<not> send any reply, and goes back to reading the next request."
38004 msgstr ""
38005
38006 #. type: textblock
38007 #: ../src/guestfs.pod:2567
38008 msgid ""
38009 "The daemon may also cancel.  It does this by writing a special word "
38010 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
38011 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
38012 "cancel chunk).  The special word is chosen so that even if cancellation "
38013 "happens right at the end of the transfer (after the library has finished "
38014 "writing and has started listening for the reply), the \"spurious\" cancel "
38015 "flag will not be confused with the reply message."
38016 msgstr ""
38017
38018 #. type: textblock
38019 #: ../src/guestfs.pod:2576
38020 msgid ""
38021 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
38022 "limit), and also files where the size is not known in advance (eg. from "
38023 "pipes or sockets).  However the chunks are rather small "
38024 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
38025 "to keep much in memory."
38026 msgstr ""
38027
38028 #. type: =head3
38029 #: ../src/guestfs.pod:2582
38030 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
38031 msgstr ""
38032
38033 #. type: textblock
38034 #: ../src/guestfs.pod:2584
38035 msgid ""
38036 "The protocol for FileOut parameters is exactly the same as for FileIn "
38037 "parameters, but with the roles of daemon and library reversed."
38038 msgstr ""
38039
38040 #. type: verbatim
38041 #: ../src/guestfs.pod:2587
38042 #, no-wrap
38043 msgid ""
38044 " total length (header + ret,\n"
38045 "      but not including the length word itself,\n"
38046 "      and not including the chunks)\n"
38047 " struct guestfs_message_header (encoded as XDR)\n"
38048 " struct guestfs_<foo>_ret (encoded as XDR)\n"
38049 " sequence of chunks for FileOut param #0\n"
38050 " sequence of chunks for FileOut param #1 etc.\n"
38051 "\n"
38052 msgstr ""
38053
38054 #. type: =head3
38055 #: ../src/guestfs.pod:2595
38056 msgid "INITIAL MESSAGE"
38057 msgstr ""
38058
38059 #. type: textblock
38060 #: ../src/guestfs.pod:2597
38061 msgid ""
38062 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
38063 "which indicates that the guest and daemon is alive.  This is what "
38064 "L</guestfs_launch> waits for."
38065 msgstr ""
38066
38067 #. type: =head3
38068 #: ../src/guestfs.pod:2601
38069 msgid "PROGRESS NOTIFICATION MESSAGES"
38070 msgstr ""
38071
38072 #. type: textblock
38073 #: ../src/guestfs.pod:2603
38074 msgid ""
38075 "The daemon may send progress notification messages at any time.  These are "
38076 "distinguished by the normal length word being replaced by "
38077 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
38078 msgstr ""
38079
38080 #. type: textblock
38081 #: ../src/guestfs.pod:2607
38082 msgid ""
38083 "The library turns them into progress callbacks (see "
38084 "L</GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards "
38085 "them if not."
38086 msgstr ""
38087
38088 #. type: textblock
38089 #: ../src/guestfs.pod:2611
38090 msgid ""
38091 "The daemon self-limits the frequency of progress messages it sends (see "
38092 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
38093 "messages."
38094 msgstr ""
38095
38096 #. type: =head1
38097 #: ../src/guestfs.pod:2615
38098 msgid "LIBGUESTFS VERSION NUMBERS"
38099 msgstr ""
38100
38101 #. type: textblock
38102 #: ../src/guestfs.pod:2617
38103 msgid ""
38104 "Since April 2010, libguestfs has started to make separate development and "
38105 "stable releases, along with corresponding branches in our git repository.  "
38106 "These separate releases can be identified by version number:"
38107 msgstr ""
38108
38109 #. type: verbatim
38110 #: ../src/guestfs.pod:2622
38111 #, no-wrap
38112 msgid ""
38113 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
38114 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
38115 "       |\n"
38116 "       v\n"
38117 " 1  .  3  .  5\n"
38118 " ^           ^\n"
38119 " |           |\n"
38120 " |           `-------- sub-version\n"
38121 " |\n"
38122 " `------ always '1' because we don't change the ABI\n"
38123 "\n"
38124 msgstr ""
38125
38126 #. type: textblock
38127 #: ../src/guestfs.pod:2633
38128 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
38129 msgstr ""
38130
38131 #. type: textblock
38132 #: ../src/guestfs.pod:2635
38133 msgid ""
38134 "As time passes we cherry pick fixes from the development branch and backport "
38135 "those into the stable branch, the effect being that the stable branch should "
38136 "get more stable and less buggy over time.  So the stable releases are ideal "
38137 "for people who don't need new features but would just like the software to "
38138 "work."
38139 msgstr ""
38140
38141 #. type: textblock
38142 #: ../src/guestfs.pod:2641
38143 msgid "Our criteria for backporting changes are:"
38144 msgstr ""
38145
38146 #. type: textblock
38147 #: ../src/guestfs.pod:2647
38148 msgid ""
38149 "Documentation changes which don't affect any code are backported unless the "
38150 "documentation refers to a future feature which is not in stable."
38151 msgstr ""
38152
38153 #. type: textblock
38154 #: ../src/guestfs.pod:2653
38155 msgid ""
38156 "Bug fixes which are not controversial, fix obvious problems, and have been "
38157 "well tested are backported."
38158 msgstr ""
38159
38160 #. type: textblock
38161 #: ../src/guestfs.pod:2658
38162 msgid ""
38163 "Simple rearrangements of code which shouldn't affect how it works get "
38164 "backported.  This is so that the code in the two branches doesn't get too "
38165 "far out of step, allowing us to backport future fixes more easily."
38166 msgstr ""
38167
38168 #. type: textblock
38169 #: ../src/guestfs.pod:2664
38170 msgid ""
38171 "We I<don't> backport new features, new APIs, new tools etc, except in one "
38172 "exceptional case: the new feature is required in order to implement an "
38173 "important bug fix."
38174 msgstr ""
38175
38176 #. type: textblock
38177 #: ../src/guestfs.pod:2670
38178 msgid ""
38179 "A new stable branch starts when we think the new features in development are "
38180 "substantial and compelling enough over the current stable branch to warrant "
38181 "it.  When that happens we create new stable and development versions 1.N.0 "
38182 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
38183 "stable at this point, but by backporting fixes from development, that branch "
38184 "will stabilize over time."
38185 msgstr ""
38186
38187 #. type: =head1
38188 #: ../src/guestfs.pod:2678
38189 msgid "EXTENDING LIBGUESTFS"
38190 msgstr ""
38191
38192 #. type: =head2
38193 #: ../src/guestfs.pod:2680
38194 msgid "ADDING A NEW API ACTION"
38195 msgstr ""
38196
38197 #. type: textblock
38198 #: ../src/guestfs.pod:2682
38199 msgid ""
38200 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
38201 "documentation) are generated, and this makes it easy to extend the "
38202 "libguestfs API."
38203 msgstr ""
38204
38205 #. type: textblock
38206 #: ../src/guestfs.pod:2686
38207 msgid "To add a new API action there are two changes:"
38208 msgstr ""
38209
38210 #. type: textblock
38211 #: ../src/guestfs.pod:2692
38212 msgid ""
38213 "You need to add a description of the call (name, parameters, return type, "
38214 "tests, documentation) to C<generator/generator_actions.ml>."
38215 msgstr ""
38216
38217 #. type: textblock
38218 #: ../src/guestfs.pod:2695
38219 msgid ""
38220 "There are two sorts of API action, depending on whether the call goes "
38221 "through to the daemon in the appliance, or is serviced entirely by the "
38222 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
38223 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
38224 "an example of the latter, since a trace flag is maintained in the handle and "
38225 "all tracing is done on the library side."
38226 msgstr ""
38227
38228 #. type: textblock
38229 #: ../src/guestfs.pod:2703
38230 msgid ""
38231 "Most new actions are of the first type, and get added to the "
38232 "C<daemon_functions> list.  Each function has a unique procedure number used "
38233 "in the RPC protocol which is assigned to that action when we publish "
38234 "libguestfs and cannot be reused.  Take the latest procedure number and "
38235 "increment it."
38236 msgstr ""
38237
38238 #. type: textblock
38239 #: ../src/guestfs.pod:2709
38240 msgid ""
38241 "For library-only actions of the second type, add to the "
38242 "C<non_daemon_functions> list.  Since these functions are serviced by the "
38243 "library and do not travel over the RPC mechanism to the daemon, these "
38244 "functions do not need a procedure number, and so the procedure number is set "
38245 "to C<-1>."
38246 msgstr ""
38247
38248 #. type: textblock
38249 #: ../src/guestfs.pod:2717
38250 msgid "Implement the action (in C):"
38251 msgstr ""
38252
38253 #. type: textblock
38254 #: ../src/guestfs.pod:2719
38255 msgid ""
38256 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
38257 "C<daemon/> directory."
38258 msgstr ""
38259
38260 #. type: textblock
38261 #: ../src/guestfs.pod:2722
38262 msgid ""
38263 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
38264 "(note: double underscore) in the C<src/> directory."
38265 msgstr ""
38266
38267 #. type: textblock
38268 #: ../src/guestfs.pod:2725
38269 msgid "In either case, use another function as an example of what to do."
38270 msgstr ""
38271
38272 #. type: textblock
38273 #: ../src/guestfs.pod:2729
38274 msgid "After making these changes, use C<make> to compile."
38275 msgstr ""
38276
38277 #. type: textblock
38278 #: ../src/guestfs.pod:2731
38279 msgid ""
38280 "Note that you don't need to implement the RPC, language bindings, manual "
38281 "pages or anything else.  It's all automatically generated from the OCaml "
38282 "description."
38283 msgstr ""
38284
38285 #. type: =head2
38286 #: ../src/guestfs.pod:2735
38287 msgid "ADDING TESTS FOR AN API ACTION"
38288 msgstr ""
38289
38290 #. type: textblock
38291 #: ../src/guestfs.pod:2737
38292 msgid ""
38293 "You can supply zero or as many tests as you want per API call.  The tests "
38294 "can either be added as part of the API description "
38295 "(C<generator/generator_actions.ml>), or in some rarer cases you may want to "
38296 "drop a script into C<regressions/>.  Note that adding a script to "
38297 "C<regressions/> is slower, so if possible use the first method."
38298 msgstr ""
38299
38300 #. type: textblock
38301 #: ../src/guestfs.pod:2743
38302 msgid ""
38303 "The following describes the test environment used when you add an API test "
38304 "in C<generator_actions.ml>."
38305 msgstr ""
38306
38307 #. type: textblock
38308 #: ../src/guestfs.pod:2746
38309 msgid "The test environment has 4 block devices:"
38310 msgstr ""
38311
38312 #. type: =item
38313 #: ../src/guestfs.pod:2750
38314 msgid "C</dev/sda> 500MB"
38315 msgstr ""
38316
38317 #. type: textblock
38318 #: ../src/guestfs.pod:2752
38319 msgid "General block device for testing."
38320 msgstr ""
38321
38322 #. type: =item
38323 #: ../src/guestfs.pod:2754
38324 msgid "C</dev/sdb> 50MB"
38325 msgstr ""
38326
38327 #. type: textblock
38328 #: ../src/guestfs.pod:2756
38329 msgid ""
38330 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
38331 "operations."
38332 msgstr ""
38333
38334 #. type: =item
38335 #: ../src/guestfs.pod:2759
38336 msgid "C</dev/sdc> 10MB"
38337 msgstr ""
38338
38339 #. type: textblock
38340 #: ../src/guestfs.pod:2761
38341 msgid "Used in a few tests where two block devices are needed."
38342 msgstr ""
38343
38344 #. type: =item
38345 #: ../src/guestfs.pod:2763
38346 msgid "C</dev/sdd>"
38347 msgstr ""
38348
38349 #. type: textblock
38350 #: ../src/guestfs.pod:2765
38351 msgid "ISO with fixed content (see C<images/test.iso>)."
38352 msgstr ""
38353
38354 #. type: textblock
38355 #: ../src/guestfs.pod:2769
38356 msgid ""
38357 "To be able to run the tests in a reasonable amount of time, the libguestfs "
38358 "appliance and block devices are reused between tests.  So don't try testing "
38359 "L</guestfs_kill_subprocess> :-x"
38360 msgstr ""
38361
38362 #. type: textblock
38363 #: ../src/guestfs.pod:2773
38364 msgid ""
38365 "Each test starts with an initial scenario, selected using one of the "
38366 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
38367 "initialize the disks mentioned above in a particular way as documented in "
38368 "C<generator_types.ml>.  You should not assume anything about the previous "
38369 "contents of other disks that are not initialized."
38370 msgstr ""
38371
38372 #. type: textblock
38373 #: ../src/guestfs.pod:2779
38374 msgid ""
38375 "You can add a prerequisite clause to any individual test.  This is a "
38376 "run-time check, which, if it fails, causes the test to be skipped.  Useful "
38377 "if testing a command which might not work on all variations of libguestfs "
38378 "builds.  A test that has prerequisite of C<Always> means to run "
38379 "unconditionally."
38380 msgstr ""
38381
38382 #. type: textblock
38383 #: ../src/guestfs.pod:2785
38384 msgid ""
38385 "In addition, packagers can skip individual tests by setting environment "
38386 "variables before running C<make check>."
38387 msgstr ""
38388
38389 #. type: verbatim
38390 #: ../src/guestfs.pod:2788
38391 #, no-wrap
38392 msgid ""
38393 " SKIP_TEST_<CMD>_<NUM>=1\n"
38394 "\n"
38395 msgstr ""
38396
38397 #. type: textblock
38398 #: ../src/guestfs.pod:2790
38399 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
38400 msgstr ""
38401
38402 #. type: textblock
38403 #: ../src/guestfs.pod:2792
38404 msgid "or:"
38405 msgstr ""
38406
38407 #. type: verbatim
38408 #: ../src/guestfs.pod:2794
38409 #, no-wrap
38410 msgid ""
38411 " SKIP_TEST_<CMD>=1\n"
38412 "\n"
38413 msgstr ""
38414
38415 #. type: textblock
38416 #: ../src/guestfs.pod:2796
38417 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
38418 msgstr ""
38419
38420 #. type: textblock
38421 #: ../src/guestfs.pod:2798
38422 msgid "Packagers can run only certain tests by setting for example:"
38423 msgstr ""
38424
38425 #. type: verbatim
38426 #: ../src/guestfs.pod:2800
38427 #, no-wrap
38428 msgid ""
38429 " TEST_ONLY=\"vfs_type zerofree\"\n"
38430 "\n"
38431 msgstr ""
38432
38433 #. type: textblock
38434 #: ../src/guestfs.pod:2802
38435 msgid ""
38436 "See C<capitests/tests.c> for more details of how these environment variables "
38437 "work."
38438 msgstr ""
38439
38440 #. type: =head2
38441 #: ../src/guestfs.pod:2805
38442 msgid "DEBUGGING NEW API ACTIONS"
38443 msgstr ""
38444
38445 #. type: textblock
38446 #: ../src/guestfs.pod:2807
38447 msgid "Test new actions work before submitting them."
38448 msgstr ""
38449
38450 #. type: textblock
38451 #: ../src/guestfs.pod:2809
38452 msgid "You can use guestfish to try out new commands."
38453 msgstr ""
38454
38455 #. type: textblock
38456 #: ../src/guestfs.pod:2811
38457 msgid ""
38458 "Debugging the daemon is a problem because it runs inside a minimal "
38459 "environment.  However you can fprintf messages in the daemon to stderr, and "
38460 "they will show up if you use C<guestfish -v>."
38461 msgstr ""
38462
38463 #. type: =head2
38464 #: ../src/guestfs.pod:2815
38465 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
38466 msgstr ""
38467
38468 #. type: textblock
38469 #: ../src/guestfs.pod:2817
38470 msgid ""
38471 "Our C source code generally adheres to some basic code-formatting "
38472 "conventions.  The existing code base is not totally consistent on this "
38473 "front, but we do prefer that contributed code be formatted similarly.  In "
38474 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
38475 "indentation level, and other than that, follow the K&R style."
38476 msgstr ""
38477
38478 #. type: textblock
38479 #: ../src/guestfs.pod:2823
38480 msgid ""
38481 "If you use Emacs, add the following to one of one of your start-up files "
38482 "(e.g., ~/.emacs), to help ensure that you get indentation right:"
38483 msgstr ""
38484
38485 #. type: verbatim
38486 #: ../src/guestfs.pod:2826
38487 #, no-wrap
38488 msgid ""
38489 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
38490 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
38491 " (add-hook 'find-file-hook\n"
38492 "     '(lambda () (if (and buffer-file-name\n"
38493 "                          (string-match \"/libguestfs\\\\>\"\n"
38494 "                              (buffer-file-name))\n"
38495 "                          (not (string-equal mode-name \"Change Log\"))\n"
38496 "                          (not (string-equal mode-name \"Makefile\")))\n"
38497 "                     (setq indent-tabs-mode nil))))\n"
38498 " \n"
38499 msgstr ""
38500
38501 #. type: verbatim
38502 #: ../src/guestfs.pod:2836
38503 #, no-wrap
38504 msgid ""
38505 " ;;; When editing C sources in libguestfs, use this style.\n"
38506 " (defun libguestfs-c-mode ()\n"
38507 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
38508 "   (interactive)\n"
38509 "   (c-set-style \"K&R\")\n"
38510 "   (setq c-indent-level 2)\n"
38511 "   (setq c-basic-offset 2))\n"
38512 " (add-hook 'c-mode-hook\n"
38513 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
38514 "                               (buffer-file-name))\n"
38515 "                           (libguestfs-c-mode))))\n"
38516 "\n"
38517 msgstr ""
38518
38519 #. type: textblock
38520 #: ../src/guestfs.pod:2848
38521 msgid "Enable warnings when compiling (and fix any problems this finds):"
38522 msgstr ""
38523
38524 #. type: verbatim
38525 #: ../src/guestfs.pod:2851
38526 #, no-wrap
38527 msgid ""
38528 " ./configure --enable-gcc-warnings\n"
38529 "\n"
38530 msgstr ""
38531
38532 #. type: textblock
38533 #: ../src/guestfs.pod:2853
38534 msgid "Useful targets are:"
38535 msgstr ""
38536
38537 #. type: verbatim
38538 #: ../src/guestfs.pod:2855
38539 #, no-wrap
38540 msgid ""
38541 " make syntax-check  # checks the syntax of the C code\n"
38542 " make check         # runs the test suite\n"
38543 "\n"
38544 msgstr ""
38545
38546 #. type: =head2
38547 #: ../src/guestfs.pod:2858
38548 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
38549 msgstr ""
38550
38551 #. type: textblock
38552 #: ../src/guestfs.pod:2860
38553 msgid ""
38554 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
38555 "which are used to do shell quoting."
38556 msgstr ""
38557
38558 #. type: =item
38559 #: ../src/guestfs.pod:2865
38560 msgid "%Q"
38561 msgstr ""
38562
38563 #. type: textblock
38564 #: ../src/guestfs.pod:2867
38565 msgid ""
38566 "Simple shell quoted string.  Any spaces or other shell characters are "
38567 "escaped for you."
38568 msgstr ""
38569
38570 #. type: =item
38571 #: ../src/guestfs.pod:2870
38572 msgid "%R"
38573 msgstr ""
38574
38575 #. type: textblock
38576 #: ../src/guestfs.pod:2872
38577 msgid ""
38578 "Same as C<%Q> except the string is treated as a path which is prefixed by "
38579 "the sysroot."
38580 msgstr ""
38581
38582 #. type: verbatim
38583 #: ../src/guestfs.pod:2879
38584 #, no-wrap
38585 msgid ""
38586 " asprintf (&cmd, \"cat %R\", path);\n"
38587 "\n"
38588 msgstr ""
38589
38590 #. type: textblock
38591 #: ../src/guestfs.pod:2881
38592 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
38593 msgstr ""
38594
38595 #. type: textblock
38596 #: ../src/guestfs.pod:2883
38597 msgid ""
38598 "I<Note:> Do I<not> use these when you are passing parameters to the "
38599 "C<command{,r,v,rv}()> functions.  These parameters do NOT need to be quoted "
38600 "because they are not passed via the shell (instead, straight to exec).  You "
38601 "probably want to use the C<sysroot_path()> function however."
38602 msgstr ""
38603
38604 #. type: =head2
38605 #: ../src/guestfs.pod:2889
38606 msgid "SUBMITTING YOUR NEW API ACTIONS"
38607 msgstr ""
38608
38609 #. type: textblock
38610 #: ../src/guestfs.pod:2891
38611 msgid ""
38612 "Submit patches to the mailing list: "
38613 "L<http://www.redhat.com/mailman/listinfo/libguestfs> and CC to "
38614 "L<rjones@redhat.com>."
38615 msgstr ""
38616
38617 #. type: =head2
38618 #: ../src/guestfs.pod:2895
38619 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
38620 msgstr ""
38621
38622 #. type: textblock
38623 #: ../src/guestfs.pod:2897
38624 msgid "We support i18n (gettext anyhow) in the library."
38625 msgstr ""
38626
38627 #. type: textblock
38628 #: ../src/guestfs.pod:2899
38629 msgid ""
38630 "However many messages come from the daemon, and we don't translate those at "
38631 "the moment.  One reason is that the appliance generally has all locale files "
38632 "removed from it, because they take up a lot of space.  So we'd have to readd "
38633 "some of those, as well as copying our PO files into the appliance."
38634 msgstr ""
38635
38636 #. type: textblock
38637 #: ../src/guestfs.pod:2905
38638 msgid ""
38639 "Debugging messages are never translated, since they are intended for the "
38640 "programmers."
38641 msgstr ""
38642
38643 #. type: =head2
38644 #: ../src/guestfs.pod:2908
38645 msgid "SOURCE CODE SUBDIRECTORIES"
38646 msgstr ""
38647
38648 #. type: =item
38649 #: ../src/guestfs.pod:2912
38650 msgid "C<align>"
38651 msgstr ""
38652
38653 #. type: textblock
38654 #: ../src/guestfs.pod:2914
38655 msgid "L<virt-alignment-scan(1)> command and documentation."
38656 msgstr ""
38657
38658 #. type: textblock
38659 #: ../src/guestfs.pod:2918
38660 msgid "The libguestfs appliance, build scripts and so on."
38661 msgstr ""
38662
38663 #. type: =item
38664 #: ../src/guestfs.pod:2920
38665 msgid "C<capitests>"
38666 msgstr ""
38667
38668 #. type: textblock
38669 #: ../src/guestfs.pod:2922
38670 msgid "Automated tests of the C API."
38671 msgstr ""
38672
38673 #. type: =item
38674 #: ../src/guestfs.pod:2924
38675 msgid "C<cat>"
38676 msgstr ""
38677
38678 #. type: textblock
38679 #: ../src/guestfs.pod:2926
38680 msgid ""
38681 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
38682 "documentation."
38683 msgstr ""
38684
38685 #. type: =item
38686 #: ../src/guestfs.pod:2929
38687 msgid "C<caution>"
38688 msgstr ""
38689
38690 #. type: textblock
38691 #: ../src/guestfs.pod:2931
38692 msgid ""
38693 "Safety and liveness tests of components that libguestfs depends upon (not of "
38694 "libguestfs itself).  Mainly this is for qemu and the kernel."
38695 msgstr ""
38696
38697 #. type: =item
38698 #: ../src/guestfs.pod:2934
38699 msgid "C<clone>"
38700 msgstr ""
38701
38702 #. type: textblock
38703 #: ../src/guestfs.pod:2936
38704 msgid ""
38705 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
38706 "command and documentation."
38707 msgstr ""
38708
38709 #. type: =item
38710 #: ../src/guestfs.pod:2939
38711 msgid "C<contrib>"
38712 msgstr ""
38713
38714 #. type: textblock
38715 #: ../src/guestfs.pod:2941
38716 msgid "Outside contributions, experimental parts."
38717 msgstr ""
38718
38719 #. type: =item
38720 #: ../src/guestfs.pod:2943
38721 msgid "C<daemon>"
38722 msgstr ""
38723
38724 #. type: textblock
38725 #: ../src/guestfs.pod:2945
38726 msgid ""
38727 "The daemon that runs inside the libguestfs appliance and carries out "
38728 "actions."
38729 msgstr ""
38730
38731 #. type: =item
38732 #: ../src/guestfs.pod:2948
38733 msgid "C<df>"
38734 msgstr ""
38735
38736 #. type: textblock
38737 #: ../src/guestfs.pod:2950
38738 msgid "L<virt-df(1)> command and documentation."
38739 msgstr ""
38740
38741 #. type: =item
38742 #: ../src/guestfs.pod:2952
38743 msgid "C<edit>"
38744 msgstr ""
38745
38746 #. type: textblock
38747 #: ../src/guestfs.pod:2954
38748 msgid "L<virt-edit(1)> command and documentation."
38749 msgstr ""
38750
38751 #. type: =item
38752 #: ../src/guestfs.pod:2956
38753 msgid "C<examples>"
38754 msgstr ""
38755
38756 #. type: textblock
38757 #: ../src/guestfs.pod:2958
38758 msgid "C API example code."
38759 msgstr ""
38760
38761 #. type: =item
38762 #: ../src/guestfs.pod:2960
38763 msgid "C<fish>"
38764 msgstr ""
38765
38766 #. type: textblock
38767 #: ../src/guestfs.pod:2962
38768 msgid ""
38769 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
38770 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
38771 "L<virt-tar-out(1)>."
38772 msgstr ""
38773
38774 #. type: =item
38775 #: ../src/guestfs.pod:2966
38776 msgid "C<fuse>"
38777 msgstr ""
38778
38779 #. type: textblock
38780 #: ../src/guestfs.pod:2968
38781 msgid "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
38782 msgstr ""
38783
38784 #. type: =item
38785 #: ../src/guestfs.pod:2970
38786 msgid "C<generator>"
38787 msgstr ""
38788
38789 #. type: textblock
38790 #: ../src/guestfs.pod:2972
38791 msgid ""
38792 "The crucially important generator, used to automatically generate large "
38793 "amounts of boilerplate C code for things like RPC and bindings."
38794 msgstr ""
38795
38796 #. type: =item
38797 #: ../src/guestfs.pod:2975
38798 msgid "C<images>"
38799 msgstr ""
38800
38801 #. type: textblock
38802 #: ../src/guestfs.pod:2977
38803 msgid "Files used by the test suite."
38804 msgstr ""
38805
38806 #. type: textblock
38807 #: ../src/guestfs.pod:2979
38808 msgid "Some \"phony\" guest images which we test against."
38809 msgstr ""
38810
38811 #. type: =item
38812 #: ../src/guestfs.pod:2981
38813 msgid "C<inspector>"
38814 msgstr ""
38815
38816 #. type: textblock
38817 #: ../src/guestfs.pod:2983
38818 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
38819 msgstr ""
38820
38821 #. type: =item
38822 #: ../src/guestfs.pod:2985
38823 msgid "C<logo>"
38824 msgstr ""
38825
38826 #. type: textblock
38827 #: ../src/guestfs.pod:2987
38828 msgid "Logo used on the website.  The fish is called Arthur by the way."
38829 msgstr ""
38830
38831 #. type: =item
38832 #: ../src/guestfs.pod:2989
38833 msgid "C<m4>"
38834 msgstr ""
38835
38836 #. type: textblock
38837 #: ../src/guestfs.pod:2991
38838 msgid "M4 macros used by autoconf."
38839 msgstr ""
38840
38841 #. type: =item
38842 #: ../src/guestfs.pod:2993
38843 msgid "C<po>"
38844 msgstr ""
38845
38846 #. type: textblock
38847 #: ../src/guestfs.pod:2995
38848 msgid "Translations of simple gettext strings."
38849 msgstr ""
38850
38851 #. type: =item
38852 #: ../src/guestfs.pod:2997
38853 msgid "C<po-docs>"
38854 msgstr ""
38855
38856 #. type: textblock
38857 #: ../src/guestfs.pod:2999
38858 msgid ""
38859 "The build infrastructure and PO files for translations of manpages and POD "
38860 "files.  Eventually this will be combined with the C<po> directory, but that "
38861 "is rather complicated."
38862 msgstr ""
38863
38864 #. type: =item
38865 #: ../src/guestfs.pod:3003
38866 msgid "C<regressions>"
38867 msgstr ""
38868
38869 #. type: textblock
38870 #: ../src/guestfs.pod:3005
38871 msgid "Regression tests."
38872 msgstr ""
38873
38874 #. type: =item
38875 #: ../src/guestfs.pod:3007
38876 msgid "C<rescue>"
38877 msgstr ""
38878
38879 #. type: textblock
38880 #: ../src/guestfs.pod:3009
38881 msgid "L<virt-rescue(1)> command and documentation."
38882 msgstr ""
38883
38884 #. type: =item
38885 #: ../src/guestfs.pod:3011
38886 msgid "C<resize>"
38887 msgstr ""
38888
38889 #. type: textblock
38890 #: ../src/guestfs.pod:3013
38891 msgid "L<virt-resize(1)> command and documentation."
38892 msgstr ""
38893
38894 #. type: =item
38895 #: ../src/guestfs.pod:3015
38896 msgid "C<sparsify>"
38897 msgstr ""
38898
38899 #. type: textblock
38900 #: ../src/guestfs.pod:3017
38901 msgid "L<virt-sparsify(1)> command and documentation."
38902 msgstr ""
38903
38904 #. type: =item
38905 #: ../src/guestfs.pod:3019
38906 msgid "C<src>"
38907 msgstr ""
38908
38909 #. type: textblock
38910 #: ../src/guestfs.pod:3021
38911 msgid "Source code to the C library."
38912 msgstr ""
38913
38914 #. type: =item
38915 #: ../src/guestfs.pod:3023
38916 msgid "C<tools>"
38917 msgstr ""
38918
38919 #. type: textblock
38920 #: ../src/guestfs.pod:3025
38921 msgid "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
38922 msgstr ""
38923
38924 #. type: =item
38925 #: ../src/guestfs.pod:3027
38926 msgid "C<test-tool>"
38927 msgstr ""
38928
38929 #. type: textblock
38930 #: ../src/guestfs.pod:3029
38931 msgid ""
38932 "Test tool for end users to test if their qemu/kernel combination will work "
38933 "with libguestfs."
38934 msgstr ""
38935
38936 #. type: =item
38937 #: ../src/guestfs.pod:3032
38938 msgid "C<csharp>"
38939 msgstr ""
38940
38941 #. type: =item
38942 #: ../src/guestfs.pod:3034
38943 msgid "C<erlang>"
38944 msgstr ""
38945
38946 #. type: =item
38947 #: ../src/guestfs.pod:3036
38948 msgid "C<haskell>"
38949 msgstr ""
38950
38951 #. type: =item
38952 #: ../src/guestfs.pod:3038
38953 msgid "C<java>"
38954 msgstr ""
38955
38956 #. type: =item
38957 #: ../src/guestfs.pod:3040
38958 msgid "C<ocaml>"
38959 msgstr ""
38960
38961 #. type: =item
38962 #: ../src/guestfs.pod:3042
38963 msgid "C<php>"
38964 msgstr ""
38965
38966 #. type: =item
38967 #: ../src/guestfs.pod:3044
38968 msgid "C<perl>"
38969 msgstr ""
38970
38971 #. type: =item
38972 #: ../src/guestfs.pod:3046
38973 msgid "C<python>"
38974 msgstr ""
38975
38976 #. type: =item
38977 #: ../src/guestfs.pod:3048
38978 msgid "C<ruby>"
38979 msgstr ""
38980
38981 #. type: textblock
38982 #: ../src/guestfs.pod:3050
38983 msgid "Language bindings."
38984 msgstr ""
38985
38986 #. type: =head2
38987 #: ../src/guestfs.pod:3054
38988 msgid "MAKING A STABLE RELEASE"
38989 msgstr ""
38990
38991 #. type: textblock
38992 #: ../src/guestfs.pod:3056
38993 msgid ""
38994 "When we make a stable release, there are several steps documented here.  See "
38995 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
38996 "branch policy."
38997 msgstr ""
38998
38999 #. type: textblock
39000 #: ../src/guestfs.pod:3064
39001 msgid "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
39002 msgstr ""
39003
39004 #. type: textblock
39005 #: ../src/guestfs.pod:3069
39006 msgid "Finalize RELEASE-NOTES."
39007 msgstr ""
39008
39009 #. type: textblock
39010 #: ../src/guestfs.pod:3073
39011 msgid "Update ROADMAP."
39012 msgstr ""
39013
39014 #. type: textblock
39015 #: ../src/guestfs.pod:3077
39016 msgid "Run C<src/api-support/update-from-tarballs.sh>."
39017 msgstr ""
39018
39019 #. type: textblock
39020 #: ../src/guestfs.pod:3081
39021 msgid "Push and pull from Transifex."
39022 msgstr ""
39023
39024 #. type: textblock
39025 #: ../src/guestfs.pod:3083
39026 msgid "Run:"
39027 msgstr ""
39028
39029 #. type: verbatim
39030 #: ../src/guestfs.pod:3085
39031 #, no-wrap
39032 msgid ""
39033 " tx push -s\n"
39034 "\n"
39035 msgstr ""
39036
39037 #. type: textblock
39038 #: ../src/guestfs.pod:3087
39039 msgid "to push the latest POT files to Transifex.  Then run:"
39040 msgstr ""
39041
39042 #. type: verbatim
39043 #: ../src/guestfs.pod:3089
39044 #, no-wrap
39045 msgid ""
39046 " ./tx-pull.sh\n"
39047 "\n"
39048 msgstr ""
39049
39050 #. type: textblock
39051 #: ../src/guestfs.pod:3091
39052 msgid "which is a wrapper to pull the latest translated C<*.po> files."
39053 msgstr ""
39054
39055 #. type: textblock
39056 #: ../src/guestfs.pod:3095
39057 msgid ""
39058 "Create new stable and development directories under "
39059 "L<http://libguestfs.org/download>."
39060 msgstr ""
39061
39062 #. type: textblock
39063 #: ../src/guestfs.pod:3100
39064 msgid "Create the branch in git:"
39065 msgstr ""
39066
39067 #. type: verbatim
39068 #: ../src/guestfs.pod:3102
39069 #, no-wrap
39070 msgid ""
39071 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
39072 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
39073 " git branch stable-1.XX\n"
39074 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
39075 "\n"
39076 msgstr ""
39077
39078 #. type: =head1
39079 #: ../src/guestfs.pod:3109
39080 msgid "LIMITS"
39081 msgstr ""
39082
39083 #. type: =head2
39084 #: ../src/guestfs.pod:3111
39085 msgid "PROTOCOL LIMITS"
39086 msgstr ""
39087
39088 #. type: textblock
39089 #: ../src/guestfs.pod:3113
39090 msgid ""
39091 "Internally libguestfs uses a message-based protocol to pass API calls and "
39092 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
39093 "plenty more detail about this).  The maximum message size used by the "
39094 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
39095 "aware of this limit.  The API calls which may be affected are individually "
39096 "documented, with a link back to this section of the documentation."
39097 msgstr ""
39098
39099 #. type: textblock
39100 #: ../src/guestfs.pod:3121
39101 msgid ""
39102 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
39103 "a simple string.  Because this string is at some point internally encoded as "
39104 "a message, the maximum size that it can return is slightly under 4 MB.  If "
39105 "the requested file is larger than this then you will get an error."
39106 msgstr ""
39107
39108 #. type: textblock
39109 #: ../src/guestfs.pod:3127
39110 msgid ""
39111 "In order to transfer large files into and out of the guest filesystem, you "
39112 "need to use particular calls that support this.  The sections L</UPLOADING> "
39113 "and L</DOWNLOADING> document how to do this."
39114 msgstr ""
39115
39116 #. type: textblock
39117 #: ../src/guestfs.pod:3131
39118 msgid ""
39119 "You might also consider mounting the disk image using our FUSE filesystem "
39120 "support (L<guestmount(1)>)."
39121 msgstr ""
39122
39123 #. type: =head2
39124 #: ../src/guestfs.pod:3134
39125 msgid "MAXIMUM NUMBER OF DISKS"
39126 msgstr ""
39127
39128 #. type: textblock
39129 #: ../src/guestfs.pod:3136
39130 msgid "When using virtio disks (the default) the current limit is B<25> disks."
39131 msgstr ""
39132
39133 #. type: textblock
39134 #: ../src/guestfs.pod:3139
39135 msgid ""
39136 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
39137 "slots.  However febootstrap only understands disks with names C</dev/vda> "
39138 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
39139 "purposes."
39140 msgstr ""
39141
39142 #. type: textblock
39143 #: ../src/guestfs.pod:3144
39144 msgid ""
39145 "We are working to substantially raise this limit in future versions but it "
39146 "requires complex changes to qemu."
39147 msgstr ""
39148
39149 #. type: textblock
39150 #: ../src/guestfs.pod:3147
39151 msgid ""
39152 "In future versions of libguestfs it should also be possible to \"hot plug\" "
39153 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
39154 "requires changes to qemu."
39155 msgstr ""
39156
39157 #. type: =head2
39158 #: ../src/guestfs.pod:3151
39159 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
39160 msgstr ""
39161
39162 #. type: textblock
39163 #: ../src/guestfs.pod:3153
39164 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
39165 msgstr ""
39166
39167 #. type: textblock
39168 #: ../src/guestfs.pod:3155
39169 msgid ""
39170 "This is because it reserves 4 bits for the minor device number (thus "
39171 "C</dev/vda>, and C</dev/vda1> through C</dev/vda15>)."
39172 msgstr ""
39173
39174 #. type: textblock
39175 #: ../src/guestfs.pod:3158
39176 msgid ""
39177 "If you attach a disk with more than 15 partitions, the extra partitions are "
39178 "ignored by libguestfs."
39179 msgstr ""
39180
39181 #. type: =head2
39182 #: ../src/guestfs.pod:3161
39183 msgid "MAXIMUM SIZE OF A DISK"
39184 msgstr ""
39185
39186 #. type: textblock
39187 #: ../src/guestfs.pod:3163
39188 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
39189 msgstr ""
39190
39191 #. type: textblock
39192 #: ../src/guestfs.pod:3165
39193 msgid ""
39194 "We have tested block devices up to 1 exabyte (2**60 or "
39195 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
39196 "filesystem."
39197 msgstr ""
39198
39199 #. type: textblock
39200 #: ../src/guestfs.pod:3169
39201 msgid ""
39202 "Although libguestfs probably does not impose any limit, the underlying host "
39203 "storage will.  If you store disk images on a host ext4 filesystem, then the "
39204 "maximum size will be limited by the maximum ext4 file size (currently 16 "
39205 "TB).  If you store disk images as host logical volumes then you are limited "
39206 "by the maximum size of an LV."
39207 msgstr ""
39208
39209 #. type: textblock
39210 #: ../src/guestfs.pod:3175
39211 msgid ""
39212 "For the hugest disk image files, we recommend using XFS on the host for "
39213 "storage."
39214 msgstr ""
39215
39216 #. type: =head2
39217 #: ../src/guestfs.pod:3178
39218 msgid "MAXIMUM SIZE OF A PARTITION"
39219 msgstr ""
39220
39221 #. type: textblock
39222 #: ../src/guestfs.pod:3180
39223 msgid ""
39224 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
39225 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
39226 "address a partition located beyond 2 TB on the disk."
39227 msgstr ""
39228
39229 #. type: textblock
39230 #: ../src/guestfs.pod:3184
39231 msgid ""
39232 "It is recommended that you use GPT partitions on disks which are larger than "
39233 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
39234 "which are theoretically larger than the largest disk we could support."
39235 msgstr ""
39236
39237 #. type: =head2
39238 #: ../src/guestfs.pod:3189
39239 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
39240 msgstr ""
39241
39242 #. type: textblock
39243 #: ../src/guestfs.pod:3191
39244 msgid ""
39245 "This depends on the filesystem type.  libguestfs itself does not impose any "
39246 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
39247 "what these limits are."
39248 msgstr ""
39249
39250 #. type: =head2
39251 #: ../src/guestfs.pod:3195
39252 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
39253 msgstr ""
39254
39255 #. type: textblock
39256 #: ../src/guestfs.pod:3197
39257 msgid ""
39258 "The API functions L</guestfs_upload>, L</guestfs_download>, "
39259 "L</guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
39260 "uploads and downloads."
39261 msgstr ""
39262
39263 #. type: =head2
39264 #: ../src/guestfs.pod:3201
39265 msgid "INSPECTION LIMITS"
39266 msgstr ""
39267
39268 #. type: textblock
39269 #: ../src/guestfs.pod:3203
39270 msgid ""
39271 "The inspection code has several arbitrary limits on things like the size of "
39272 "Windows Registry hive it will read, and the length of product name.  These "
39273 "are intended to stop a malicious guest from consuming arbitrary amounts of "
39274 "memory and disk space on the host, and should not be reached in practice.  "
39275 "See the source code for more information."
39276 msgstr ""
39277
39278 #. type: textblock
39279 #: ../src/guestfs.pod:3229
39280 msgid ""
39281 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
39282 "effect as calling C<guestfs_set_verbose (g, 1)>."
39283 msgstr ""
39284
39285 #. type: textblock
39286 #: ../src/guestfs.pod:3241
39287 msgid ""
39288 "Set the path that libguestfs uses to search for a supermin appliance.  See "
39289 "the discussion of paths in section L</PATH> above."
39290 msgstr ""
39291
39292 #. type: textblock
39293 #: ../src/guestfs.pod:3250
39294 msgid "See also L</QEMU WRAPPERS> above."
39295 msgstr ""
39296
39297 #. type: textblock
39298 #: ../src/guestfs.pod:3254
39299 msgid ""
39300 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
39301 "effect as calling C<guestfs_set_trace (g, 1)>."
39302 msgstr ""
39303
39304 #. type: textblock
39305 #: ../src/guestfs.pod:3272
39306 msgid ""
39307 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, "
39308 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
39309 "L<guestfs-ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, "
39310 "L<virt-alignment-scan(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
39311 "L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
39312 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
39313 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
39314 "L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, "
39315 "L<virt-sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
39316 "L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
39317 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)>, "
39318 "L<http://libguestfs.org/>."
39319 msgstr ""
39320
39321 #. type: textblock
39322 #: ../src/guestfs.pod:3308
39323 msgid ""
39324 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
39325 "L<lvm(8)>, L<disktype(1)>."
39326 msgstr ""
39327
39328 #. type: =head1
39329 #: ../src/guestfs.pod:3315 ../tools/virt-make-fs.pl:571 ../tools/virt-win-reg.pl:772
39330 msgid "BUGS"
39331 msgstr ""
39332
39333 #. type: textblock
39334 #: ../src/guestfs.pod:3317
39335 msgid "To get a list of bugs against libguestfs use this link:"
39336 msgstr ""
39337
39338 #. type: textblock
39339 #: ../src/guestfs.pod:3319
39340 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
39341 msgstr ""
39342
39343 #. type: textblock
39344 #: ../src/guestfs.pod:3321
39345 msgid "To report a new bug against libguestfs use this link:"
39346 msgstr ""
39347
39348 #. type: textblock
39349 #: ../src/guestfs.pod:3323
39350 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
39351 msgstr ""
39352
39353 #. type: textblock
39354 #: ../src/guestfs.pod:3325
39355 msgid "When reporting a bug, please check:"
39356 msgstr ""
39357
39358 #. type: textblock
39359 #: ../src/guestfs.pod:3331
39360 msgid "That the bug hasn't been reported already."
39361 msgstr ""
39362
39363 #. type: textblock
39364 #: ../src/guestfs.pod:3335
39365 msgid "That you are testing a recent version."
39366 msgstr ""
39367
39368 #. type: textblock
39369 #: ../src/guestfs.pod:3339
39370 msgid "Describe the bug accurately, and give a way to reproduce it."
39371 msgstr ""
39372
39373 #. type: textblock
39374 #: ../src/guestfs.pod:3343
39375 msgid ""
39376 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
39377 "bug report."
39378 msgstr ""
39379
39380 #. type: textblock
39381 #: ../test-tool/libguestfs-test-tool.pod:5
39382 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
39383 msgstr ""
39384
39385 #. type: verbatim
39386 #: ../test-tool/libguestfs-test-tool.pod:9
39387 #, no-wrap
39388 msgid ""
39389 " libguestfs-test-tool [--options]\n"
39390 "\n"
39391 msgstr ""
39392
39393 #. type: textblock
39394 #: ../test-tool/libguestfs-test-tool.pod:13
39395 msgid ""
39396 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
39397 "to check basic libguestfs functionality is working.  This is needed because "
39398 "libguestfs occasionally breaks for reasons beyond our control: usually "
39399 "because of changes in the underlying qemu or kernel packages, or the host "
39400 "environment."
39401 msgstr ""
39402
39403 #. type: textblock
39404 #: ../test-tool/libguestfs-test-tool.pod:19
39405 msgid "If you suspect a problem in libguestfs, then just run:"
39406 msgstr ""
39407
39408 #. type: verbatim
39409 #: ../test-tool/libguestfs-test-tool.pod:21
39410 #, no-wrap
39411 msgid ""
39412 " libguestfs-test-tool\n"
39413 "\n"
39414 msgstr ""
39415
39416 #. type: textblock
39417 #: ../test-tool/libguestfs-test-tool.pod:23
39418 msgid "It will print lots of diagnostic messages."
39419 msgstr ""
39420
39421 #. type: textblock
39422 #: ../test-tool/libguestfs-test-tool.pod:25
39423 msgid "If it runs to completion successfully, you will see this near the end:"
39424 msgstr ""
39425
39426 #. type: verbatim
39427 #: ../test-tool/libguestfs-test-tool.pod:27
39428 #, no-wrap
39429 msgid ""
39430 " ===== TEST FINISHED OK =====\n"
39431 "\n"
39432 msgstr ""
39433
39434 #. type: textblock
39435 #: ../test-tool/libguestfs-test-tool.pod:29
39436 msgid "and the test tool will exit with code 0."
39437 msgstr ""
39438
39439 #. type: textblock
39440 #: ../test-tool/libguestfs-test-tool.pod:31
39441 msgid ""
39442 "If it fails (and/or exits with non-zero error code), please paste the "
39443 "I<complete, unedited> output of the test tool into a bug report.  More "
39444 "information about reporting bugs can be found on the "
39445 "L<http://libguestfs.org/> website."
39446 msgstr ""
39447
39448 #. type: textblock
39449 #: ../test-tool/libguestfs-test-tool.pod:42
39450 msgid "Display short usage information and exit."
39451 msgstr ""
39452
39453 #. type: =item
39454 #: ../test-tool/libguestfs-test-tool.pod:44
39455 msgid "B<--qemu qemu_binary>"
39456 msgstr ""
39457
39458 #. type: textblock
39459 #: ../test-tool/libguestfs-test-tool.pod:46
39460 msgid ""
39461 "If you have downloaded another qemu binary, point this option at the full "
39462 "path of the binary to try it."
39463 msgstr ""
39464
39465 #. type: =item
39466 #: ../test-tool/libguestfs-test-tool.pod:49
39467 msgid "B<--qemudir qemu_source_dir>"
39468 msgstr ""
39469
39470 #. type: textblock
39471 #: ../test-tool/libguestfs-test-tool.pod:51
39472 msgid ""
39473 "If you have compiled qemu from source, point this option at the source "
39474 "directory to try it."
39475 msgstr ""
39476
39477 #. type: =item
39478 #: ../test-tool/libguestfs-test-tool.pod:54
39479 msgid "B<-t N>"
39480 msgstr ""
39481
39482 #. type: =item
39483 #: ../test-tool/libguestfs-test-tool.pod:56
39484 msgid "B<--timeout N>"
39485 msgstr ""
39486
39487 #. type: textblock
39488 #: ../test-tool/libguestfs-test-tool.pod:58
39489 msgid ""
39490 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
39491 "minutes) which does not usually need to be adjusted."
39492 msgstr ""
39493
39494 #. type: =head1
39495 #: ../test-tool/libguestfs-test-tool.pod:63
39496 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
39497 msgstr ""
39498
39499 #. type: textblock
39500 #: ../test-tool/libguestfs-test-tool.pod:65
39501 msgid ""
39502 "If you have compiled another version of qemu from source and would like to "
39503 "try that, then you can use the I<--qemudir> option to point to the qemu "
39504 "source directory."
39505 msgstr ""
39506
39507 #. type: textblock
39508 #: ../test-tool/libguestfs-test-tool.pod:69
39509 msgid ""
39510 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
39511 "option to point to the binary."
39512 msgstr ""
39513
39514 #. type: textblock
39515 #: ../test-tool/libguestfs-test-tool.pod:72
39516 msgid ""
39517 "Note when using these options, you can ignore the business of qemu wrapper "
39518 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
39519 "wrapper script for you if one is needed."
39520 msgstr ""
39521
39522 #. type: =head1
39523 #: ../test-tool/libguestfs-test-tool.pod:76
39524 msgid "TRYING OUT A DIFFERENT KERNEL"
39525 msgstr ""
39526
39527 #. type: textblock
39528 #: ../test-tool/libguestfs-test-tool.pod:78
39529 msgid ""
39530 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
39531 "libguestfs tries.  You do this by setting the environment variables "
39532 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
39533 msgstr ""
39534
39535 #. type: textblock
39536 #: ../test-tool/libguestfs-test-tool.pod:82
39537 msgid ""
39538 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
39539 "information."
39540 msgstr ""
39541
39542 #. type: =head1
39543 #: ../test-tool/libguestfs-test-tool.pod:85
39544 msgid "SELF-DIAGNOSIS"
39545 msgstr ""
39546
39547 #. type: textblock
39548 #: ../test-tool/libguestfs-test-tool.pod:87
39549 msgid ""
39550 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
39551 "produced by libguestfs-test-tool and/or possible errors."
39552 msgstr ""
39553
39554 #. type: textblock
39555 #: ../test-tool/libguestfs-test-tool.pod:92
39556 msgid ""
39557 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
39558 "I<1> if there was an error."
39559 msgstr ""
39560
39561 #. type: textblock
39562 #: ../test-tool/libguestfs-test-tool.pod:97
39563 msgid ""
39564 "For the full list of environment variables which may affect libguestfs, "
39565 "please see the L<guestfs(3)> manual page."
39566 msgstr ""
39567
39568 #. type: textblock
39569 #: ../test-tool/libguestfs-test-tool.pod:102
39570 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
39571 msgstr ""
39572
39573 #. type: textblock
39574 #: ../tools/virt-list-filesystems.pl:32
39575 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
39576 msgstr ""
39577
39578 #. type: verbatim
39579 #: ../tools/virt-list-filesystems.pl:36
39580 #, no-wrap
39581 msgid ""
39582 " virt-list-filesystems [--options] domname\n"
39583 "\n"
39584 msgstr ""
39585
39586 #. type: verbatim
39587 #: ../tools/virt-list-filesystems.pl:38
39588 #, no-wrap
39589 msgid ""
39590 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
39591 "\n"
39592 msgstr ""
39593
39594 #. type: textblock
39595 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
39596 msgid ""
39597 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
39598 "replacement."
39599 msgstr ""
39600
39601 #. type: textblock
39602 #: ../tools/virt-list-filesystems.pl:45
39603 msgid ""
39604 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
39605 "are contained in a virtual machine or disk image."
39606 msgstr ""
39607
39608 #. type: textblock
39609 #: ../tools/virt-list-filesystems.pl:49
39610 msgid ""
39611 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
39612 "functionality.  For more complex cases you should look at the "
39613 "L<guestfish(1)> tool."
39614 msgstr ""
39615
39616 #. type: textblock
39617 #: ../tools/virt-list-filesystems.pl:112
39618 msgid ""
39619 "With this option, C<virt-list-filesystems> displays the type of each "
39620 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
39621 msgstr ""
39622
39623 #. type: =item
39624 #: ../tools/virt-list-filesystems.pl:119
39625 msgid "B<-a>"
39626 msgstr ""
39627
39628 #. type: textblock
39629 #: ../tools/virt-list-filesystems.pl:123
39630 msgid ""
39631 "Normally we only show mountable filesystems.  If this option is given then "
39632 "swap devices are shown too."
39633 msgstr ""
39634
39635 #. type: textblock
39636 #: ../tools/virt-list-filesystems.pl:197
39637 msgid ""
39638 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
39639 "L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
39640 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39641 msgstr ""
39642
39643 #. type: textblock
39644 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
39645 msgid "Copyright (C) 2009 Red Hat Inc."
39646 msgstr ""
39647
39648 #. type: textblock
39649 #: ../tools/virt-list-partitions.pl:32
39650 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
39651 msgstr ""
39652
39653 #. type: verbatim
39654 #: ../tools/virt-list-partitions.pl:36
39655 #, no-wrap
39656 msgid ""
39657 " virt-list-partitions [--options] domname\n"
39658 "\n"
39659 msgstr ""
39660
39661 #. type: verbatim
39662 #: ../tools/virt-list-partitions.pl:38
39663 #, no-wrap
39664 msgid ""
39665 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
39666 "\n"
39667 msgstr ""
39668
39669 #. type: textblock
39670 #: ../tools/virt-list-partitions.pl:45
39671 msgid ""
39672 "C<virt-list-partitions> is a command line tool to list the partitions that "
39673 "are contained in a virtual machine or disk image.  It is mainly useful as a "
39674 "first step to using L<virt-resize(1)>."
39675 msgstr ""
39676
39677 #. type: textblock
39678 #: ../tools/virt-list-partitions.pl:50
39679 msgid ""
39680 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
39681 "functionality.  For more complex cases you should look at the "
39682 "L<guestfish(1)> tool."
39683 msgstr ""
39684
39685 #. type: textblock
39686 #: ../tools/virt-list-partitions.pl:113
39687 msgid "Show sizes in human-readable form (eg. \"1G\")."
39688 msgstr ""
39689
39690 #. type: textblock
39691 #: ../tools/virt-list-partitions.pl:123
39692 msgid ""
39693 "With this option, C<virt-list-partitions> displays the type and size of each "
39694 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
39695 msgstr ""
39696
39697 #. type: =item
39698 #: ../tools/virt-list-partitions.pl:130
39699 msgid "B<-t>"
39700 msgstr ""
39701
39702 #. type: =item
39703 #: ../tools/virt-list-partitions.pl:132
39704 msgid "B<--total>"
39705 msgstr ""
39706
39707 #. type: textblock
39708 #: ../tools/virt-list-partitions.pl:134
39709 msgid "Display the total size of each block device (as a separate row or rows)."
39710 msgstr ""
39711
39712 #. type: textblock
39713 #: ../tools/virt-list-partitions.pl:267
39714 msgid ""
39715 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
39716 "L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
39717 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39718 msgstr ""
39719
39720 #. type: textblock
39721 #: ../tools/virt-list-partitions.pl:283
39722 msgid "Copyright (C) 2009-2010 Red Hat Inc."
39723 msgstr ""
39724
39725 #. type: textblock
39726 #: ../tools/virt-make-fs.pl:37
39727 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
39728 msgstr ""
39729
39730 #. type: verbatim
39731 #: ../tools/virt-make-fs.pl:41
39732 #, no-wrap
39733 msgid ""
39734 " virt-make-fs [--options] input.tar output.img\n"
39735 "\n"
39736 msgstr ""
39737
39738 #. type: verbatim
39739 #: ../tools/virt-make-fs.pl:43
39740 #, no-wrap
39741 msgid ""
39742 " virt-make-fs [--options] input.tar.gz output.img\n"
39743 "\n"
39744 msgstr ""
39745
39746 #. type: verbatim
39747 #: ../tools/virt-make-fs.pl:45
39748 #, no-wrap
39749 msgid ""
39750 " virt-make-fs [--options] directory output.img\n"
39751 "\n"
39752 msgstr ""
39753
39754 #. type: textblock
39755 #: ../tools/virt-make-fs.pl:49
39756 msgid ""
39757 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
39758 "archive or some files in a directory.  It is similar to tools like "
39759 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
39760 "it can create common filesystem types like ext2/3 or NTFS, which can be "
39761 "useful if you want to attach these filesystems to existing virtual machines "
39762 "(eg. to import large amounts of read-only data to a VM)."
39763 msgstr ""
39764
39765 #. type: textblock
39766 #: ../tools/virt-make-fs.pl:57
39767 msgid "Basic usage is:"
39768 msgstr ""
39769
39770 #. type: verbatim
39771 #: ../tools/virt-make-fs.pl:59
39772 #, no-wrap
39773 msgid ""
39774 " virt-make-fs input output.img\n"
39775 "\n"
39776 msgstr ""
39777
39778 #. type: textblock
39779 #: ../tools/virt-make-fs.pl:61
39780 msgid ""
39781 "where C<input> is either a directory containing files that you want to add, "
39782 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
39783 "C<output.img> is a disk image.  The input type is detected automatically.  "
39784 "The output disk image defaults to a raw ext2 sparse image unless you specify "
39785 "extra flags (see L</OPTIONS> below)."
39786 msgstr ""
39787
39788 #. type: =head2
39789 #: ../tools/virt-make-fs.pl:67
39790 msgid "FILESYSTEM TYPE"
39791 msgstr ""
39792
39793 #. type: textblock
39794 #: ../tools/virt-make-fs.pl:69
39795 msgid ""
39796 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
39797 "libguestfs supports can be used (but I<not> read-only formats like "
39798 "ISO9660).  Here are some of the more common choices:"
39799 msgstr ""
39800
39801 #. type: =item
39802 #: ../tools/virt-make-fs.pl:75
39803 msgid "I<ext3>"
39804 msgstr ""
39805
39806 #. type: textblock
39807 #: ../tools/virt-make-fs.pl:77
39808 msgid ""
39809 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
39810 "you are not going to use the filesystem in a way that requires the journal, "
39811 "then this is just wasted overhead."
39812 msgstr ""
39813
39814 #. type: =item
39815 #: ../tools/virt-make-fs.pl:81
39816 msgid "I<ntfs> or I<vfat>"
39817 msgstr ""
39818
39819 #. type: textblock
39820 #: ../tools/virt-make-fs.pl:83
39821 msgid "Useful if exporting data to a Windows guest."
39822 msgstr ""
39823
39824 #. type: textblock
39825 #: ../tools/virt-make-fs.pl:85
39826 msgid ""
39827 "I<Note for vfat>: The tar archive or local directory must only contain files "
39828 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
39829 "program running within libguestfs is unable to change the ownership of "
39830 "non-root files, since vfat itself does not support this."
39831 msgstr ""
39832
39833 #. type: =item
39834 #: ../tools/virt-make-fs.pl:90
39835 msgid "I<minix>"
39836 msgstr ""
39837
39838 #. type: textblock
39839 #: ../tools/virt-make-fs.pl:92
39840 msgid ""
39841 "Lower overhead than C<ext2>, but certain limitations on filename length and "
39842 "total filesystem size."
39843 msgstr ""
39844
39845 #. type: =head3
39846 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116 ../tools/virt-make-fs.pl:149
39847 msgid "EXAMPLE"
39848 msgstr ""
39849
39850 #. type: verbatim
39851 #: ../tools/virt-make-fs.pl:99
39852 #, no-wrap
39853 msgid ""
39854 " virt-make-fs --type=minix input minixfs.img\n"
39855 "\n"
39856 msgstr ""
39857
39858 #. type: =head2
39859 #: ../tools/virt-make-fs.pl:101
39860 msgid "TO PARTITION OR NOT TO PARTITION"
39861 msgstr ""
39862
39863 #. type: textblock
39864 #: ../tools/virt-make-fs.pl:103
39865 msgid "Optionally virt-make-fs can add a partition table to the output disk."
39866 msgstr ""
39867
39868 #. type: textblock
39869 #: ../tools/virt-make-fs.pl:105
39870 msgid ""
39871 "Adding a partition can make the disk image more compatible with certain "
39872 "virtualized operating systems which don't expect to see a filesystem "
39873 "directly located on a block device (Linux doesn't care and will happily "
39874 "handle both types)."
39875 msgstr ""
39876
39877 #. type: textblock
39878 #: ../tools/virt-make-fs.pl:110
39879 msgid ""
39880 "On the other hand, if you have a partition table then the output image is no "
39881 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
39882 "directly on a partitioned disk image.  (However libguestfs tools such as "
39883 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
39884 msgstr ""
39885
39886 #. type: textblock
39887 #: ../tools/virt-make-fs.pl:118
39888 msgid "Add an MBR partition:"
39889 msgstr ""
39890
39891 #. type: verbatim
39892 #: ../tools/virt-make-fs.pl:120
39893 #, no-wrap
39894 msgid ""
39895 " virt-make-fs --partition -- input disk.img\n"
39896 "\n"
39897 msgstr ""
39898
39899 #. type: textblock
39900 #: ../tools/virt-make-fs.pl:122
39901 msgid ""
39902 "If the output disk image could be terabyte-sized or larger, it's better to "
39903 "use an EFI/GPT-compatible partition table:"
39904 msgstr ""
39905
39906 #. type: verbatim
39907 #: ../tools/virt-make-fs.pl:125
39908 #, no-wrap
39909 msgid ""
39910 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
39911 "\n"
39912 msgstr ""
39913
39914 #. type: =head2
39915 #: ../tools/virt-make-fs.pl:127
39916 msgid "EXTRA SPACE"
39917 msgstr ""
39918
39919 #. type: textblock
39920 #: ../tools/virt-make-fs.pl:129
39921 msgid ""
39922 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
39923 "the files that it contains, but might have extra space.  Depending on how "
39924 "you are going to use the output, you might think this extra space is wasted "
39925 "and want to minimize it, or you might want to leave space so that more files "
39926 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
39927 "but you can use the I<--size> flag to leave space in the filesystem if you "
39928 "want it."
39929 msgstr ""
39930
39931 #. type: textblock
39932 #: ../tools/virt-make-fs.pl:137
39933 msgid ""
39934 "An alternative way to leave extra space but not make the output image any "
39935 "bigger is to use an alternative disk image format (instead of the default "
39936 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
39937 "image format (check your hypervisor supports this before using it).  This "
39938 "allows you to choose a large I<--size> but the extra space won't actually be "
39939 "allocated in the image until you try to store something in it."
39940 msgstr ""
39941
39942 #. type: textblock
39943 #: ../tools/virt-make-fs.pl:145
39944 msgid ""
39945 "Don't forget that you can also use local commands including L<resize2fs(8)> "
39946 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
39947 "to build another image from scratch."
39948 msgstr ""
39949
39950 #. type: verbatim
39951 #: ../tools/virt-make-fs.pl:151
39952 #, no-wrap
39953 msgid ""
39954 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
39955 "\n"
39956 msgstr ""
39957
39958 #. type: textblock
39959 #: ../tools/virt-make-fs.pl:179
39960 msgid "Enable debugging information."
39961 msgstr ""
39962
39963 #. type: =item
39964 #: ../tools/virt-make-fs.pl:185
39965 msgid "B<--size=E<lt>NE<gt>>"
39966 msgstr ""
39967
39968 #. type: =item
39969 #: ../tools/virt-make-fs.pl:187
39970 msgid "B<--size=+E<lt>NE<gt>>"
39971 msgstr ""
39972
39973 #. type: =item
39974 #: ../tools/virt-make-fs.pl:189
39975 msgid "B<-s E<lt>NE<gt>>"
39976 msgstr ""
39977
39978 #. type: =item
39979 #: ../tools/virt-make-fs.pl:191
39980 msgid "B<-s +E<lt>NE<gt>>"
39981 msgstr ""
39982
39983 #. type: textblock
39984 #: ../tools/virt-make-fs.pl:193
39985 msgid "Use the I<--size> (or I<-s>) option to choose the size of the output image."
39986 msgstr ""
39987
39988 #. type: textblock
39989 #: ../tools/virt-make-fs.pl:196
39990 msgid ""
39991 "If this option is I<not> given, then the output image will be just large "
39992 "enough to contain all the files, with not much wasted space."
39993 msgstr ""
39994
39995 #. type: textblock
39996 #: ../tools/virt-make-fs.pl:199
39997 msgid ""
39998 "To choose a fixed size output disk, specify an absolute number followed by "
39999 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
40000 "Petabytes or Exabytes.  This must be large enough to contain all the input "
40001 "files, else you will get an error."
40002 msgstr ""
40003
40004 #. type: textblock
40005 #: ../tools/virt-make-fs.pl:204
40006 msgid ""
40007 "To leave extra space, specify C<+> (plus sign) and a number followed by "
40008 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
40009 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
40010 "the input files, and (approximately) an extra 200 MB free space."
40011 msgstr ""
40012
40013 #. type: textblock
40014 #: ../tools/virt-make-fs.pl:210
40015 msgid ""
40016 "Note that virt-make-fs estimates free space, and therefore will not produce "
40017 "filesystems containing precisely the free space requested.  (It is much more "
40018 "expensive and time-consuming to produce a filesystem which has precisely the "
40019 "desired free space)."
40020 msgstr ""
40021
40022 #. type: =item
40023 #: ../tools/virt-make-fs.pl:219
40024 msgid "B<--format=E<lt>fmtE<gt>>"
40025 msgstr ""
40026
40027 #. type: =item
40028 #: ../tools/virt-make-fs.pl:221
40029 msgid "B<-F E<lt>fmtE<gt>>"
40030 msgstr ""
40031
40032 #. type: textblock
40033 #: ../tools/virt-make-fs.pl:223
40034 msgid "Choose the output disk image format."
40035 msgstr ""
40036
40037 #. type: textblock
40038 #: ../tools/virt-make-fs.pl:225
40039 msgid "The default is C<raw> (raw sparse disk image)."
40040 msgstr ""
40041
40042 #. type: textblock
40043 #: ../tools/virt-make-fs.pl:227
40044 msgid ""
40045 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
40046 "that would really make sense here is C<qcow2>."
40047 msgstr ""
40048
40049 #. type: =item
40050 #: ../tools/virt-make-fs.pl:234
40051 msgid "B<--type=E<lt>fsE<gt>>"
40052 msgstr ""
40053
40054 #. type: =item
40055 #: ../tools/virt-make-fs.pl:236
40056 msgid "B<-t E<lt>fsE<gt>>"
40057 msgstr ""
40058
40059 #. type: textblock
40060 #: ../tools/virt-make-fs.pl:238
40061 msgid "Choose the output filesystem type."
40062 msgstr ""
40063
40064 #. type: textblock
40065 #: ../tools/virt-make-fs.pl:240
40066 msgid "The default is C<ext2>."
40067 msgstr ""
40068
40069 #. type: textblock
40070 #: ../tools/virt-make-fs.pl:242
40071 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
40072 msgstr ""
40073
40074 #. type: =item
40075 #: ../tools/virt-make-fs.pl:249
40076 msgid "B<--partition>"
40077 msgstr ""
40078
40079 #. type: =item
40080 #: ../tools/virt-make-fs.pl:251
40081 msgid "B<--partition=E<lt>parttypeE<gt>>"
40082 msgstr ""
40083
40084 #. type: textblock
40085 #: ../tools/virt-make-fs.pl:253
40086 msgid ""
40087 "If specified, this flag adds an MBR partition table to the output disk "
40088 "image."
40089 msgstr ""
40090
40091 #. type: textblock
40092 #: ../tools/virt-make-fs.pl:256
40093 msgid ""
40094 "You can change the partition table type, eg. I<--partition=gpt> for large "
40095 "disks."
40096 msgstr ""
40097
40098 #. type: textblock
40099 #: ../tools/virt-make-fs.pl:259
40100 msgid ""
40101 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
40102 "might consider the next parameter to be the partition type.  For example:"
40103 msgstr ""
40104
40105 #. type: verbatim
40106 #: ../tools/virt-make-fs.pl:263
40107 #, no-wrap
40108 msgid ""
40109 " virt-make-fs --partition input.tar output.img\n"
40110 "\n"
40111 msgstr ""
40112
40113 #. type: textblock
40114 #: ../tools/virt-make-fs.pl:265
40115 msgid ""
40116 "would cause virt-make-fs to think you wanted to use a partition type of "
40117 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
40118 "dash) between options and the input and output arguments:"
40119 msgstr ""
40120
40121 #. type: verbatim
40122 #: ../tools/virt-make-fs.pl:269
40123 #, no-wrap
40124 msgid ""
40125 " virt-make-fs --partition -- input.tar output.img\n"
40126 "\n"
40127 msgstr ""
40128
40129 #. type: textblock
40130 #: ../tools/virt-make-fs.pl:271
40131 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
40132 msgstr ""
40133
40134 #. type: textblock
40135 #: ../tools/virt-make-fs.pl:559
40136 msgid ""
40137 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
40138 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
40139 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
40140 msgstr ""
40141
40142 #. type: textblock
40143 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
40144 msgid ""
40145 "When reporting bugs, please enable debugging and capture the I<complete> "
40146 "output:"
40147 msgstr ""
40148
40149 #. type: verbatim
40150 #: ../tools/virt-make-fs.pl:576
40151 #, no-wrap
40152 msgid ""
40153 " export LIBGUESTFS_DEBUG=1\n"
40154 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
40155 "\n"
40156 msgstr ""
40157
40158 #. type: textblock
40159 #: ../tools/virt-make-fs.pl:579
40160 msgid ""
40161 "Attach /tmp/virt-make-fs.log to a new bug report at "
40162 "L<https://bugzilla.redhat.com/>"
40163 msgstr ""
40164
40165 #. type: textblock
40166 #: ../tools/virt-tar.pl:33
40167 msgid "virt-tar - Extract or upload files to a virtual machine"
40168 msgstr ""
40169
40170 #. type: verbatim
40171 #: ../tools/virt-tar.pl:37
40172 #, no-wrap
40173 msgid ""
40174 " virt-tar [--options] -x domname directory tarball\n"
40175 "\n"
40176 msgstr ""
40177
40178 #. type: verbatim
40179 #: ../tools/virt-tar.pl:39
40180 #, no-wrap
40181 msgid ""
40182 " virt-tar [--options] -u domname tarball directory\n"
40183 "\n"
40184 msgstr ""
40185
40186 #. type: verbatim
40187 #: ../tools/virt-tar.pl:41
40188 #, no-wrap
40189 msgid ""
40190 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
40191 "\n"
40192 msgstr ""
40193
40194 #. type: verbatim
40195 #: ../tools/virt-tar.pl:43
40196 #, no-wrap
40197 msgid ""
40198 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
40199 "\n"
40200 msgstr ""
40201
40202 #. type: =head2
40203 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
40204 msgid "NOTE"
40205 msgstr ""
40206
40207 #. type: textblock
40208 #: ../tools/virt-tar.pl:47
40209 msgid ""
40210 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
40211 "L<virt-tar-in(1)>, L<virt-tar-out(1)> as replacements."
40212 msgstr ""
40213
40214 #. type: textblock
40215 #: ../tools/virt-tar.pl:52
40216 msgid "Download C</home> from the VM into a local tarball:"
40217 msgstr ""
40218
40219 #. type: verbatim
40220 #: ../tools/virt-tar.pl:54
40221 #, no-wrap
40222 msgid ""
40223 " virt-tar -x domname /home home.tar\n"
40224 "\n"
40225 msgstr ""
40226
40227 #. type: verbatim
40228 #: ../tools/virt-tar.pl:56
40229 #, no-wrap
40230 msgid ""
40231 " virt-tar -zx domname /home home.tar.gz\n"
40232 "\n"
40233 msgstr ""
40234
40235 #. type: textblock
40236 #: ../tools/virt-tar.pl:58
40237 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
40238 msgstr ""
40239
40240 #. type: verbatim
40241 #: ../tools/virt-tar.pl:60
40242 #, no-wrap
40243 msgid ""
40244 " virt-tar -u domname uploadstuff.tar /tmp\n"
40245 "\n"
40246 msgstr ""
40247
40248 #. type: verbatim
40249 #: ../tools/virt-tar.pl:62
40250 #, no-wrap
40251 msgid ""
40252 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
40253 "\n"
40254 msgstr ""
40255
40256 #. type: textblock
40257 #: ../tools/virt-tar.pl:66
40258 msgid ""
40259 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
40260 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
40261 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
40262 msgstr ""
40263
40264 #. type: textblock
40265 #: ../tools/virt-tar.pl:71
40266 msgid ""
40267 "You can use I<-x> (extract) on live virtual machines, but you might get "
40268 "inconsistent results or errors if there is filesystem activity inside the "
40269 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
40270 "work, but the only way to guarantee consistent results is if the virtual "
40271 "machine is shut down."
40272 msgstr ""
40273
40274 #. type: textblock
40275 #: ../tools/virt-tar.pl:79
40276 msgid ""
40277 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
40278 "parts of a guest filesystem.  There are many possibilities: making backups, "
40279 "uploading data files, snooping on guest activity, fixing or customizing "
40280 "guests, etc."
40281 msgstr ""
40282
40283 #. type: textblock
40284 #: ../tools/virt-tar.pl:84
40285 msgid ""
40286 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
40287 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
40288 "should look at the L<guestfish(1)> tool."
40289 msgstr ""
40290
40291 #. type: textblock
40292 #: ../tools/virt-tar.pl:88
40293 msgid ""
40294 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
40295 "its contents (recursively) from the virtual machine into a local tarball.  "
40296 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
40297 "virtual machine.  You cannot use these two options together."
40298 msgstr ""
40299
40300 #. type: textblock
40301 #: ../tools/virt-tar.pl:94
40302 msgid ""
40303 "In addition, you may need to use the I<-z> (gZip) option to enable "
40304 "compression.  When uploading, you have to specify I<-z> if the upload file "
40305 "is compressed because virt-tar won't detect this on its own."
40306 msgstr ""
40307
40308 #. type: textblock
40309 #: ../tools/virt-tar.pl:98
40310 msgid ""
40311 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
40312 "example it cannot do PKZip files or bzip2 compression.  If you want that "
40313 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
40314 "the L<libguestfs(3)> API)."
40315 msgstr ""
40316
40317 #. type: =item
40318 #: ../tools/virt-tar.pl:160
40319 msgid "B<--extract>"
40320 msgstr ""
40321
40322 #. type: =item
40323 #: ../tools/virt-tar.pl:162
40324 msgid "B<--download>"
40325 msgstr ""
40326
40327 #. type: =item
40328 #: ../tools/virt-tar.pl:164
40329 msgid "B<-u>"
40330 msgstr ""
40331
40332 #. type: =item
40333 #: ../tools/virt-tar.pl:166
40334 msgid "B<--upload>"
40335 msgstr ""
40336
40337 #. type: textblock
40338 #: ../tools/virt-tar.pl:168
40339 msgid ""
40340 "Use I<-x> to extract (download) a directory from a virtual machine to a "
40341 "local tarball."
40342 msgstr ""
40343
40344 #. type: textblock
40345 #: ../tools/virt-tar.pl:171
40346 msgid ""
40347 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
40348 "Please read the L</WARNING> section above before using this option."
40349 msgstr ""
40350
40351 #. type: textblock
40352 #: ../tools/virt-tar.pl:175
40353 msgid "You must specify exactly one of these options."
40354 msgstr ""
40355
40356 #. type: =item
40357 #: ../tools/virt-tar.pl:181
40358 msgid "B<-z>"
40359 msgstr ""
40360
40361 #. type: =item
40362 #: ../tools/virt-tar.pl:183
40363 msgid "B<--gzip>"
40364 msgstr ""
40365
40366 #. type: textblock
40367 #: ../tools/virt-tar.pl:185
40368 msgid "Specify that the input or output tarball is gzip-compressed."
40369 msgstr ""
40370
40371 #. type: textblock
40372 #: ../tools/virt-tar.pl:298
40373 msgid ""
40374 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
40375 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
40376 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
40377 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40378 msgstr ""
40379
40380 #. type: textblock
40381 #: ../tools/virt-win-reg.pl:37
40382 msgid ""
40383 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
40384 "guest"
40385 msgstr ""
40386
40387 #. type: verbatim
40388 #: ../tools/virt-win-reg.pl:41
40389 #, no-wrap
40390 msgid ""
40391 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
40392 "\n"
40393 msgstr ""
40394
40395 #. type: verbatim
40396 #: ../tools/virt-win-reg.pl:43
40397 #, no-wrap
40398 msgid ""
40399 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
40400 "\n"
40401 msgstr ""
40402
40403 #. type: verbatim
40404 #: ../tools/virt-win-reg.pl:45
40405 #, no-wrap
40406 msgid ""
40407 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
40408 "\n"
40409 msgstr ""
40410
40411 #. type: verbatim
40412 #: ../tools/virt-win-reg.pl:47
40413 #, no-wrap
40414 msgid ""
40415 " virt-win-reg --merge domname [input.reg ...]\n"
40416 "\n"
40417 msgstr ""
40418
40419 #. type: verbatim
40420 #: ../tools/virt-win-reg.pl:49
40421 #, no-wrap
40422 msgid ""
40423 " virt-win-reg [--options] disk.img ... # instead of domname\n"
40424 "\n"
40425 msgstr ""
40426
40427 #. type: textblock
40428 #: ../tools/virt-win-reg.pl:53
40429 msgid ""
40430 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
40431 "virtual machines.  If you do this, you I<will> get irreversible disk "
40432 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
40433 "but doesn't catch all cases."
40434 msgstr ""
40435
40436 #. type: textblock
40437 #: ../tools/virt-win-reg.pl:58
40438 msgid ""
40439 "Modifying the Windows Registry is an inherently risky operation.  The format "
40440 "is deliberately obscure and undocumented, and Registry changes can leave the "
40441 "system unbootable.  Therefore when using the I<--merge> option, make sure "
40442 "you have a reliable backup first."
40443 msgstr ""
40444
40445 #. type: textblock
40446 #: ../tools/virt-win-reg.pl:65
40447 msgid ""
40448 "This program can export and merge Windows Registry entries from a Windows "
40449 "guest."
40450 msgstr ""
40451
40452 #. type: textblock
40453 #: ../tools/virt-win-reg.pl:68
40454 msgid ""
40455 "The first parameter is the libvirt guest name or the raw disk image of a "
40456 "Windows guest."
40457 msgstr ""
40458
40459 #. type: textblock
40460 #: ../tools/virt-win-reg.pl:71
40461 msgid ""
40462 "If I<--merge> is I<not> specified, then the chosen registry key is "
40463 "displayed/exported (recursively).  For example:"
40464 msgstr ""
40465
40466 #. type: verbatim
40467 #: ../tools/virt-win-reg.pl:74
40468 #, no-wrap
40469 msgid ""
40470 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
40471 "\n"
40472 msgstr ""
40473
40474 #. type: textblock
40475 #: ../tools/virt-win-reg.pl:76
40476 msgid "You can also display single values from within registry keys, for example:"
40477 msgstr ""
40478
40479 #. type: verbatim
40480 #: ../tools/virt-win-reg.pl:79
40481 #, no-wrap
40482 msgid ""
40483 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
40484 " $ virt-win-reg Windows7 $cvkey ProductName\n"
40485 " Windows 7 Enterprise\n"
40486 "\n"
40487 msgstr ""
40488
40489 #. type: textblock
40490 #: ../tools/virt-win-reg.pl:83
40491 msgid ""
40492 "With I<--merge>, you can merge a textual regedit file into the Windows "
40493 "Registry:"
40494 msgstr ""
40495
40496 #. type: verbatim
40497 #: ../tools/virt-win-reg.pl:86
40498 #, no-wrap
40499 msgid ""
40500 " $ virt-win-reg --merge Windows7 changes.reg\n"
40501 "\n"
40502 msgstr ""
40503
40504 #. type: textblock
40505 #: ../tools/virt-win-reg.pl:90
40506 msgid ""
40507 "This program is only meant for simple access to the registry.  If you want "
40508 "to do complicated things with the registry, we suggest you download the "
40509 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
40510 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
40511 "L<hivexregedit(1)>."
40512 msgstr ""
40513
40514 #. type: =item
40515 #: ../tools/virt-win-reg.pl:159
40516 msgid "B<--merge>"
40517 msgstr ""
40518
40519 #. type: textblock
40520 #: ../tools/virt-win-reg.pl:161
40521 msgid ""
40522 "In merge mode, this merges a textual regedit file into the Windows Registry "
40523 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
40524 "displays or exports Registry entries instead."
40525 msgstr ""
40526
40527 #. type: textblock
40528 #: ../tools/virt-win-reg.pl:165
40529 msgid ""
40530 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
40531 "result in disk corruption.  However exporting (without this flag)  is always "
40532 "safe."
40533 msgstr ""
40534
40535 #. type: =item
40536 #: ../tools/virt-win-reg.pl:173
40537 msgid "B<--encoding> UTF-16LE|ASCII"
40538 msgstr ""
40539
40540 #. type: textblock
40541 #: ../tools/virt-win-reg.pl:175
40542 msgid ""
40543 "When merging (only), you may need to specify the encoding for strings to be "
40544 "used in the hive file.  This is explained in detail in "
40545 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
40546 msgstr ""
40547
40548 #. type: textblock
40549 #: ../tools/virt-win-reg.pl:179
40550 msgid ""
40551 "The default is to use UTF-16LE, which should work with recent versions of "
40552 "Windows."
40553 msgstr ""
40554
40555 #. type: =item
40556 #: ../tools/virt-win-reg.pl:186
40557 msgid "B<--unsafe-printable-strings>"
40558 msgstr ""
40559
40560 #. type: textblock
40561 #: ../tools/virt-win-reg.pl:188
40562 msgid ""
40563 "When exporting (only), assume strings are UTF-16LE and print them as strings "
40564 "instead of hex sequences.  Remove the final zero codepoint from strings if "
40565 "present."
40566 msgstr ""
40567
40568 #. type: textblock
40569 #: ../tools/virt-win-reg.pl:192
40570 msgid ""
40571 "This is unsafe and does not preserve the fidelity of strings in the original "
40572 "Registry for various reasons:"
40573 msgstr ""
40574
40575 #. type: textblock
40576 #: ../tools/virt-win-reg.pl:199
40577 msgid ""
40578 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
40579 "other encodings will be corrupted by this transformation."
40580 msgstr ""
40581
40582 #. type: textblock
40583 #: ../tools/virt-win-reg.pl:204
40584 msgid ""
40585 "Assumes that everything which has type 1 or 2 is really a string and that "
40586 "everything else is not a string, but the type field in real Registries is "
40587 "not reliable."
40588 msgstr ""
40589
40590 #. type: textblock
40591 #: ../tools/virt-win-reg.pl:210
40592 msgid ""
40593 "Loses information about whether a zero codepoint followed the string in the "
40594 "Registry or not."
40595 msgstr ""
40596
40597 #. type: textblock
40598 #: ../tools/virt-win-reg.pl:215
40599 msgid ""
40600 "This all happens because the Registry itself contains no information about "
40601 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
40602 msgstr ""
40603
40604 #. type: textblock
40605 #: ../tools/virt-win-reg.pl:219
40606 msgid ""
40607 "You should only use this option for quick hacking and debugging of the "
40608 "Registry contents, and I<never> use it if the output is going to be passed "
40609 "into another program or stored in another Registry."
40610 msgstr ""
40611
40612 #. type: =head1
40613 #: ../tools/virt-win-reg.pl:556
40614 msgid "SUPPORTED SYSTEMS"
40615 msgstr ""
40616
40617 #. type: textblock
40618 #: ../tools/virt-win-reg.pl:558
40619 msgid ""
40620 "The program currently supports Windows NT-derived guests starting with "
40621 "Windows XP through to at least Windows 7."
40622 msgstr ""
40623
40624 #. type: textblock
40625 #: ../tools/virt-win-reg.pl:561
40626 msgid "The following Registry keys are supported:"
40627 msgstr ""
40628
40629 #. type: =item
40630 #: ../tools/virt-win-reg.pl:565
40631 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
40632 msgstr ""
40633
40634 #. type: =item
40635 #: ../tools/virt-win-reg.pl:567
40636 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
40637 msgstr ""
40638
40639 #. type: =item
40640 #: ../tools/virt-win-reg.pl:569
40641 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
40642 msgstr ""
40643
40644 #. type: =item
40645 #: ../tools/virt-win-reg.pl:571
40646 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
40647 msgstr ""
40648
40649 #. type: =item
40650 #: ../tools/virt-win-reg.pl:573
40651 msgid "C<HKEY_USERS\\.DEFAULT>"
40652 msgstr ""
40653
40654 #. type: =item
40655 #: ../tools/virt-win-reg.pl:575
40656 msgid "C<HKEY_USERS\\I<SID>>"
40657 msgstr ""
40658
40659 #. type: textblock
40660 #: ../tools/virt-win-reg.pl:577
40661 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
40662 msgstr ""
40663
40664 #. type: =item
40665 #: ../tools/virt-win-reg.pl:579
40666 msgid "C<HKEY_USERS\\I<username>>"
40667 msgstr ""
40668
40669 #. type: textblock
40670 #: ../tools/virt-win-reg.pl:581
40671 msgid "where I<username> is a local user name (this is a libguestfs extension)."
40672 msgstr ""
40673
40674 #. type: textblock
40675 #: ../tools/virt-win-reg.pl:585
40676 msgid ""
40677 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
40678 "C<HKEY_USERS>."
40679 msgstr ""
40680
40681 #. type: textblock
40682 #: ../tools/virt-win-reg.pl:588
40683 msgid ""
40684 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
40685 "supported (there is no \"current user\")."
40686 msgstr ""
40687
40688 #. type: =head1
40689 #: ../tools/virt-win-reg.pl:591
40690 msgid "ENCODING"
40691 msgstr ""
40692
40693 #. type: textblock
40694 #: ../tools/virt-win-reg.pl:593
40695 msgid ""
40696 "C<virt-win-reg> expects that regedit files have already been reencoded in "
40697 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
40698 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
40699 "with Windows-style line endings, you may need to reencode the whole file "
40700 "before or after processing."
40701 msgstr ""
40702
40703 #. type: textblock
40704 #: ../tools/virt-win-reg.pl:599
40705 msgid ""
40706 "To reencode a file from Windows format to Linux (before processing it with "
40707 "the I<--merge> option), you would do something like this:"
40708 msgstr ""
40709
40710 #. type: verbatim
40711 #: ../tools/virt-win-reg.pl:602
40712 #, no-wrap
40713 msgid ""
40714 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
40715 "\n"
40716 msgstr ""
40717
40718 #. type: textblock
40719 #: ../tools/virt-win-reg.pl:604
40720 msgid ""
40721 "To go in the opposite direction, after exporting and before sending the file "
40722 "to a Windows user, do something like this:"
40723 msgstr ""
40724
40725 #. type: verbatim
40726 #: ../tools/virt-win-reg.pl:607
40727 #, no-wrap
40728 msgid ""
40729 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
40730 "\n"
40731 msgstr ""
40732
40733 #. type: textblock
40734 #: ../tools/virt-win-reg.pl:609
40735 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
40736 msgstr ""
40737
40738 #. type: textblock
40739 #: ../tools/virt-win-reg.pl:611
40740 msgid ""
40741 "If you are unsure about the current encoding, use the L<file(1)> command.  "
40742 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
40743 "Windows-style (CRLF) line endings, like this:"
40744 msgstr ""
40745
40746 #. type: verbatim
40747 #: ../tools/virt-win-reg.pl:615
40748 #, no-wrap
40749 msgid ""
40750 " $ file software.reg\n"
40751 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
40752 " with CRLF line terminators\n"
40753 "\n"
40754 msgstr ""
40755
40756 #. type: textblock
40757 #: ../tools/virt-win-reg.pl:619
40758 msgid "This file would need conversion before you could I<--merge> it."
40759 msgstr ""
40760
40761 #. type: =head1
40762 #: ../tools/virt-win-reg.pl:621
40763 msgid "CurrentControlSet etc."
40764 msgstr ""
40765
40766 #. type: textblock
40767 #: ../tools/virt-win-reg.pl:623
40768 msgid ""
40769 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
40770 "Registry at the level of the hive file, and therefore you cannot modify "
40771 "these."
40772 msgstr ""
40773
40774 #. type: textblock
40775 #: ../tools/virt-win-reg.pl:627
40776 msgid ""
40777 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
40778 "circumstances it might refer to another control set.  The way to find out is "
40779 "to look at the C<HKLM\\SYSTEM\\Select> key:"
40780 msgstr ""
40781
40782 #. type: verbatim
40783 #: ../tools/virt-win-reg.pl:631
40784 #, no-wrap
40785 msgid ""
40786 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
40787 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
40788 " \"Current\"=dword:00000001\n"
40789 " \"Default\"=dword:00000001\n"
40790 " \"Failed\"=dword:00000000\n"
40791 " \"LastKnownGood\"=dword:00000002\n"
40792 "\n"
40793 msgstr ""
40794
40795 #. type: textblock
40796 #: ../tools/virt-win-reg.pl:638
40797 msgid "\"Current\" is the one which Windows will choose when it boots."
40798 msgstr ""
40799
40800 #. type: textblock
40801 #: ../tools/virt-win-reg.pl:640
40802 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
40803 msgstr ""
40804
40805 #. type: =head1
40806 #: ../tools/virt-win-reg.pl:643
40807 msgid "DELETING REGISTRY KEYS AND VALUES"
40808 msgstr ""
40809
40810 #. type: textblock
40811 #: ../tools/virt-win-reg.pl:645
40812 msgid "To delete a whole registry key, use the syntax:"
40813 msgstr ""
40814
40815 #. type: verbatim
40816 #: ../tools/virt-win-reg.pl:647
40817 #, no-wrap
40818 msgid ""
40819 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
40820 "\n"
40821 msgstr ""
40822
40823 #. type: textblock
40824 #: ../tools/virt-win-reg.pl:649
40825 msgid "To delete a single value within a key, use the syntax:"
40826 msgstr ""
40827
40828 #. type: verbatim
40829 #: ../tools/virt-win-reg.pl:651
40830 #, no-wrap
40831 msgid ""
40832 " [HKEY_LOCAL_MACHINE\\Foo]\n"
40833 " \"Value\"=-\n"
40834 "\n"
40835 msgstr ""
40836
40837 #. type: =head1
40838 #: ../tools/virt-win-reg.pl:654
40839 msgid "WINDOWS TIPS"
40840 msgstr ""
40841
40842 #. type: textblock
40843 #: ../tools/virt-win-reg.pl:656
40844 msgid ""
40845 "Note that some of these tips modify the guest disk image.  The guest I<must> "
40846 "be shut off, else you will get disk corruption."
40847 msgstr ""
40848
40849 #. type: =head2
40850 #: ../tools/virt-win-reg.pl:659
40851 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
40852 msgstr ""
40853
40854 #. type: textblock
40855 #: ../tools/virt-win-reg.pl:661
40856 msgid ""
40857 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
40858 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
40859 "is uploaded into C<C:\\>:"
40860 msgstr ""
40861
40862 #. type: verbatim
40863 #: ../tools/virt-win-reg.pl:665
40864 #, no-wrap
40865 msgid ""
40866 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
40867 "\n"
40868 msgstr ""
40869
40870 #. type: textblock
40871 #: ../tools/virt-win-reg.pl:667
40872 msgid "Prepare a regedit file containing the registry change:"
40873 msgstr ""
40874
40875 #. type: verbatim
40876 #: ../tools/virt-win-reg.pl:669
40877 #, no-wrap
40878 msgid ""
40879 " cat > test.reg <<'EOF'\n"
40880 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
40881 " \"Test\"=\"c:\\\\test.bat\"\n"
40882 " EOF\n"
40883 "\n"
40884 msgstr ""
40885
40886 #. type: textblock
40887 #: ../tools/virt-win-reg.pl:674
40888 msgid ""
40889 "In this example we use the key C<RunOnce> which means that the script will "
40890 "run precisely once when the first user logs in.  If you want it to run every "
40891 "time a user logs in, replace C<RunOnce> with C<Run>."
40892 msgstr ""
40893
40894 #. type: textblock
40895 #: ../tools/virt-win-reg.pl:678
40896 msgid "Now update the registry:"
40897 msgstr ""
40898
40899 #. type: verbatim
40900 #: ../tools/virt-win-reg.pl:680
40901 #, no-wrap
40902 msgid ""
40903 " virt-win-reg --merge WindowsGuest test.reg\n"
40904 "\n"
40905 msgstr ""
40906
40907 #. type: =head2
40908 #: ../tools/virt-win-reg.pl:682
40909 msgid "INSTALLING A SERVICE"
40910 msgstr ""
40911
40912 #. type: textblock
40913 #: ../tools/virt-win-reg.pl:684
40914 msgid ""
40915 "This section assumes you are familiar with Windows services, and you either "
40916 "have a program which handles the Windows Service Control Protocol directly "
40917 "or you want to run any program using a service wrapper like SrvAny or the "
40918 "free RHSrvAny."
40919 msgstr ""
40920
40921 #. type: textblock
40922 #: ../tools/virt-win-reg.pl:689
40923 msgid ""
40924 "First upload the program and optionally the service wrapper.  In this case "
40925 "the test program is called C<test.exe> and we are using the RHSrvAny "
40926 "wrapper:"
40927 msgstr ""
40928
40929 #. type: verbatim
40930 #: ../tools/virt-win-reg.pl:693
40931 #, no-wrap
40932 msgid ""
40933 " guestfish -i -d WindowsGuest <<EOF\n"
40934 "   upload rhsrvany.exe /rhsrvany.exe\n"
40935 "   upload test.exe /test.exe\n"
40936 " EOF\n"
40937 "\n"
40938 msgstr ""
40939
40940 #. type: textblock
40941 #: ../tools/virt-win-reg.pl:698
40942 msgid ""
40943 "Prepare a regedit file containing the registry changes.  In this example, "
40944 "the first registry change is needed for the service itself or the service "
40945 "wrapper (if used).  The second registry change is only needed because I am "
40946 "using the RHSrvAny service wrapper."
40947 msgstr ""
40948
40949 #. type: verbatim
40950 #: ../tools/virt-win-reg.pl:703
40951 #, no-wrap
40952 msgid ""
40953 " cat > service.reg <<'EOF'\n"
40954 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
40955 " \"Type\"=dword:00000010\n"
40956 " \"Start\"=dword:00000002\n"
40957 " \"ErrorControl\"=dword:00000001\n"
40958 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
40959 " \"DisplayName\"=\"RHSrvAny\"\n"
40960 " \"ObjectName\"=\"NetworkService\"\n"
40961 " \n"
40962 msgstr ""
40963
40964 #. type: verbatim
40965 #: ../tools/virt-win-reg.pl:712
40966 #, no-wrap
40967 msgid ""
40968 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
40969 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
40970 " \"PWD\"=\"c:\\\\Temp\"\n"
40971 " EOF\n"
40972 "\n"
40973 msgstr ""
40974
40975 #. type: textblock
40976 #: ../tools/virt-win-reg.pl:723
40977 msgid ""
40978 "For use of C<ControlSet001> see the section above in this manual page.  You "
40979 "may need to adjust this according to the control set that is in use by the "
40980 "guest."
40981 msgstr ""
40982
40983 #. type: textblock
40984 #: ../tools/virt-win-reg.pl:729
40985 msgid ""
40986 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
40987 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
40988 "privileged account."
40989 msgstr ""
40990
40991 #. type: textblock
40992 #: ../tools/virt-win-reg.pl:735
40993 msgid ""
40994 "For the meaning of the magic numbers, see this Microsoft KB article: "
40995 "L<http://support.microsoft.com/kb/103000>."
40996 msgstr ""
40997
40998 #. type: textblock
40999 #: ../tools/virt-win-reg.pl:740
41000 msgid "Update the registry:"
41001 msgstr ""
41002
41003 #. type: verbatim
41004 #: ../tools/virt-win-reg.pl:742
41005 #, no-wrap
41006 msgid ""
41007 " virt-win-reg --merge WindowsGuest service.reg\n"
41008 "\n"
41009 msgstr ""
41010
41011 #. type: textblock
41012 #: ../tools/virt-win-reg.pl:746
41013 msgid ""
41014 "Be careful when passing parameters containing C<\\> (backslash) in the "
41015 "shell.  Usually you will have to use 'single quotes' or double backslashes "
41016 "(but not both) to protect them from the shell."
41017 msgstr ""
41018
41019 #. type: textblock
41020 #: ../tools/virt-win-reg.pl:750
41021 msgid "Paths and value names are case-insensitive."
41022 msgstr ""
41023
41024 #. type: textblock
41025 #: ../tools/virt-win-reg.pl:759
41026 msgid ""
41027 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
41028 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
41029 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
41030 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41031 msgstr ""
41032
41033 #. type: verbatim
41034 #: ../tools/virt-win-reg.pl:777
41035 #, no-wrap
41036 msgid ""
41037 " export LIBGUESTFS_DEBUG=1\n"
41038 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
41039 "\n"
41040 msgstr ""
41041
41042 #. type: textblock
41043 #: ../tools/virt-win-reg.pl:780
41044 msgid ""
41045 "Attach /tmp/virt-win-reg.log to a new bug report at "
41046 "L<https://bugzilla.redhat.com/>"
41047 msgstr ""