qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 2/2] ISCSI: Force scsi-generic for MMC with blan


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH 2/2] ISCSI: Force scsi-generic for MMC with blank disks
Date: Sun, 19 Aug 2012 00:16:17 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0

Il 19/08/2012 00:02, ronnie sahlberg ha scritto:
> Neither of them work, basically because in
> block.c:find_image_format()
> 
> if bs->sg is not set in
> 
>  if (bs->sg || !bdrv_is_inserted(bs)) {
> 
> then we continue to
> 
>   ret = bdrv_pread(bs, 0, buf, sizeof(buf));
> 
> which fails with an error.
> So this patch is basically to prevent find_image_format() from trying
> to read from a blank disk.
> 
> Maybe there is a better way to do this?

Yeah, I think in this case find_image_format should just use raw.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]