Files
libguestfs/daemon
Richard W.M. Jones b4728fd004 generator: Annotate returned strings which are devices or mountables.
Previously the generator did not change any string returned from the
daemon.  Thus guestfs_list_devices (for example) might return internal
device names like /dev/vda (if virtio-blk was in use).

This changes calls to the daemon so that returned strings are
annotated as plain strings, devices or mountables:

    old               --->     new
  RString "uuid"             RString (RPlainString "uuid")
  RString "device"           RString (RDevice "device")
  RString "fs"               RString (RMountable "fs")

For hash tables, keys and values must be annotated separately.  For
example a hash table of mountables (keys) -> plain strings (values)
would be annotated like this:

    old               --->     new
  RHashtable "fses"          RHashtable (RMountable, RPlainString, "fses")

The daemon calls reverse_device_name_translation (currently a no-op)
for devices and mountables.

Note that this has no effect for calls which are handled on the
library side.

(cherry picked from commit 6b77cc196ecb8d7e1d73592ef65a189a7412c97c)
2017-05-08 11:14:45 +01:00
..
2016-08-25 15:22:23 +02:00
2017-01-03 16:48:21 +01:00
2017-05-02 13:34:42 +01:00
2017-05-02 13:34:42 +01:00
2016-03-07 17:36:24 +00:00
2016-03-07 17:36:24 +00:00
2017-01-03 16:48:21 +01:00
2016-03-07 17:36:24 +00:00
2017-01-03 16:48:21 +01:00
2017-01-03 16:48:21 +01:00
2017-01-03 16:48:21 +01:00
2017-01-03 16:48:21 +01:00
2016-03-07 17:36:24 +00:00
2017-01-03 16:48:21 +01:00
2017-01-03 16:48:21 +01:00
2017-01-03 16:48:21 +01:00
2016-03-07 17:36:24 +00:00
2017-01-03 16:48:21 +01:00
2014-10-23 19:03:11 +02:00
2016-07-25 19:45:03 +02:00
2016-01-19 09:46:20 +01:00
2016-03-07 17:36:24 +00:00
2017-01-03 16:48:21 +01:00
2017-01-03 16:48:21 +01:00
2014-10-23 19:03:11 +02:00
2017-01-03 16:48:21 +01:00
2017-01-03 16:48:21 +01:00
2017-03-03 10:24:48 +00:00
2017-01-03 16:48:21 +01:00
2017-01-03 16:48:21 +01:00
2017-02-15 14:44:13 +01:00
2016-09-19 19:53:07 +02:00
2015-07-02 16:08:44 +01:00
2017-05-02 13:01:11 +01:00
2014-10-23 19:03:11 +02:00
2015-10-05 14:28:33 +01:00
2017-01-03 16:48:21 +01:00
2017-05-02 13:34:42 +01:00
2017-01-03 16:48:21 +01:00