svn commit: r248643 - head/sbin/fsdb

Glen Barber gjb at FreeBSD.org
Sat Mar 23 08:57:15 UTC 2013


Author: gjb (doc,ports committer)
Date: Sat Mar 23 08:57:14 2013
New Revision: 248643
URL: http://svnweb.freebsd.org/changeset/base/248643

Log:
  Revert r248639 to fix build failure on head/

Modified:
  head/sbin/fsdb/fsdb.c

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


More information about the svn-src-all mailing list