Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/lfs_cleanerd Don't qsort() by the segcreate field. ...
details: https://anonhg.NetBSD.org/src/rev/766c18bf8fd6
branches: trunk
changeset: 501908:766c18bf8fd6
user: joff <joff%NetBSD.org@localhost>
date: Tue Jan 09 04:31:18 2001 +0000
description:
Don't qsort() by the segcreate field. Prevents potentially serious filesystem
corruption if the clock jumps backwards.
diffstat:
libexec/lfs_cleanerd/library.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (27 lines):
diff -r a99222bd4b26 -r 766c18bf8fd6 libexec/lfs_cleanerd/library.c
--- a/libexec/lfs_cleanerd/library.c Tue Jan 09 03:45:49 2001 +0000
+++ b/libexec/lfs_cleanerd/library.c Tue Jan 09 04:31:18 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: library.c,v 1.18 2001/01/04 17:29:04 lukem Exp $ */
+/* $NetBSD: library.c,v 1.19 2001/01/09 04:31:18 joff Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)library.c 8.3 (Berkeley) 5/24/95";
#else
-__RCSID("$NetBSD: library.c,v 1.18 2001/01/04 17:29:04 lukem Exp $");
+__RCSID("$NetBSD: library.c,v 1.19 2001/01/09 04:31:18 joff Exp $");
#endif
#endif /* not lint */
@@ -749,8 +749,6 @@
else
return (diff);
}
- if ((diff = (int)(ba->bi_segcreate - bb->bi_segcreate)))
- return (diff);
if ((diff = (int)(ba->bi_daddr - bb->bi_daddr)))
return (diff);
if(ba->bi_inode != LFS_IFILE_INUM)
Home |
Main Index |
Thread Index |
Old Index