1/* 2 * Copyright (c) 1983, 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 28 unchanged lines hidden (view full) --- 37 The Regents of the University of California. All rights reserved.\n"; 38#endif /* not lint */ 39 40#ifndef lint 41#if 0 42static char sccsid[] = "@(#)dumpfs.c 8.5 (Berkeley) 4/29/95"; 43#endif 44static const char rcsid[] = |
45 "$Id: dumpfs.c,v 1.11 1999/06/27 10:05:14 phk Exp $"; |
46#endif /* not lint */ 47 48#include <sys/param.h> 49#include <sys/time.h> 50 51#include <ufs/ffs/fs.h> 52 53#include <err.h> --- 113 unchanged lines hidden (view full) --- 167 printf("sblkno\t%d\tcblkno\t%d\tiblkno\t%d\tdblkno\t%d\n", 168 afs.fs_sblkno, afs.fs_cblkno, afs.fs_iblkno, afs.fs_dblkno); 169 printf("sbsize\t%d\tcgsize\t%d\tcgoffset %d\tcgmask\t0x%08x\n", 170 afs.fs_sbsize, afs.fs_cgsize, afs.fs_cgoffset, afs.fs_cgmask); 171 printf("csaddr\t%d\tcssize\t%d\tshift\t%d\tmask\t0x%08x\n", 172 afs.fs_csaddr, afs.fs_cssize, afs.fs_csshift, afs.fs_csmask); 173 printf("cgrotor\t%d\tfmod\t%d\tronly\t%d\tclean\t%d\n", 174 afs.fs_cgrotor, afs.fs_fmod, afs.fs_ronly, afs.fs_clean); |
175 printf("flags\t"); 176 if (afs.fs_flags == 0) 177 printf("none"); 178 if (afs.fs_flags & FS_UNCLEAN) 179 printf("unclean "); 180 if (afs.fs_flags & FS_DOSOFTDEP) 181 printf("soft-updates "); 182 if ((afs.fs_flags & ~(FS_UNCLEAN | FS_DOSOFTDEP)) != 0) 183 printf("unknown flags (%#x)", 184 afs.fs_flags & ~(FS_UNCLEAN | FS_DOSOFTDEP)); 185 putchar('\n'); |
186 if (afs.fs_cpc != 0) 187 printf("blocks available in each of %d rotational positions", 188 afs.fs_nrpos); 189 else 190 printf("(no rotational position table)\n"); 191 for (c = 0; c < afs.fs_cpc; c++) { 192 printf("\ncylinder number %d:", c); 193 for (i = 0; i < afs.fs_nrpos; i++) { --- 149 unchanged lines hidden --- |