Am 05.09.2013 um 15:55 hat Max Reitz geschrieben: > Add an Error ** parameter to BlockDriver.bdrv_open and > BlockDriver.bdrv_file_open to allow more specific error messages. > > Signed-off-by: Max Reitz <mre...@redhat.com>
> diff --git a/block/iscsi.c b/block/iscsi.c > index 2bbee1f..2464f19 100644 > --- a/block/iscsi.c > +++ b/block/iscsi.c > @@ -1046,7 +1046,8 @@ static QemuOptsList runtime_opts = { > * We support iscsi url's on the form > * iscsi://[<username>%<password>@]<host>[:<port>]/<targetname>/<lun> > */ > -static int iscsi_open(BlockDriverState *bs, QDict *options, int flags) > +static int iscsi_open(BlockDriverState *bs, QDict *options, int flags, > + Error **errp) > { > IscsiLun *iscsilun = bs->opaque; > struct iscsi_context *iscsi = NULL; block/iscsi.c: In function 'iscsi_create': block/iscsi.c:1265:5: error: too few arguments to function 'iscsi_open' block/iscsi.c:1049:12: note: declared here