Linux ATA/IDE development
 help / color / mirror / Atom feed
From: Pat LaVarre <p.lavarre@ieee.org>
To: Leon Woestenberg <leonw@mailcan.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: IDE layer adoptations that *fake* a failing drive?
Date: 14 May 2004 17:17:24 -0600	[thread overview]
Message-ID: <1084576644.3084.92.camel@patibmrh9> (raw)

> code that sits between the IDE software layer and
> the storage device, that emulates a failing disk
> in one way or another.

I guess you want intermittent and unreliable failure ... else you could
swap in an ATAPI drive, since ATAPI protocol by definition looks like a
dead ATA drive.

Like you, I want to eject errors and timeouts, please post back here
what you find.  Meanwhile, three thoughts:

1) Read errors

Via ATA pass thru you can force a read error, if your drive supports the
write/ read long legacy of ATA 2 for that purpose.

2) No-data timeouts

Via 48-bit lba ATA you can force a slow timeout by asking to verify
xFFFF lba's = 32 MiB = (1 << (16+9)) bytes, at 512 = x200 = (1 << 9)
bytes/lba, if you drive actually does verify blocks when asked.

3) Write errors, data timeouts, etc.

Tough, without customarily proprietary knowledge of the drive.

Pat LaVarre



             reply	other threads:[~2004-05-14 23:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-14 23:17 Pat LaVarre [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-05-14 20:50 IDE layer adoptations that *fake* a failing drive? Leon Woestenberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1084576644.3084.92.camel@patibmrh9 \
    --to=p.lavarre@ieee.org \
    --cc=leonw@mailcan.com \
    --cc=linux-ide@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox