Il 18/07/2013 09:25, Fam Zheng ha scritto: >> > + /* Probe up to 1 G at a time. */ >> > + sector_num = (curr.start + curr.length) >> BDRV_SECTOR_BITS; >> > + nsectors_left = DIV_ROUND_UP(length, BDRV_SECTOR_SIZE) - >> > sector_num; >> > + n = MAX(1 << (30 - BDRV_SECTOR_BITS), nsectors_left); >> > + ret = get_block_status(bs, sector_num, &n, &depth); > Am I misunderstanding here, n is at least 1G, but in your comment it's > up to 1 G at a time? >
You're right, it should be MIN. Paolo