[PATCH] [MTD] mtd-utils: Use new 64-bit ioctls to access >4GiB devices
ricard.wanderlof at axis.com
Wed Mar 18 03:50:08 EDT 2009
On Wed, 18 Mar 2009, Kevin Cernekee wrote:
> This patch depends on "CORE: New ioctl calls for >4GiB device support".
> Use the new kernel ioctls to support >4GiB flash devices in mtd-utils.
> - if(ioctl(Fd,MEMGETREGIONINFO,&(reginfo[i])) != 0)
> + if(ioctl(Fd,MEMGETREGIONINFO64,&(reginfo[i])) != 0)
Wouldn't it be an idea to support both the old and new calls for a while
(using compile time switching), in case someone wants to grab a newer
version of mtdtools but doesn't have a newer kernel for whatever reason?
Ricard Wolf Wanderlöf ricardw(at)axis.com
Axis Communications AB, Lund, Sweden www.axis.com
Phone +46 46 272 2016 Fax +46 46 13 61 30
More information about the linux-mtd