🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #11226

Re: CreateFile and ReadFile

#11226
From: Andrue Cope
Date: Fri, 20 Feb 2004 13:34
22 lines
1951 bytes
On Fri, 20 Feb 2004 21:05:11 +0800, ray wrote:

> i need to test the relibility of this USB flash disk (so need byte-byte
> access the disk).

Oh well for testing purposes you can just read/write in blocks. The only
difference testing byte-by-byte would make is more function calls. Some
devices will cache at the track level anyway (any modern disk would) but
I'm not sure about flash memory.

I would suggest a program to dump known data to each block then read it
back to test it. Invert the data and repeat. If you search the web you
should also find test patterns that are known to stress certain types of
storage media.

For a hard disk I can't see the point in the specific test pattern unless
you are a disk manufacturer but for flash memory it's not an unreasonable
thing to try ISTM. If you're lucky the manufacturer might even be able to
supply one.
-- 
Andrue Cope
[Bicester UK]
Technical Details
Message-ID: <l52qpbhp7lwy.1wdrj2fkltkg8$.dlg@40tude.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4034e792$1@newsgroups.borland.com> <ih67f05a4bzf.1w8m6acs1eu0e.dlg@40tude.net> <4034fbe4$1@newsgroups.borland.com> <7aeaoh9a6g9g.15gt18x45vjm.dlg@40tude.net> <40360608$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,a2e178d9fedcf99e
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-02-20 05:40:37 PST
From: Andrue Cope <no.spam@spammy.com>
Subject: Re: CreateFile and ReadFile
Newsgroups: borland.public.cppbuilder.nativeapi
User-Agent: 40tude_Dialog/2.0.10.1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
References: <4034e792$1@newsgroups.borland.com> <ih67f05a4bzf.1w8m6acs1eu0e.dlg@40tude.net> <4034fbe4$1@newsgroups.borland.com> <7aeaoh9a6g9g.15gt18x45vjm.dlg@40tude.net> <40360608$1@newsgroups.borland.com>
Date: Fri, 20 Feb 2004 13:34:05 +0000
Message-ID: <l52qpbhp7lwy.1wdrj2fkltkg8$.dlg@40tude.net>
NNTP-Posting-Host: 217.207.223.34
X-Trace: newsgroups.borland.com 1077284064 217.207.223.34 (20 Feb 2004 05:34:24 -0800)
Lines: 22
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail