Il 08/10/2013 14:05, Peter Lieven ha scritto: >> Strictly speaking, this should probably do something like this: >> >> assert(ret & BDRV_BLOCK_OFFSET_VALID); >> return bdrv_get_block_status(bs->file, ret >> BDRV_SECTOR_BITS, >> nb_sectors, pnum); > shouldn't the last line be: > > return bdrv_get_block_status(bs->file, ret >> BDRV_SECTOR_BITS, > *pnum, pnum); > > > This would of course require *pnum = nb_sectors in raw_co_get_block_status > ?
Yes for both questions. Paolo