Debian Codegraph @

ChangeLog

raw
1 2019-08-21 Richard W.M. Jones <[email protected]>
2
3 Version 0.6.1.5.
4 Use gitlog-to-changelog to generate Changelog, instead of hg.
5
6 Package aclocal.m4 and config.h.in.
7
8 Update MANIFEST.
9
10 Update dependencies file.
11
12 2019-08-20 Pino Toscano <[email protected]>
13
14 Fix shebang in perl scripts
15 Instead of hardcoding the location of perl (assuming it is installed in
16 /usr), use /usr/bin/env to run it, and thus picking it from $PATH.
17 This makes it possible to run these scripts also on installations with
18 perl in a different prefix than /usr.
19
20 Also, given that we want enable warnings on scripts, turn the -w
21 previously in shebang to explicit "use warnings;" in scripts which
22 didn't have it before.
23
24 Update config.guess and config.sub
25
26 Synchronize Virterror with libvirt 5.6.0
27
28 2019-05-28 Pino Toscano <[email protected]>
29
30 build: build with CAML_NAME_SPACE
31 This way no non-namespaced OCaml C symbols are used, reducing the risk
32 of clashes with other code.
33
34 2019-04-08 Pino Toscano <[email protected]>
35
36 Synchronize Virterror with libvirt 5.2.0
37
38 Implement Connect.get_domain_capabilities
39 Wrap the virConnectGetDomainCapabilities C API.
40
41 build: bump required libvirt to 1.2.8
42 virConnectGetAllDomainStats, used unconditionally, was introduced in
43 libvirt 1.2.8.
44
45 2018-11-16 Pino Toscano <[email protected]>
46
47 example: fix self-dependency
48 The bytecode list_secrets must depend on the .cmo file of its .ml
49 source, instead on itself.
50
51 Fixes commit be5973f65bfdb51bf409a31af0d046931c6d5789.
52
53 2018-11-14 Pino Toscano <[email protected]>
54
55 Cast virError* enums to int for comparisons with 0
56 The actual type of an enum in C is implementation defined when there are
57 no negative values, and thus it can be int, or uint. This is the case
58 of the virError* enums in libvirt, as they do not have negative values.
59
60 Hence, to avoid hitting tautological comparison errors when checking
61 their range, temporarly cast the enum values to int when checking they
62 are not negative. The check is there to ensure the value is within the
63 range of the OCaml type used to represent it.
64
65 Reviewed-by: Andrea Bolognani <[email protected]>
66 Reviewed-by: Richard W.M. Jones <[email protected]>
67
68 2018-10-15 Pino Toscano <[email protected]>
69
70 doc: invoke ocamldoc with -colorize-code
71 This way, the OCaml snippets are colorized.
72
73 The OCaml version required is higher than the first version shipping
74 ocamldoc with this option, so that can be done unconditionally.
75
76 build: use pkg-config to find libvirt
77 Rely on pkg-config to detect libvirt, and use its variables to locate
78 it. The version required is taken from the API documentation.
79
80 build: remove config.h.in
81 It is generated by autoheader, no need to keep it in the sources.
82
83 build: sync OCaml macros from libguestfs
84 Less old version, and work better with newer versions of autoconf.
85 Adapt configure.ac to it:
86 - use the different variable names set by AC_CHECK_OCAML_PKG
87 - remove the comment about using ocamlfind, as it is what the new macros
88 do already
89
90 build: move OCaml macros to a m4 subdir
91 This way they will not be overwritten when aclocal.m4 is changed.
92
93 2018-10-10 Pino Toscano <[email protected]>
94
95 Reorganize .gitignore
96 - move all the general patterns to the top
97 - tie all the entries specific to the top-level to the current
98 directory
99 - remove old/obsolete entries
100 - add a missing example
101 - sort all the entries
102
103 build: do not set LIBRARY_PATH & LD_LIBRARY_PATH
104 They do not actually help, and rather get in the way when using them to
105 point to a custom location of libvirt.
106
107 Various small API doc improvements
108
109 Synchronize few states/types with libvirt 4.6.0
110 Add states/types that do not require using enum values in newer libvirt
111 versions.
112
113 Fix broken libvirt links
114 Split a single broken link into 3 sections that replaced the old page.
115
116 Switch all the links to https
117 This does not fix broken links.
118
119 Libvirt_version: fix license comment
120 Do not use the ocamldoc comment for it, since there is no need to put
121 the copyright/license block in the generated API documentation.
122
123 Expose Secret API
124 Add a new Secret submodule to expose most of the virSecret* APIs, so it
125 is possible to interact with libvirt secrets.
126
127 Add the needed glue in the generator, in the helper macros/functions,
128 and in the Libvirt module itself.
129
130 Include a simple example, list_secrets.ml.
131
132 examples: switch from C.connect_readonly to connect_auth_readonly
133 This way it is possible to connect to URIs that require some kind of
134 authentication.
135
136 Implement Connect.get_auth_default ()
137 Add a function to return the default libvirt authentication handler,
138 in case it is needed.
139
140 Followup of commit 948dd7af4581493dfc3945f0f1762dc5d6c2bd95.
141
142 Make Optstring_val return const char *
143 The users just read the result, never changing it.
144
145 This also fixes the build in case CAML_SAFE_STRING is defined (which
146 makes String_val() return const char *).
147
148 Update config.guess and config.sub
149 Update config.guess and config.sub from their canonical upstream
150 location, after 12 years.
151
152 Remove note from the TODO file
153 Authentication was implemented with
154 commit 948dd7af4581493dfc3945f0f1762dc5d6c2bd95.
155
156 2018-10-10 Richard W.M. Jones <[email protected]>
157
158 Update MANIFEST
159
160 2018-10-10 Pino Toscano <[email protected]>
161
162 Drop the generated libvirt_c.c from the sources
163 Let it be autogenerated from the generator.pl script during build, with
164 no need to keep a copy of it in the sources.
165
166 This also makes Perl an hard requirement, checking for its presence at
167 configure time.
168
169 Disable -Wmissing-prototypes for GCC
170 We do not provide prototypes for all the C implementations of OCaml
171 APIs, so just make GCC not warn about that for now.
172
173 Register a custom exception printer
174 This way all the users of ocaml-libvirt can use Printexc.to_string to
175 print a Virterror exception, even in case they do not catch it
176 explicitly.
177
178 Avoid VLAs with size depending on user input
179 Do not use var-length arrays with sizes from user input (like
180 parameters), since they may grow the stack too much.
181
182 Instead, allocate the memory on the heap.
183
184 Workaround lack of constness in custom_operations::identifier
185 Sadly the custom_operations struct of the OCaml C API uses char* for the
186 'identifier' member, even though it does not change it.
187
188 To avoid getting warnings when building with stricter CFLAGS, apply ugly
189 casts.
190
191 Add an helper CHECK_ERROR_CLEANUP macro
192 Extend the existing CHECK_ERROR macro to allow some code to be executed
193 right before raising Virterror. Rework CHECK_ERROR to use
194 CHECK_ERROR_CLEANUP.
195
196 Add Domain.get_xml_desc_flags
197 Much like Domain.get_xml_desc with the possibility to specify flags for
198 the XML description. The function is marked with a [`W] phantom because
199 some of the flags (e.g. XmlSecure) require a read/write connection.
200
201 Synchronize Virterror with libvirt 4.6.0
202 In particular, add all the various error codes, and error domains.
203 Also, add an older domain that was previously skipped.
204
205 Connect: add auth/credential handling for connect
206 Add OCaml versions of virConnectCredential & virConnectAuth structs,
207 using them to implement proper connect_auth & connect_auth_readonly.
208
209 This makes it possible to properly supply credentials when opening a
210 connection.
211
212 Add Val_opt_const & Val_const_ptr_t
213 Counterparts of Val_opt & Val_ptr_t, but with constness for the pointer.
214
215 2018-10-10 Richard W.M. Jones <[email protected]>
216
217 Use -safe-string and fix the library.
218 Note this changes the type of the cpumap from string to bytes,
219 since (by the design of the API) it must be mutated.
220
221 Change binding of virConnectGetAllDomainStats to return dom UUID.
222 The virDomainPtr object returned by this binding isn't a reliable
223 virDomainPtr object. The only thing we can safely do with it is to
224 get its UUID. Modify the API correspondingly.
225
226 Updates commit 652f883f365d8caa7b841b7a3b19a4719402a92f.
227
228 examples: Print more stats in the get_all_domain_stats.ml example.
229 Updates commit 652f883f365d8caa7b841b7a3b19a4719402a92f.
230
231 Add a binding for virConnectGetAllDomainStats (RHBZ#1390171).
232
233 Update dependencies.
234
235 Use -g -warn-error.
236 Use -g for ocamlopt. ocamlopt has supported generating DWARF
237 information for quite a long time.
238
239 Also use -warn-error with the same set of warnings as is used
240 by libguestfs.
241
242 Fix a warning in examples/get_cpu_stats.ml found by enabling
243 -warn-error.
244
245 Remove unused 'not_supported' function.
246 Found by compiling under GCC 6. The warning was:
247
248 In file included from libvirt_c.c:2058:0:
249 libvirt_c_epilogue.c:89:1: error: 'not_supported' defined but not used [-Werror=unused-function]
250 not_supported (const char *fn)
251 ^~~~~~~~~~~~~
252
253 Don't bother checking return from virInitialize.
254 The Perl bindings don't do this, and it seems that the call can never
255 fail, or if it does we don't care.
256
257 Suppress errors to stderr and use thread-local virErrorPtr
258 This allows us to capture errors that happen during virConnectOpen,
259 without spewing error messages on stderr.
260
261 The patch is rather large, only because we don't need to pass the
262 virConnectPtr argument to CHECK_ERROR/_raise_virterror any longer.
263
264 Add a binding for virDomainCreateXML.
265 This is more modern than the ancient virDomainCreateLinux API,
266 and crucially allows you to pass flags such as AUTODESTROY.
267
268 Use C99 standard int64_t instead of OCaml defined (and soon to go) int64.
269
270 Kill broken NSIS support.
271
272 Version 0.6.1.4.
273
274 Update MANIFEST.
275
276 Version 0.6.1.3.
277
278 Update dependencies.
279
280 2018-10-10 David Scott <[email protected]>
281
282 Add a simple example to show how to receive event callbacks
283
284 Add event callback implementation based on virConnectDomainEventRegisterAny
285 A client may register a callback as follows:
286
287 E.register_default_impl ();
288
289 let conn = C.connect_readonly ?name () in
290
291 let id = E.register_any conn (E.Lifecycle (fun dom e ->
292 printd dom "Lifecycle %s" (E.Lifecycle.to_string e)
293 )) in
294
295 Internally this will:
296 1. generate a unique int64 used to identify the specific callback
297 2. add the callback to an OCaml hashtable based on the signature
298 (there is a distinct hashtable per callback signature)
299 3. call virConnectDomainEventRegisterAny which registers a
300 generic C callback in the stubs (one distinct callback per
301 signature) and supply the int64 as the "opaque" data
302
303 The client must enter the event loop with:
304
305 while true do
306 E.run_default_impl ()
307 done
308
309 When an event is triggered, the C callback will upcall into an OCaml
310 function (having re-acquired the heap lock) supplying the int64 value.
311 The OCaml function can then find the right callback in the Hashtbl
312 and call it.
313
314 The client can deregister the callback with:
315
316 E.deregister_any conn id;
317
318 Add binding for virConnectSetKeepAlive
319 This one is a 'one-off' but it ought to be possible to use the generator
320 to create the function (it has signature 'conn, int, int : int')
321
322 This function first appeared in libvirt version 0.9.8.
323
324 Remove backwards compatability logic to simplify the bindings
325 Rather than compile against old versions of libvirt and resort
326 to throwing 'not supported' exceptions at runtime, we instead
327 require all symbols and definitions to be available at compile-time
328 i.e. we require a much more recent libvirt.
329
330 Fix typo in ocaml_libvirt_storage_vol_get_info
331 The info.capacity was being overwritten with the info.allocation.
332
333 2018-10-10 Richard W.M. Jones <[email protected]>
334
335 Update dependencies.
336
337 2018-10-10 David Scott <[email protected]>
338
339 Functions returning "unit" correspond to C fns which use -1 for failure
340 This affects the following functions:
341 virStoragePoolBuild
342 virStoragePoolDelete
343 virStorageVolDelete
344
345 Previously a call to virStorageVolDelete would succeed returning 0, which
346 was interpreted as false, causing us to raise an exception with
347 VIR_ERR_NONE.
348
349 Volume.delete takes a flags parameter
350 This corrects a mismatch between the generated C stubs and the .ml
351 interface.
352
353 Correct typos in the storage interface's phantom types
354 A connection is either read/write (type rw = [`R|`W]) or read/only
355 (type ro = [`R]). A function which requires the ability to write
356 needs to take a parameter [> `W] rather than [`W] (which would
357 correspond to a write-only connection).
358
359 We can now use a read/write connection to call:
360 Pool.set_autostart
361 Volume.create_xml
362 Volume.delete
363
364 2018-10-10 Richard W.M. Jones <[email protected]>
365
366 Add contrib directory, and non-upstream patch to add Domain.get_cpu_stats_total.
367 This patch needs more thorough review.
368
369 2018-10-10 Hu Tao <[email protected]>
370
371 remove parameter nr_pcpus of Libvirt.Domain.get_cpu_stats
372 remove the value because we can get it from the libvirt API
373
374 2018-10-10 Richard W.M. Jones <[email protected]>
375
376 Version 0.6.1.2.
377
378 Domain.get_cpu_stats: get number of params correctly (thanks Eric Blake).
379 See:
380 https://www.redhat.com/archives/libvir-list/2012-March/msg00306.html
381
382 This fixes commit da9feb9e52c6edb90bf3b6869cff3b3992225757.
383
384 2012-03-06 Richard W.M. Jones <[email protected]>
385
386 Version 0.6.1.1.
387
388 2012-03-06 Lai Jiangshan <[email protected]>
389
390 ocaml-libvirt: add D.get_cpu_stats() API to ocaml-libvirt
391 Changed from V3:
392 use new virDomainGetCPUStats() libvirt-API.
393 use C code to construct the typed_param list array
394
395 2012-03-06 Richard W.M. Jones <[email protected]>
396
397 Remove virConnectListAllDomains.
398 This was never in a released libvirt.
399
400 Add header to Make.rules.in.
401
402 Remove obsolete: mlvirsh, gettext support, Windows installer.
403
404 2012-03-05 Richard W.M. Jones <[email protected]>
405
406 Remove .hgignore.
407
408 Remove jobs API.
409 This was never in a released libvirt.
410
411 2009-11-16 Richard Jones <[email protected]>
412
413 Add .gitignore file.
414
415 2009-03-10 Richard W.M. Jones <[email protected]>
416
417 Correct to-do list.
418
419 Version 0.6.1.0 for release.
420
421 Correct mlvirsh for new read-write connection.
422
423 virDomainBlockPeek and virDomainMemoryPeek need a read/write connection (CVE-2008-5086) (found by David Lutterkort).
424
425 2008-09-03 Richard W.M. Jones <[email protected]>
426
427 D.get_id returns -1 for inactive domains instead of throwing an error.
428
429 Don't duplicate unnecessary call to D.get_info.
430
431 Implement version 3 of virConnectListAllDomains.
432
433 2008-09-01 Richard W.M. Jones <[email protected]>
434
435 Add support for virConnectListAllDomains call.
436
437 2008-08-29 Richard W.M. Jones <[email protected]>
438
439 Revert previous change.
440
441 Use CAMLreturn0 to avoid a warning.
442
443 2008-08-14 Richard W.M. Jones <[email protected]>
444
445 Allow destdir options to be passed to 'make install' (Guillaume Rousse).
446
447 2008-07-09 Richard W.M. Jones <[email protected]>
448
449 Split peek requests into maximum-sized chunks.
450
451 Add Domain.max_peek function to determine maximum size of peek requests.
452
453 Don't pass -destdir parameter to ocamlfind. Version 0.4.4.2.
454
455 2008-07-07 Richard W.M. Jones <[email protected]>
456
457 Version 0.4.4.1 for release.
458
459 Changed INRIA to Red Hat (for Debian)
460
461 Files missed by 'make distclean' (for Debian)
462
463 Removed old ChangeLog file.
464
465 Clarify the license again for Debian.
466
467 Revert previous commit.
468
469 Reference the license from LGPL files (for Debian).
470
471 Clarify the license for Debian.
472
473 2008-07-04 Richard W.M. Jones <[email protected]>
474
475 Split 'make install' into separate 'make install-opt' and 'make install-byte' (Sylvain Le Gall, via Debian)
476
477 2008-06-10 Richard W.M. Jones <[email protected]>
478
479 Remove some old virt-top stuff.
480
481 Auto-generate ChangeLog.
482
483 Deprecate ChangeLog file.
484
485 Version 0.4.2.4 for release.
486
487 Missing dependencies.
488
489 List* functions throw exceptions if maxids = 0, so bypass this case.
490
491 2008-06-09 Richard W.M. Jones <[email protected]>
492
493 Version 0.4.2.3.
494
495 2008-06-05 Richard W.M. Jones <[email protected]>
496
497 Fix some bugs in the implementation of virDomainMemoryPeek
498
499 Updated MANIFEST
500
501 Add domblkpeek, dommempeek commands and add per-argument help.
502
503 Add support for virDomainBlockPeek, virDomainMemoryPeek and remove the deprecated conn/dom/net fields in virterror.
504
505 Remove Windows cruft from when it was lacking ocamlfind.
506
507 2008-05-27 Richard W.M. Jones <[email protected]>
508
509 Brazilian Portuguese translation by Herli Joaquim de Menezes and revised by Igor Pires Soares.
510
511 2008-04-16 Richard W.M. Jones <[email protected]>
512
513 Just the OCaml bindings (C library).
514
515 Initial import from old virt-top repository.