ufsread.c.diff

y7goto, 01/21/2007 05:38 PM

Download (586 Bytes)

View differences:

ufsread.c 21 Jan 2007 17:07:08 -0000
229 229
		} else if (lbn < NDADDR + NINDIR(fs)) {
230 230
			n = INDIRPERVBLK(fs);
231 231
			addr = DIP(di_ib[0]);
232
			u = (u_int)(lbn - NDADDR) / (n * DBPERVBLK);
232
			u = (u_int)(lbn - NDADDR) / n * DBPERVBLK;
233 233
			vbaddr = fsbtodb(fs, addr) + u;
234 234
			if (indmap != vbaddr) {
235 235
				if (dskread(indbuf, vbaddr, DBPERVBLK))