Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Feb 2004 10:36:34 -0800
From:      John-Mark Gurney <gurney_j@efn.org>
To:        Peter Jeremy <peterjeremy@optushome.com.au>
Cc:        Aaron Peterson <aaron@alpete.com>
Subject:   Re: bcwipe won't wipe a block device...
Message-ID:  <20040220183634.GK85686@funkthat.com>
In-Reply-To: <20040220072331.GA7849@server.vk2pj.dyndns.org>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040220183634.GK85686>