Fix the build after addition of cylinder group cacheing (r248625)

Reported by:   Glen Barber (gjb@)
Pointy hat to: Kirk McKusick (mckusick@)
This commit is contained in:
Kirk McKusick 2013-03-23 07:57:30 +00:00
parent 115f80b8d3
commit 25bcd53216
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=248639

View file

@ -441,7 +441,8 @@ CMDFUNCSTART(findblk)
ino_t inum, inosused;
uint32_t *wantedblk32;
uint64_t *wantedblk64;
struct cg *cgp = &cgrp;
struct bufarea *cgbp;
struct cg *cgp;
int c, i, is_ufs2;
wantedblksize = (argc - 1);
@ -473,8 +474,8 @@ CMDFUNCSTART(findblk)
*/
inum = c * sblock.fs_ipg;
/* Read cylinder group. */
getblk(&cgblk, cgtod(&sblock, c), sblock.fs_cgsize);
memcpy(cgp, cgblk.b_un.b_cg, sblock.fs_cgsize);
cgbp = cgget(c);
cgp = cgbp->b_un.b_cg;
/*
* Get a highest used inode number for a given cylinder group.
* For UFS1 all inodes initialized at the newfs stage.