OSDN Git Service

hd-geometry: Move disk geometry guessing back from block.c
authorMarkus Armbruster <armbru@redhat.com>
Tue, 10 Jul 2012 09:12:31 +0000 (11:12 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 17 Jul 2012 14:48:30 +0000 (16:48 +0200)
commit9db1c0f7a94c6382e2b3e1365566a9a8b8ae74c1
tree5296680df6db7c0f5d587d75fcce27810a9a22ec
parent0e8a8c8f6d988f3907d7cdba877a711a4d47ec5c
hd-geometry: Move disk geometry guessing back from block.c

Commit f3d54fc4 factored it out of hw/ide.c for reuse.  Sensible,
except it was put into block.c.  Device-specific functionality should
be kept in device code, not the block layer.  Move it to
hw/hd-geometry.c, and make stylistic changes required to keep
checkpatch.pl happy.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
block.h
hw/Makefile.objs
hw/block-common.h [new file with mode: 0644]
hw/hd-geometry.c [new file with mode: 0644]
hw/ide/core.c
hw/scsi-disk.c
hw/virtio-blk.c