Re: [CFT][PATCH] large /proc/mounts and friends

Linus Torvalds (torvalds@transmeta.com)
Mon, 15 Oct 2001 21:01:17 -0700 (PDT)


On Mon, 15 Oct 2001, Alexander Viro wrote:
>
> I don't. ->f_pos is an entry number. That's it.

Ahh, ok, I did indeed misread your code. Fair enough, then that's pretty
much equivalent to what I was asking for.

The reason I like sub-positions is that I worry that some application does
an lseek() to a position it already held earlier.

But you're probably right that it doesn't really matter, and as we really
have "pipe" semantics we might as well dis-allow any lseek except to the
beginning (I know that there have been apps out there that avoid
re-opening /proc files by lseek'ing to zero and re-reading - they may not
be common enough to matter, though).

Ok, I'll re-read your patch with this in mind. But it sounds like I'm
going to approve of it with this background...

Linus

-
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/