Re: [PATCH][RFC] Re: 2.4.15-pre5: /proc/cpuinfo broken

Alexander Viro (viro@math.psu.edu)
Sat, 17 Nov 2001 13:29:39 -0500 (EST)


On Sat, 17 Nov 2001, Alan Cox wrote:

> > c) hunt down and fix the userland that relies on arithmetics
> > on file position in case of regular files (POSIX prohibits it, SuS allows).
>
> You forgot d.
>
> (d) - when someone seeks in the file do the seek, and document that they
> lose their guarantees. So they fall back to existing 1.0->2.4 behaviour.
> You just run the iterator either on or back from scratch to the seek point.

Umm... In principle doable, but then we are losing anything resembling
sane behaviour on seek to remembered position. OTOH, it's weak anyway
and saying that it's FIFO and trying to squeeze something from lseek()
is not too attractive.

I'll do that variant - it will be local to file/seq_file.c. I'll give it
some beating and send it - hopefully in an hour or two.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/