dumpfs.c (201647) | dumpfs.c (207141) |
---|---|
1/* 2 * Copyright (c) 2009 Robert N. M. Watson 3 * All rights reserved. 4 * 5 * This software was developed at the University of Cambridge Computer 6 * Laboratory with support from a grant from Google, Inc. 7 * 8 * Copyright (c) 2002 Networks Associates Technology, Inc. --- 39 unchanged lines hidden (view full) --- 48 The Regents of the University of California. All rights reserved.\n"; 49#endif /* not lint */ 50 51#ifndef lint 52#if 0 53static char sccsid[] = "@(#)dumpfs.c 8.5 (Berkeley) 4/29/95"; 54#endif 55static const char rcsid[] = | 1/* 2 * Copyright (c) 2009 Robert N. M. Watson 3 * All rights reserved. 4 * 5 * This software was developed at the University of Cambridge Computer 6 * Laboratory with support from a grant from Google, Inc. 7 * 8 * Copyright (c) 2002 Networks Associates Technology, Inc. --- 39 unchanged lines hidden (view full) --- 48 The Regents of the University of California. All rights reserved.\n"; 49#endif /* not lint */ 50 51#ifndef lint 52#if 0 53static char sccsid[] = "@(#)dumpfs.c 8.5 (Berkeley) 4/29/95"; 54#endif 55static const char rcsid[] = |
56 "$FreeBSD: head/sbin/dumpfs/dumpfs.c 201647 2010-01-06 14:01:28Z gavin $"; | 56 "$FreeBSD: head/sbin/dumpfs/dumpfs.c 207141 2010-04-24 07:05:35Z jeff $"; |
57#endif /* not lint */ 58 59#include <sys/param.h> 60#include <sys/time.h> 61#include <sys/disklabel.h> 62 63#include <ufs/ufs/dinode.h> 64#include <ufs/ffs/fs.h> --- 168 unchanged lines hidden (view full) --- 233 fsflags = afs.fs_flags; 234 else 235 fsflags = afs.fs_old_flags; 236 if (fsflags == 0) 237 printf("none"); 238 if (fsflags & FS_UNCLEAN) 239 printf("unclean "); 240 if (fsflags & FS_DOSOFTDEP) | 57#endif /* not lint */ 58 59#include <sys/param.h> 60#include <sys/time.h> 61#include <sys/disklabel.h> 62 63#include <ufs/ufs/dinode.h> 64#include <ufs/ffs/fs.h> --- 168 unchanged lines hidden (view full) --- 233 fsflags = afs.fs_flags; 234 else 235 fsflags = afs.fs_old_flags; 236 if (fsflags == 0) 237 printf("none"); 238 if (fsflags & FS_UNCLEAN) 239 printf("unclean "); 240 if (fsflags & FS_DOSOFTDEP) |
241 printf("soft-updates "); | 241 printf("soft-updates%s ", (fsflags & FS_SUJ) ? "+journal" : ""); |
242 if (fsflags & FS_NEEDSFSCK) 243 printf("needs fsck run "); 244 if (fsflags & FS_INDEXDIRS) 245 printf("indexed directories "); 246 if (fsflags & FS_ACLS) 247 printf("acls "); 248 if (fsflags & FS_MULTILABEL) 249 printf("multilabel "); 250 if (fsflags & FS_GJOURNAL) 251 printf("gjournal "); 252 if (fsflags & FS_FLAGS_UPDATED) 253 printf("fs_flags expanded "); 254 if (fsflags & FS_NFS4ACLS) 255 printf("nfsv4acls "); 256 fsflags &= ~(FS_UNCLEAN | FS_DOSOFTDEP | FS_NEEDSFSCK | FS_INDEXDIRS | 257 FS_ACLS | FS_MULTILABEL | FS_GJOURNAL | FS_FLAGS_UPDATED | | 242 if (fsflags & FS_NEEDSFSCK) 243 printf("needs fsck run "); 244 if (fsflags & FS_INDEXDIRS) 245 printf("indexed directories "); 246 if (fsflags & FS_ACLS) 247 printf("acls "); 248 if (fsflags & FS_MULTILABEL) 249 printf("multilabel "); 250 if (fsflags & FS_GJOURNAL) 251 printf("gjournal "); 252 if (fsflags & FS_FLAGS_UPDATED) 253 printf("fs_flags expanded "); 254 if (fsflags & FS_NFS4ACLS) 255 printf("nfsv4acls "); 256 fsflags &= ~(FS_UNCLEAN | FS_DOSOFTDEP | FS_NEEDSFSCK | FS_INDEXDIRS | 257 FS_ACLS | FS_MULTILABEL | FS_GJOURNAL | FS_FLAGS_UPDATED | |
258 FS_NFS4ACLS); | 258 FS_NFS4ACLS | FS_SUJ); |
259 if (fsflags != 0) 260 printf("unknown flags (%#x)", fsflags); 261 putchar('\n'); 262 printf("fsmnt\t%s\n", afs.fs_fsmnt); 263 printf("volname\t%s\tswuid\t%ju\n", 264 afs.fs_volname, (uintmax_t)afs.fs_swuid); 265 printf("\ncs[].cs_(nbfree,ndir,nifree,nffree):\n\t"); 266 afs.fs_csp = calloc(1, afs.fs_cssize); --- 217 unchanged lines hidden --- | 259 if (fsflags != 0) 260 printf("unknown flags (%#x)", fsflags); 261 putchar('\n'); 262 printf("fsmnt\t%s\n", afs.fs_fsmnt); 263 printf("volname\t%s\tswuid\t%ju\n", 264 afs.fs_volname, (uintmax_t)afs.fs_swuid); 265 printf("\ncs[].cs_(nbfree,ndir,nifree,nffree):\n\t"); 266 afs.fs_csp = calloc(1, afs.fs_cssize); --- 217 unchanged lines hidden --- |