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
..
2017-04-21 15:20:17 +01:00
2012-12-10 16:20:34 +00:00
2016-08-25 15:22:23 +02:00
2016-07-26 10:43:45 +01:00
2016-07-26 10:43:45 +01:00
2014-04-16 12:01:17 +01:00
2016-07-07 16:28:18 +02:00
2014-11-25 14:34:27 +00:00
2017-03-20 10:20:20 +01:00
2013-07-29 14:37:50 +01: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
2013-01-28 18:01:43 +00:00
2016-07-26 10:43:45 +01:00
2016-01-22 09:12:17 +00:00
2016-03-07 17:36:24 +00:00
2016-07-26 10:43:45 +01:00
2016-03-07 17:36:24 +00:00
2017-01-03 16:48:21 +01:00
2017-05-08 11:14:45 +01:00
2016-03-07 17:36:24 +00:00
2014-11-26 16:15:47 +00:00
2017-02-14 17:53:28 +00:00
2017-05-08 11:14:45 +01:00
2017-04-20 14:38:08 +01:00
2017-04-21 15:20:17 +01:00
2013-01-28 18:01:43 +00:00
2013-01-28 18:01:43 +00:00
2017-01-03 16:48:21 +01:00
2014-08-19 16:51:13 +01:00
2017-01-03 16:48:21 +01:00
2016-07-26 10:43:45 +01:00
2017-01-03 16:48:21 +01:00
2016-07-26 10:43:45 +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
2015-10-27 17:25:49 +00:00
2013-01-28 18:01:43 +00:00
2016-08-05 15:10:50 +01:00
2016-02-04 11:25:56 +01:00
2013-01-28 18:01:43 +00:00
2017-01-03 16:48:21 +01:00
2017-05-08 11:14:45 +01:00
2017-01-03 16:48:21 +01:00
2013-01-28 18:01:43 +00:00
2013-01-28 18:01:43 +00:00
2017-04-21 15:20:17 +01:00
2016-03-07 17:36:24 +00:00
2016-07-07 16:28:18 +02:00
2017-04-21 15:20:17 +01:00
2016-04-12 20:59:40 +01:00
2017-01-03 16:48:21 +01:00
2013-01-28 18:01:43 +00:00
2014-10-23 19:03:11 +02:00
2016-12-07 14:20:31 +01:00
2016-07-25 19:45:03 +02:00
2016-07-07 16:28:18 +02:00
2016-01-19 09:46:20 +01:00
2016-03-07 17:36:24 +00:00
2016-07-29 17:21:25 +02:00
2017-01-03 16:48:21 +01:00
2017-05-08 11:14:45 +01:00
2016-07-26 10:43:45 +01:00
2017-01-03 16:48:21 +01:00
2017-03-03 11:32:37 +00:00
2014-10-23 19:03:11 +02:00
2013-08-13 15:46:54 +01:00
2017-04-21 15:20:17 +01:00
2013-02-12 17:09:44 +00: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
2015-01-20 16:09:53 +01:00
2017-01-03 16:48:21 +01:00
2013-01-21 17:00:04 +00:00
2013-01-28 18:01:43 +00:00
2014-05-21 15:03:17 +02:00
2017-03-21 14:54:48 +00:00
2012-12-10 16:20:34 +00:00
2013-01-28 18:01:43 +00:00
2017-04-21 15:20:17 +01:00
2017-03-03 16:36:26 +01:00
2017-02-15 14:44:13 +01:00
2015-06-18 10:19:41 +01:00
2015-07-17 13:27:13 +01:00
2014-11-05 14:50:54 +00:00
2017-04-21 15:20:17 +01:00
2017-04-20 14:38:08 +01:00
2017-02-14 17:53:28 +00:00
2013-04-04 18:31:41 +01:00
2017-02-15 14:44:12 +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
2013-01-28 18:01:43 +00:00
2017-01-03 16:48:21 +01:00
2017-03-13 08:53:49 +01:00
2017-05-02 13:34:42 +01:00
2017-01-03 16:48:21 +01:00
2013-01-28 18:01:43 +00:00