BLKGETSIZE ioctl uses unsigned long, not long for the size parameter.

Thus the maximum supported device is 2 TB on 32 bit platforms
instead of only 1 TB.

(Logical change 1.277)
edge.strict_endians
omakaista.fi!szaka 2004-02-17 03:40:22 +00:00
parent 7e89018759
commit 5f20b21ef8
1 changed files with 1 additions and 1 deletions

View File

@ -454,7 +454,7 @@ s64 ntfs_device_size_get(struct ntfs_device *dev, int block_size)
{
s64 high, low;
#ifdef BLKGETSIZE
long size;
unsigned long size;
if (dev->d_ops->ioctl(dev, BLKGETSIZE, &size) >= 0) {
Dprintf("BLKGETSIZE nr 512 byte blocks = %ld (0x%ld)\n", size,