Re: size of files in /proc

Sitaram Iyer (sitaram@cse.iitb.ernet.in)
Sat, 23 May 1998 12:26:53 +0530


Thus, Sitaram Iyer spake...
> I know FIFOs do not pass stuff over nfs, but is something possible on
> the lines of reporting *all* files in /proc as FIFOs, so you anyway
> don't know in advance how much data you're going to read, and are forced
> to read till EOF. Or maybe all files can pose as character device
> drivers, with an entire set of device numbers. Anything to keep the size
> a mystery.. ?

sorry to followup on my own posting, but realized the problem.. since
nfs is stateless, only something lseekable can transfer anything over
nfs (am I right?), so named pipes are out. Are character devices
"defined" to be unlseekable streams or can we have one that support
lseek?

else back to good'ol zero-size files.. :)

-- Sitaram Iyer <sitaram.iyer@usa.net>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu