From owner-freebsd-bugs Sun Aug 24 06:50:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA02194 for bugs-outgoing; Sun, 24 Aug 1997 06:50:04 -0700 (PDT) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA02188; Sun, 24 Aug 1997 06:50:01 -0700 (PDT) Date: Sun, 24 Aug 1997 06:50:01 -0700 (PDT) Message-Id: <199708241350.GAA02188@hub.freebsd.org> To: freebsd-bugs Cc: From: Bruce Evans Subject: Re: bin/4366: Submission Reply-To: Bruce Evans Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR bin/4366; it has been noted by GNATS. From: Bruce Evans To: dwhite@resnet.uoregon.edu, FreeBSD-gnats-submit@FreeBSD.ORG Cc: Subject: Re: bin/4366: Submission Date: Sun, 24 Aug 1997 23:37:57 +1000 >>Description: > > bad144 crashes after it begins checking past 2048 megabytes on a large >hard disk. Manifested when using sysinstall's 'V' option on a large disk. Try this (untested) fix. Bruce diff -c2 bad144.c~ bad144.c *** bad144.c~ Sat Dec 2 16:36:52 1995 --- bad144.c Tue Aug 19 21:13:27 1997 *************** *** 142,146 **** } ! lseek(f, curr_sec * ss, L_SET); if ((n = read(f, buf, ss)) != ss) { --- 142,146 ---- } ! lseek(f, (off_t)ss * curr_sec, SEEK_SET); if ((n = read(f, buf, ss)) != ss) {