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
parent
7e89018759
commit
5f20b21ef8
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue