From owner-freebsd-current Sat Mar 15 1:53:11 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E80D37B401 for ; Sat, 15 Mar 2003 01:53:10 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C16843F75 for ; Sat, 15 Mar 2003 01:53:09 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.8/8.12.8) with ESMTP id h2F9r3h8017743; Sat, 15 Mar 2003 10:53:07 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: Alfred Perlstein Cc: current@freebsd.org Subject: Re: can't boot with twe anymore. From: "Poul-Henning Kamp" In-Reply-To: Your message of "Fri, 14 Mar 2003 18:22:55 PST." <20030315022255.GW4145@elvis.mu.org> Date: Sat, 15 Mar 2003 10:53:03 +0100 Message-ID: <17742.1047721983@critter.freebsd.dk> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20030315022255.GW4145@elvis.mu.org>, Alfred Perlstein writes: >Poul-Henning you promised me a patch two nights ago "within a couple >of hours" It's now going on the 36th hour since. Yeah, well, I didn't calculate with being hit by influenze :-( Can you try this one: Index: twe_compat.h =================================================================== RCS file: /home/ncvs/src/sys/dev/twe/twe_compat.h,v retrieving revision 1.6 diff -u -r1.6 twe_compat.h --- twe_compat.h 8 Mar 2003 08:01:30 -0000 1.6 +++ twe_compat.h 15 Mar 2003 09:48:46 -0000 @@ -166,7 +166,7 @@ # define TWE_BIO_LENGTH(bp) (bp)->bio_bcount # define TWE_BIO_LBA(bp) (bp)->bio_pblkno # define TWE_BIO_SOFTC(bp) (bp)->bio_disk->d_drv1 -# define TWE_BIO_UNIT(bp) (bp)->bio_disk->d_unit +# define TWE_BIO_UNIT(bp) (((struct twed_softc *)TWE_BIO_SOFTC(bp))->twed_drive->td_unit) # define TWE_BIO_SET_ERROR(bp, err) do { (bp)->bio_error = err; (bp)->bio_flags |= BIO_ERROR;} while(0) # define TWE_BIO_HAS_ERROR(bp) ((bp)->bio_flags & BIO_ERROR) # define TWE_BIO_RESID(bp) (bp)->bio_resid -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message