Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/libexec/lfs_cleanerd Pull up revision 1.8 (requested by...



details:   https://anonhg.NetBSD.org/src/rev/892029c71ec8
branches:  netbsd-1-4
changeset: 469687:892029c71ec8
user:      he <he%NetBSD.org@localhost>
date:      Tue Nov 09 21:49:25 1999 +0000

description:
Pull up revision 1.8 (requested by perseant):
  Fix arithmetic overflow which had prevented cleaning of segments
  above the first 2GB of the file system.

diffstat:

 libexec/lfs_cleanerd/clean.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 554b27fc71ba -r 892029c71ec8 libexec/lfs_cleanerd/clean.h
--- a/libexec/lfs_cleanerd/clean.h      Mon Nov 08 07:57:32 1999 +0000
+++ b/libexec/lfs_cleanerd/clean.h      Tue Nov 09 21:49:25 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clean.h,v 1.7 1999/03/10 00:57:16 perseant Exp $       */
+/*     $NetBSD: clean.h,v 1.7.2.1 1999/11/09 21:49:25 he Exp $ */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -94,7 +94,7 @@
 #define seg_size(fs) ((fs)->lfs_ssize << (fs)->lfs_bshift)
 
 /* daddr -> byte offset */
-#define datobyte(fs, da) ((da) << (fs)->fi_daddr_shift)
+#define datobyte(fs, da) (((off_t)(da)) << (fs)->fi_daddr_shift)
 #define bytetoda(fs, byte) ((byte) >> (fs)->fi_daddr_shift)
 
 #define CLEANSIZE(fsp) (fsp->fi_lfs.lfs_cleansz << fsp->fi_lfs.lfs_bshift)



Home | Main Index | Thread Index | Old Index