Closed GoogleCodeExporter closed 8 years ago
Indeed, running 64-bit kernels with a 32-bit userspace is very common (Debian
allows
this by providing an amd64-kernel-image variant in 32-bit installs).
For this to work, the driver needs to support the compat_ioctl interface.
in compcache-0.6.2 it would be a line added in ramzswap_drv.c:1346
.compat_ioctl = ramzswap_compat_ioctl,
and adding above
long ramzswap_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long
arg)
{
// return ramzswap_unlocked_ioctl(filp, cmd, arg); /// watch locking!
return ramzswap_ioctl(filp->f_dentry->d_inode, filp, cmd, arg);
}
Original comment by bmwiedem...@gmail.com
on 10 Mar 2010 at 11:26
Change committed to repository.
Thanks,
Nitin
Original comment by nitingupta910@gmail.com
on 14 Mar 2010 at 8:24
Please don't forget to make this change in the upstream version as well.
Original comment by lauri.ka...@luukku.com
on 17 May 2010 at 10:48
Original issue reported on code.google.com by
lauri.ka...@luukku.com
on 3 Mar 2010 at 12:50