dev_t inconsistency

Christopher J. Reimer (reimer@doe.carleton.ca)
Wed, 11 Mar 1998 20:31:51 -0500 (EST)


Hi, I am trying to get the loopcrypt module running on a Redhat
5.0 system with 2.1.89. I seem to be running into a problem where dev_t
is defined in the kernel in asm/posix_types.h as a unsigned short, and
dev_t in the modified mount et al. programs is defined in gnu/types.h as
unsigned long long int. The losetup programs pass a struct containing
dev_t variables to the kernel, and all the offsets (and size of) into the
struct are wrong because of this.

I am not sure how to go about "correctly" solving this situation.
Should the mount (and other programs) be using the kernel's dev_t
definition (by setting __KERNEL__ in the appropriate places, ick) or are
the two dev_ts supposed to be the same... I am unsure.

Chris

--

Christopher Reimer http://www.doe.carleton.ca/~reimer/ reimer@doe.carleton.ca PGP Public Key available at web site, PGP Keyservers, ID 171F8CF1, or "finger"ing reimer@www.doe.carleton.ca

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