Re: Raw devices broken in 2.6.1?

Andrew Morton
2004-01-30T00:37:29Z

"Curt Hartung" <curt@northarc.com> wrote:
>
> New to the list, checked the FAQ and nothing on this. I'm using raw devices
> for a large database application (highwinds-software) and under 2.4 it runs
> fine, but under 2.6 I get: Program terminated with signal 25, File size
> limit exceeded. (SIGXFSZ) As soon as it tries to grow the raw device pase 2G
> (might be 4G, I'll go back and check)
>
> ulimit reports: file size (blocks) unlimited
> but running the process as root and setrlimit RLIMIT_FSIZE to RLIM_INFINITY
> just to be sure yields the same result.

Possibly whatever version of 2.4 you're using forgot to check for
O_LARGEFILE. But the code looks to be OK.

> I can easily provide a short test program to trigger it, the call I'm using
> is pwrite64(...);

Yes, please.