Bug report [linux 2.2.14 and 2.3.3x], /proc/sys/real-root-dev not big-endian compliant.

From: Patrick Lerda (Lerda@microprocess.com)
Date: Mon Jan 24 2000 - 03:46:25 EST


In file /usr/src/linux/kernel/sysctl.c, "/proc/sys/real-root-dev" is defined
as is:

        #ifdef CONFIG_BLK_DEV_INITRD
                {KERN_REALROOTDEV, "real-root-dev", &real_root_dev, sizeof(int),
                 0644, NULL, &proc_dointvec},
        #endif

real_root_dev is defined as kdev_t type (typedef struct { unsigned short
major, minor; } kdev_t;).

this definition returns a different result on a big-endian and a
little-endian architecture.
This is quite wrong and need to be fixed!

Patrick LERDA

-
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 : Mon Jan 31 2000 - 21:00:11 EST