Module Name: src Committed By: mrg Date: Sun Sep 19 05:50:28 UTC 2010
Modified Files: src/sys/dev: vnd.c vndvar.h Log Message: add support for COMPAT_50 ioctls. struct vnd_user has a dev_t component which grew since netbsd 5.0 (hi christos!) fix a few issues/problems: - the COMPAT_30 code wasn't used since opt_compat_netbsd.h wasn't included - move 'struct vnd_ouser' (for COMPAT_30) into vnd.c itself, and call it 'struct vnd_user30' - same for VNDIOOCGET -> VNDIOCGET30 now 'vnconfig -l' works on -current with a netbsd-5 binary, using i386. XXX: there is still a potential problem with the old VNDIOOCSET and VNDIOOCCLR macros on some platforms like sparc. there is padding between the old vnd_osize member and the new vnd_size member on platforms that want 64 bit values 64 bit aligned, but are 32 bit otherwise (like sparc.) 64 bit systems already end up with this member 64 bit aligned, and should be fine. this most likely results in the old ioctl numbers being wrong and the code won't match/run ever (ENOTTY.) To generate a diff of this commit: cvs rdiff -u -r1.210 -r1.211 src/sys/dev/vnd.c cvs rdiff -u -r1.26 -r1.27 src/sys/dev/vndvar.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.