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

CVS: cvs.openbsd.org: src

Module name:	src
Changes by:	krw_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org	2009/05/12 19:31:59

Modified files:
	sbin/disklabel : editor.c 
	sys/arch/luna88k/luna88k: disksubr.c 
	sys/arch/sgi/sgi: disksubr.c 
	sys/arch/sparc/sparc: disksubr.c 
	sys/arch/sparc64/sparc64: disksubr.c 

Log message:
Set D_VENDOR when spoofing a label on archs that use D_VENDOR when
reading the native disklabel. This ensures cylinder alignment.

Fix disklabel to do cylinder alignment arithmetic correctly in -A
mode. Worked by accident before, since the code was protected by
D_VENDOR, which wasn't being set.

ok deraadt@