Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/dumplfs Reversed (corrected) sense of superblock ti...
details: https://anonhg.NetBSD.org/src/rev/896f8659bfeb
branches: trunk
changeset: 472553:896f8659bfeb
user: perseant <perseant%NetBSD.org@localhost>
date: Sun May 02 00:26:01 1999 +0000
description:
Reversed (corrected) sense of superblock timestamp comparison; added the
disk address of the reported superblock to the "master superblock" line
of the report.
diffstat:
usr.sbin/dumplfs/dumplfs.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r 130be3910512 -r 896f8659bfeb usr.sbin/dumplfs/dumplfs.c
--- a/usr.sbin/dumplfs/dumplfs.c Sun May 02 00:18:31 1999 +0000
+++ b/usr.sbin/dumplfs/dumplfs.c Sun May 02 00:26:01 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dumplfs.c,v 1.12 1998/09/11 21:22:53 pk Exp $ */
+/* $NetBSD: dumplfs.c,v 1.13 1999/05/02 00:26:01 perseant Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -45,7 +45,7 @@
#if 0
static char sccsid[] = "@(#)dumplfs.c 8.5 (Berkeley) 5/24/95";
#else
-__RCSID("$NetBSD: dumplfs.c,v 1.12 1998/09/11 21:22:53 pk Exp $");
+__RCSID("$NetBSD: dumplfs.c,v 1.13 1999/05/02 00:26:01 perseant Exp $");
#endif
#endif /* not lint */
@@ -162,10 +162,11 @@
lfs_sb1.lfs_sboffs[1] << daddr_shift, &(lfs_sb2.lfs_dlfs), sizeof(struct dlfs));
lfs_master = &lfs_sb1;
- if (lfs_sb1.lfs_tstamp < lfs_sb2.lfs_tstamp)
+ if (lfs_sb1.lfs_tstamp > lfs_sb2.lfs_tstamp) {
lfs_master = &lfs_sb2;
+ }
- (void)printf("Master Superblock:\n");
+ (void)printf("Master Superblock at 0x%x:\n", (lfs_master==&lfs_sb1 ? (LFS_LABELPAD>>daddr_shift) : lfs_sb1.lfs_sboffs[1]));
dump_super(lfs_master);
dump_ifile(fd, lfs_master, do_ientries);
Home |
Main Index |
Thread Index |
Old Index