From owner-freebsd-current@FreeBSD.ORG Fri Feb 20 10:36:39 2004 Return-Path: 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 422C116A4CE for ; Fri, 20 Feb 2004 10:36:39 -0800 (PST) Received: from mail2.speakeasy.net (mail2.speakeasy.net [216.254.0.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2596C43D2D for ; Fri, 20 Feb 2004 10:36:39 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 4387 invoked from network); 20 Feb 2004 18:36:38 -0000 Received: from dsl017-045-168.spk4.dsl.speakeasy.net (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail2.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 20 Feb 2004 18:36:38 -0000 Received: from hydrogen.funkthat.com (ylqnun@localhost.funkthat.com [127.0.0.1])i1KIaa7Y054933; Fri, 20 Feb 2004 10:36:37 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id i1KIaY4S054932; Fri, 20 Feb 2004 10:36:34 -0800 (PST) Date: Fri, 20 Feb 2004 10:36:34 -0800 From: John-Mark Gurney To: Peter Jeremy Message-ID: <20040220183634.GK85686@funkthat.com> Mail-Followup-To: Peter Jeremy , Aaron Peterson , freebsd-current@freebsd.org, ticso@cicely.de, Steve Kargl References: <9615.162.114.211.143.1077213472.squirrel@mail.alpete.com> <20040219201520.GB44313@cicely12.cicely.de> <29352.162.114.211.143.1077222503.squirrel@mail.alpete.com> <20040219204012.GA33771@troutmask.apl.washington.edu> <46490.162.114.211.143.1077223809.squirrel@mail.alpete.com> <20040220072331.GA7849@server.vk2pj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040220072331.GA7849@server.vk2pj.dyndns.org> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: freebsd-current@freebsd.org cc: ticso@cicely.de cc: Steve Kargl cc: Aaron Peterson Subject: Re: bcwipe won't wipe a block device... X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Feb 2004 18:36:39 -0000 Peter Jeremy wrote this message on Fri, Feb 20, 2004 at 18:23 +1100: > On Thu, Feb 19, 2004 at 03:50:09PM -0500, Aaron Peterson wrote: > >The output was too long I though to post back to the list from > >ktrace/kdump... you can read it here: > > > >http://www.alpete.com/bcwipe.kdump.txt > > Summary: bcwipe is trying to read 1 byte from an offset of 2^N-1. > FreeBSD no longer has block devices (since 4.0) - /dev/da0 is a > character device. Character devices can only be read in blocksize > units (typically 512 bytes for disks). You need to fix bcwipe to > handle character devices. this can be done by using the fstat call on the device node.. it will provide both the proper block size (so it'll work w/ md swap backed devices that have a 4k block size) and device size... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."