Re: [Qemu-devel] [PATCH v8 18/26] block: Add sgfnt_runtime_opts to BlockDriver

2018-02-22 Thread Alberto Garcia
On Thu 22 Feb 2018 04:19:45 PM CET, Max Reitz wrote: > On 2018-02-06 16:23, Alberto Garcia wrote: >> On Mon 05 Feb 2018 04:18:27 PM CET, Max Reitz wrote: >>> --- a/block/blkdebug.c >>> +++ b/block/blkdebug.c >>> @@ -886,6 +886,21 @@ static int blkdebug_reopen_prepare(BDRVReopenState >>>

Re: [Qemu-devel] [PATCH v8 18/26] block: Add sgfnt_runtime_opts to BlockDriver

2018-02-22 Thread Max Reitz
On 2018-02-06 16:23, Alberto Garcia wrote: > On Mon 05 Feb 2018 04:18:27 PM CET, Max Reitz wrote: >> --- a/block/blkdebug.c >> +++ b/block/blkdebug.c >> @@ -886,6 +886,21 @@ static int blkdebug_reopen_prepare(BDRVReopenState >> *reopen_state, >> return 0; >> } >> >> +static const char

Re: [Qemu-devel] [PATCH v8 18/26] block: Add sgfnt_runtime_opts to BlockDriver

2018-02-20 Thread Eric Blake
On 02/20/2018 08:51 AM, Max Reitz wrote: On 2018-02-06 20:43, Eric Blake wrote: On 02/05/2018 09:18 AM, Max Reitz wrote: This new field can be set by block drivers to list the runtime options they accept that may influence the contents of the respective BDS. As of a follow-up patch, this list

Re: [Qemu-devel] [PATCH v8 18/26] block: Add sgfnt_runtime_opts to BlockDriver

2018-02-20 Thread Max Reitz
On 2018-02-06 20:43, Eric Blake wrote: > On 02/05/2018 09:18 AM, Max Reitz wrote: >> This new field can be set by block drivers to list the runtime options >> they accept that may influence the contents of the respective BDS. As of >> a follow-up patch, this list will be used by the common >>

Re: [Qemu-devel] [PATCH v8 18/26] block: Add sgfnt_runtime_opts to BlockDriver

2018-02-06 Thread Eric Blake
On 02/05/2018 09:18 AM, Max Reitz wrote: This new field can be set by block drivers to list the runtime options they accept that may influence the contents of the respective BDS. As of a follow-up patch, this list will be used by the common bdrv_refresh_filename() implementation to decide which

Re: [Qemu-devel] [PATCH v8 18/26] block: Add sgfnt_runtime_opts to BlockDriver

2018-02-06 Thread Alberto Garcia
On Mon 05 Feb 2018 04:18:27 PM CET, Max Reitz wrote: > --- a/block/blkdebug.c > +++ b/block/blkdebug.c > @@ -886,6 +886,21 @@ static int blkdebug_reopen_prepare(BDRVReopenState > *reopen_state, > return 0; > } > > +static const char *const blkdebug_sgfnt_runtime_opts[] = { > +