Subject: error in xp.c's xpsize() (#133) Index: sys/pdpuba/xp.c 2.11BSD Description: The xpsize() routine which returns the size of a partition is missing a 'xpunit' macro around the 'dev' parameter. This causes the swap partition size to be miscalculated. Repeat-By: Have a Fuji 160mb drive as the system disc. Do a 'pstat -T' and note that you have 32 megabytes of swap space rather than 4.8megabytes. Fix: Apply the patch below to the pdpuba/xp.c driver and if you are using SMD drives recompile and install the kernel. ===========================cut here====================================== *** /sys/pdpuba/xp.c.old Sun Jan 3 02:29:25 1993 --- /sys/pdpuba/xp.c Tue Apr 27 11:14:49 1993 *************** *** 3,9 **** * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. * ! * @(#)xp.c 1.5 (2.11BSD GTE) 1/2/93 */ /* --- 3,9 ---- * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. * ! * @(#)xp.c 1.6 (2.11BSD GTE) 4/27/93 */ /* *************** *** 1102,1107 **** register struct xp_drive *xd; xd = &xp_drive[xpunit(dev)]; ! return(xd->xp_sizes[dev].nblocks); } #endif NXPD --- 1102,1107 ---- register struct xp_drive *xd; xd = &xp_drive[xpunit(dev)]; ! return(xd->xp_sizes[xpunit(dev)].nblocks); } #endif NXPD