From: Alan Cox <alan@redhat.com>
To: Douglas Gilbert <dougg@torque.net>
Cc: Alan Cox <alan@redhat.com>,
jgarzik@pobox.com, linux-scsi@vger.kernel.org
Subject: Re: Prototype SATA -> SCSI error mapper
Date: Tue, 17 Aug 2004 07:57:59 -0400 [thread overview]
Message-ID: <20040817115759.GE3204@devserv.devel.redhat.com> (raw)
In-Reply-To: <4121D0DE.5070307@torque.net>
On Tue, Aug 17, 2004 at 07:33:18PM +1000, Douglas Gilbert wrote:
> Alan,
> With a MEDIUM or HARDWARE ERROR if you know the LBA of
> the failure, then that value can be placed in the
> (fixed format) sense buffer.
>
> if (LBA_of_failure_known) {
> sb[0] |= 0x80; /* set VALID bit */
> sb[3] = msb_of_LBA; /* put LBA in INFORMATION field */
> sb[4] = umb_of_LBA;
> sb[5] = lmb_of_LBA;
> sb[6] = lsb_of_LBA;
> }
Ok I'll add that, the LBA28/48 fail sector is in the taskfile at this
point.
next prev parent reply other threads:[~2004-08-17 11:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-16 14:12 Prototype SATA -> SCSI error mapper Alan Cox
2004-08-17 9:33 ` Douglas Gilbert
2004-08-17 11:57 ` Alan Cox [this message]
2004-08-18 5:56 ` Jeff Garzik
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=20040817115759.GE3204@devserv.devel.redhat.com \
--to=alan@redhat.com \
--cc=dougg@torque.net \
--cc=jgarzik@pobox.com \
--cc=linux-scsi@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;
as well as URLs for NNTP newsgroup(s).