Re: proc_fs 512b read limit on sparc?

From: Rusty Russell (rusty@linuxcare.com.au)
Date: Tue Jun 20 2000 - 01:47:46 EST


In message <B2B3C90E45AED111B7B40001FA7E520A03834288@exw-kansas.ks.lsil.com> yo
u write:
> Is there some 512 byte limitation when I `cat /proc/{somesuch}`
> on sparc64? I thought there was PAGE_SIZE limit (4 Kb?), but...
>
> I'm working on a driver that creates: /proc/mpi/info
> When I `cat /proc/mpi/info` on i386 machine I get what I expect,
> but output appears to be chopped off at 512 bytes on sparc64 system
> (at location of extra # character in output below)

Probably cat is doing 512 byte reads, and someone screwed up in the
/proc read routine for mpi/info? Use

        dd bs=1024 /proc/mpi/info

to test.

BTW, I can't find any reference to mpi in 2.4.0-test1-ac21. If this
is not a standard part of the kernel, it's more likely to be wrong
(the proc stuff is a complete mess).

Rusty.

--
Hacking time.

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



This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:20 EST