Fix autodetection
authorWouter Verhelst <w@uter.be>
Mon, 8 Jun 2009 21:02:29 +0000 (23:02 +0200)
committerWouter Verhelst <w@uter.be>
Mon, 8 Jun 2009 21:02:29 +0000 (23:02 +0200)
commit5f2bea6836c576802883c70959dcb34deafb3d71
treebecdf9538d892070ef75af81f2c5479ae521149e
parent0a4264bb205a6d77f04d9861269ed26b11df1633
Fix autodetection

Everything else in nbd-server was already 64bit-clean, but this part,
where the size of a block device is autodected, wasn't.

Replace the ioctl() to BLKGETSIZE with its 64bit version, so that trying
to detect the size of a multi-terabyte block device does not fail.
nbd-server.c