Alan Cox wrote:
>
> > Stephen Tweedie posted a comment back in January that 2.4 would lift the 2G
> > file limit for 32-bit architeture.
> > Is this still true?
>
> 2.3.x supports LFS. The only 32bitism left I know about is file locks
>
> > I've got a project starting with 23G of data and may end up needing this
> > capability.
>
> There is also a 2.2 patch for LFS now
The 2.2 LFS patch is available from http://www.scyld.com/
While posted for 2.2.12-20 (i.e., RH 6.1), it also works on 2.2.15 and
2.2.16.
However, the following additional patch is needed to fix a bogus EFAULT
return from fcntl() and fcntl64().
--- fs/locks.c.orig Wed May 31 08:56:53 2000
+++ fs/locks.c Tue Jun 6 09:30:15 2000
@@ -400,7 +400,7 @@
flock32.l_len = flock64.l_len;
flock32.l_pid = flock64.l_pid;
- if (!copy_to_user(l, &flock32, sizeof(flock32)))
+ if (copy_to_user(l, &flock32, sizeof(flock32)))
return -EFAULT;
return 0;
}
@@ -413,7 +413,7 @@
return -EFAULT;
err = do_fcntl_getlk(fd, &flock);
if (err) return err;
- if (!copy_to_user(l, &flock, sizeof(flock)))
+ if (copy_to_user(l, &flock, sizeof(flock)))
return -EFAULT;
return 0;
}
You'll also need a modified glibc, also available from Scyld.
-- David N. Lombard MSC.Software- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Thu Jun 15 2000 - 21:00:16 EST