Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Mar 1997 22:51:53 -0700 (MST)
From:      Nate Williams <nate@mt.sri.com>
To:        current@freebsd.org
Subject:   dumpfs patch for review
Message-ID:  <199703260551.WAA01493@rocky.mt.sri.com>

next in thread | raw e-mail | index | archive | help
It's not pretty, and I'm not sure how to 'correctly' printout the value
of the new fs_id line, but since no-one else appears to be doing
anything about it here's my attempt at fixing the broken tree.

If no one objects I'll commit this tomorrow after enough people have
time to review it.




Nate
----------
Index: dumpfs.c
===================================================================
RCS file: /home/CVS/src/sbin/dumpfs/dumpfs.c,v
retrieving revision 1.6
diff -c -r1.6 dumpfs.c
*** dumpfs.c	1997/03/11 12:12:26	1.6
--- dumpfs.c	1997/03/26 05:49:19
***************
*** 143,153 ****
  	    afs.fs_frag, afs.fs_fragshift, afs.fs_fsbtodb);
  	printf("cpg\t%d\tbpg\t%d\tfpg\t%d\tipg\t%d\n",
  	    afs.fs_cpg, afs.fs_fpg / afs.fs_frag, afs.fs_fpg, afs.fs_ipg);
! 	printf("minfree\t%d%%\toptim\t%s\tmaxcontig %d\tmaxbpg\t%d\n",
  	    afs.fs_minfree, afs.fs_optim == FS_OPTSPACE ? "space" : "time",
! 	    afs.fs_maxcontig, afs.fs_maxbpg);
! 	printf("rotdelay %dms\theadswitch %dus\ttrackseek %dus\trps\t%d\n",
! 	    afs.fs_rotdelay, afs.fs_headswitch, afs.fs_trkseek, afs.fs_rps);
  	printf("ntrak\t%d\tnsect\t%d\tnpsect\t%d\tspc\t%d\n",
  	    afs.fs_ntrak, afs.fs_nsect, afs.fs_npsect, afs.fs_spc);
  	printf("symlinklen %d\ttrackskew %d\tinterleave %d\tcontigsumsize %d\n",
--- 143,153 ----
  	    afs.fs_frag, afs.fs_fragshift, afs.fs_fsbtodb);
  	printf("cpg\t%d\tbpg\t%d\tfpg\t%d\tipg\t%d\n",
  	    afs.fs_cpg, afs.fs_fpg / afs.fs_frag, afs.fs_fpg, afs.fs_ipg);
! 	printf("minfree\t%d%%\toptim\t%s\tfsid\t%ld\n",
  	    afs.fs_minfree, afs.fs_optim == FS_OPTSPACE ? "space" : "time",
! 	    afs.fs_id);
! 	printf("maxcontig %d\tmaxbpg\t%d\trotdelay %dms\trps\t%d\n",
! 	    afs.fs_maxcontig, afs.fs_maxbpg, afs.fs_rotdelay, afs.fs_rps);
  	printf("ntrak\t%d\tnsect\t%d\tnpsect\t%d\tspc\t%d\n",
  	    afs.fs_ntrak, afs.fs_nsect, afs.fs_npsect, afs.fs_spc);
  	printf("symlinklen %d\ttrackskew %d\tinterleave %d\tcontigsumsize %d\n",



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703260551.WAA01493>