Keyword: blkgetsize
Articles:
How to determine the size of a raw device (in a C programm) [20]
Tauschzone
MK