Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/dev



Module Name:    src
Committed By:   mrg
Date:           Sun Sep 19 07:11:43 UTC 2010

Modified Files:
        src/sys/dev: vnd.c vndvar.h

Log Message:
fix the vnd_osize changes on 32 bit platforms with 64 bit alignment for
64 bit integers (eg, sparc).  the problem was that the new 64 bit
element on the end was used for the offsetof() (aka size) for the old
structure, but this includes the padding required, thus the ioctl number
was set wrongly.

move all the supporting code for this inside COMPAT_50, with some renaming
to suit, and kill all the external definitions related to it.

tested on i386, amd64 and sparc.


To generate a diff of this commit:
cvs rdiff -u -r1.211 -r1.212 src/sys/dev/vnd.c
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/vndvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Home | Main Index | Thread Index | Old Index