From 5f20b21ef812f744076b76f4dd142c3cfef50667 Mon Sep 17 00:00:00 2001 From: "omakaista.fi!szaka" Date: Tue, 17 Feb 2004 03:40:22 +0000 Subject: [PATCH] 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) --- libntfs/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libntfs/device.c b/libntfs/device.c index 9ba4b6f2..4d192e1c 100644 --- a/libntfs/device.c +++ b/libntfs/device.c @@ -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,