Re: /proc/sys/... functionality - bug or feature ?

Rik van Riel (H.H.vanRiel@phys.uu.nl)
Tue, 11 Aug 1998 21:44:26 +0200 (CEST)


On Tue, 11 Aug 1998, Oren Laadan wrote:

> The implementation of /proc/sys/... (kernel/sysctl.c) implies that
> consecutive "read()" from files simply won't work.
>
> linux> cat /proc/sys/kernel/osrelease
> 2.0.32
> linux> dd if=/proc/sys/kernel/osrelease bs=2
> 2.1+0 records in
> 1+0 records out
>
> And this is definitely incorrect behaviour. Unlike files like
> /proc/cmdline, that are implemented in a different manner.
> The question is whether this is a feature, or a bug in the basic design ?

The real questions are:
- do we really care? (nobody uses dd on sysctl files anyway)
- is it worth it to add the extra code/bloat?
- does anybody need to do anything but cat'ing values to/from
/proc/sys/*?

Rik.
+-------------------------------------------------------------------+
| Linux memory management tour guide. H.H.vanRiel@phys.uu.nl |
| Scouting Vries cubscout leader. http://www.phys.uu.nl/~riel/ |
+-------------------------------------------------------------------+

-
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.altern.org/andrebalsa/doc/lkml-faq.html