Subject: CVS commit: src/usr.sbin/installboot
To: None <source-changes@netbsd.org>
From: Havard Eidnes <he@netbsd.org>
List: source-changes
Date: 04/05/2003 14:30:54
Module Name:	src
Committed By:	he
Date:		Sat Apr  5 11:30:53 UTC 2003

Modified Files:
	src/usr.sbin/installboot: ffs.c

Log Message:
Fix two mistakes done in the UFS2 merge:
 o Correct the order of arguments to ffs_read_disk_block; the second one
   is blocknumber to read, not the size to be read.  This would affect the
   UFS2 code, and is thus not much excercised at the moment.
 o The offsets in SBLOCKSEARCH are in bytes, but ffs_read_disk_block wants
   its location in terms of DEV_BSIZE blocks.  Fix this bug in ffs_match().
The latter together with the recent magic number fix to <ufs/ffs/fs.h>
fixes a cross build problem seen when doing a i386->sparc build.


To generate a diff of this commit:
cvs rdiff -r1.10 -r1.11 src/usr.sbin/installboot/ffs.c

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