aboutsummaryrefslogtreecommitdiff
path: root/sbin/fsdb
diff options
context:
space:
mode:
authorKirk McKusick <mckusick@FreeBSD.org>2013-03-23 07:57:30 +0000
committerKirk McKusick <mckusick@FreeBSD.org>2013-03-23 07:57:30 +0000
commit25bcd53216fa9f81434e867d4cbe94e23a19c325 (patch)
treecb4aae1b2ede7eba67e913718a5fd2428e5ceec7 /sbin/fsdb
parent115f80b8d3f2c09bf5b65c3346153b97d4c4dedf (diff)
downloadsrc-25bcd53216fa9f81434e867d4cbe94e23a19c325.tar.gz
src-25bcd53216fa9f81434e867d4cbe94e23a19c325.zip
Fix the build after addition of cylinder group cacheing (r248625)
Reported by: Glen Barber (gjb@) Pointy hat to: Kirk McKusick (mckusick@)
Notes
Notes: svn path=/head/; revision=248639
Diffstat (limited to 'sbin/fsdb')
-rw-r--r--sbin/fsdb/fsdb.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/fsdb/fsdb.c b/sbin/fsdb/fsdb.c
index e169061e9f65..1315aeca0acb 100644
--- a/sbin/fsdb/fsdb.c
+++ b/sbin/fsdb/fsdb.c
@@ -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.