Re: BUG in fs/proc/generic.c:proc_file_read

From: Rusty Russell
Date: Mon Aug 11 2003 - 15:57:01 EST


In message <Pine.LNX.4.44.0308072346020.3811-100000@xxxxxxxxxxxxxxxxxxxxx> you write:
> In short:
> The hack used to be able to read proc files larger than 4k, breaks if the
> caller does lseek() after read()

Hmm, my more(1) does this too. What a PITA. less(1) does not.

I've never noticed it before, though. I certainly didn't notice it
when I implemented the hack.

Of course, converting to seq_file is probably the nicest solution
these days.

Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/