Re: [Qemu-devel] [PATCH 30/31] blockdev: Convert drive_new() to Error

2018-10-12 Thread Kevin Wolf
Am 12.10.2018 um 14:28 hat Max Reitz geschrieben: > >>> @@ -1155,8 +1155,7 @@ static void default_drive(int enable, int snapshot, > >>> BlockInterfaceType type, > >>> drive_enable_snapshot(NULL, opts, NULL); > >>> } > >>> > >>> -dinfo = drive_new(opts, type); > >>> -

Re: [Qemu-devel] [PATCH 30/31] blockdev: Convert drive_new() to Error

2018-10-12 Thread Max Reitz
On 12.10.18 07:44, Markus Armbruster wrote: > Copying Marc-André for a possible connection to his recent work on > improving help. Marc-André, search for "format=help". Just in case you > have further observations to offer. > > Max Reitz writes: > >> On 08.10.18 19:31, Markus Armbruster

Re: [Qemu-devel] [PATCH 30/31] blockdev: Convert drive_new() to Error

2018-10-11 Thread Markus Armbruster
Copying Marc-André for a possible connection to his recent work on improving help. Marc-André, search for "format=help". Just in case you have further observations to offer. Max Reitz writes: > On 08.10.18 19:31, Markus Armbruster wrote: >> Calling error_report() from within a a function that

Re: [Qemu-devel] [PATCH 30/31] blockdev: Convert drive_new() to Error

2018-10-08 Thread Max Reitz
On 08.10.18 19:31, Markus Armbruster wrote: > Calling error_report() from within a a function that takes an Error ** > argument is suspicious. drive_new() does that, and its caller > drive_init_func() then exit()s. I'm afraid I don't quite follow you here. There is no function here that takes

Re: [Qemu-devel] [PATCH 30/31] blockdev: Convert drive_new() to Error

2018-10-08 Thread Eric Blake
On 10/8/18 12:31 PM, Markus Armbruster wrote: Calling error_report() from within a a function that takes an Error ** s/a a/a/ argument is suspicious. drive_new() does that, and its caller drive_init_func() then exit()s. Its caller main(), via qemu_opts_foreach(), is fine with it, but clean

[Qemu-devel] [PATCH 30/31] blockdev: Convert drive_new() to Error

2018-10-08 Thread Markus Armbruster
Calling error_report() from within a a function that takes an Error ** argument is suspicious. drive_new() does that, and its caller drive_init_func() then exit()s. Its caller main(), via qemu_opts_foreach(), is fine with it, but clean it up anyway: * Convert drive_new() to Error * Update