From: Allen Pais Date: Fri, 19 Sep 2014 13:42:26 +0000 (-0400) Subject: sunvdc: compute vdisk geometry from capacity X-Git-Tag: omap-for-v3.19/prcm-cleanup~113^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de5b73f08468b4fc5e2f6d1505f650262622f78b;p=pandora-kernel.git sunvdc: compute vdisk geometry from capacity The LDom diskserver doesn't return reliable geometry data. In addition, the types for all fields in the vio_disk_geom are u16, which were being truncated in the cast into the u8's of the Linux struct hd_geometry. Modify vdc_getgeo() to compute the geometry from the disk's capacity in a manner consistent with xen-blkfront::blkif_getgeo(). Signed-off-by: Dwight Engen Signed-off-by: David S. Miller --- Reading git-diff-tree failed