lkml.org 
[lkml]   [2001]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [CFT][PATCH] large /proc/mounts and friends

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/

\
 
 \ /
  Last update: 2005-03-22 13:08    [W:0.090 / U:3.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site