From: Avi K. <av...@qu...> - 2008-04-18 16:24:38
|
Ryan Harper wrote: > From: Ryan Harper <ry...@us...> > > Rather than faking up some geometry, allow the backend to push the disk > geometry via virtio pci config option. Keep the old geo code around for > compatibility. > > Applied, thanks. > struct virtio_blk_config > { > uint64_t capacity; > uint32_t size_max; > uint32_t seg_max; > + uint16_t cylinders; > + uint8_t heads; > + uint8_t sectors; > }; > > I packed the structure here to avoid gcc surprises on odd architectures. -- Any sufficiently difficult bug is indistinguishable from a feature. |