block: split raw_getlength
commit50779cc264aa1abd75aa5afa34740d4fd8481f1d
authorChristoph Hellwig <hch@lst.de>
Tue, 6 Apr 2010 17:13:44 +0000 (6 19:13 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 23 Apr 2010 14:08:46 +0000 (23 16:08 +0200)
tree6489782c15486ff9d7d7325513890554d6d00888
parent6db956039db8a6333265d458be561dc1bc2b4481
block: split raw_getlength

Split up the raw_getlength into separate generic, solaris and BSD
versions to reduce the ifdef maze a bit.  The BSD variant still
is a complete maze, but to clean it up properly we'd need some
people using the BSD variants to figure out what code is used
for what variant.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/raw-posix.c