Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/sbin/fsck_lfs Pull up revision 1.6 (requested by persea...
details: https://anonhg.NetBSD.org/src/rev/4f5537b42de2
branches: netbsd-1-6
changeset: 527686:4f5537b42de2
user: tv <tv%NetBSD.org@localhost>
date: Sun Jun 02 15:27:57 2002 +0000
description:
Pull up revision 1.6 (requested by perseant in ticket #131):
Re-checksum the superblock whenever it is marked dirty.
Tested on alpha.
diffstat:
sbin/fsck_lfs/fsck.h | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r f6ae3fa73422 -r 4f5537b42de2 sbin/fsck_lfs/fsck.h
--- a/sbin/fsck_lfs/fsck.h Sun Jun 02 15:27:45 2002 +0000
+++ b/sbin/fsck_lfs/fsck.h Sun Jun 02 15:27:57 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fsck.h,v 1.5 2000/05/23 01:48:52 perseant Exp $ */
+/* $NetBSD: fsck.h,v 1.5.8.1 2002/06/02 15:27:57 tv Exp $ */
/*
* Copyright (c) 1997
@@ -90,9 +90,12 @@
(bp)->b_bno = (daddr_t)-1; \
(bp)->b_flags = 0;
-#define sbdirty() sblk.b_dirty = 1
#define sblock (*sblk.b_un.b_fs)
#define ifblock (*iblk.b_un.b_dinode)
+#define sbdirty() do { \
+ sblk.b_dirty = 1; \
+ sblock.lfs_dlfs.dlfs_cksum = lfs_sb_cksum(&(sblock.lfs_dlfs)); \
+} while(0)
enum fixstate {
DONTKNOW, NOFIX, FIX, IGNORE
Home |
Main Index |
Thread Index |
Old Index