/proc/sys/kernel/real-root-dev

Jakub Jelinek (jj@sunsite.ms.mff.cuni.cz)
Mon, 2 Nov 1998 18:45:54 +0100 (MET)


Hi!

Cannot we have real_root_dev defined as int, when sysctl and proc accesses
it as short?
At the moment, an initrd script which wants to change root device on big
endian machine, has to shift it by 16 up, e.g. for sda8 put
echo 0x8080000 > /proc/sys/kernel/real-root-dev, which is kind of anoying
and if things go wrong, it could clobber things around it (fortunately in
all kernels I've checked the 2 bytes after real_root_dev are unused.

Cheers,
Jakub
___________________________________________________________________
Jakub Jelinek | jj@sunsite.mff.cuni.cz | http://sunsite.mff.cuni.cz
Administrator of SunSITE Czech Republic, MFF, Charles University
___________________________________________________________________
Ultralinux - first 64bit OS to take full power of the UltraSparc
Linux version 2.1.126 on a sparc64 machine (498.80 BogoMips).
___________________________________________________________________

-
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/