Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
2d202024
Commit
2d202024
authored
Mar 21, 2006
by
Alan Cox
Committed by
Jeff Garzik
Mar 21, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] libata: pick a less confusion "um dunno" error
Signed-off-by:
Jeff Garzik
<
jeff@garzik.org
>
parent
b6782728
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
drivers/scsi/libata-scsi.c
drivers/scsi/libata-scsi.c
+5
-7
No files found.
drivers/scsi/libata-scsi.c
View file @
2d202024
...
...
@@ -511,13 +511,11 @@ void ata_to_sense_error(unsigned id, u8 drv_stat, u8 drv_err, u8 *sk, u8 *asc,
printk
(
KERN_WARNING
"ata%u: no sense translation for status: 0x%02x
\n
"
,
id
,
drv_stat
);
/* For our last chance pick, use medium read error because
* it's much more common than an ATA drive telling you a write
* has failed.
*/
*
sk
=
MEDIUM_ERROR
;
*
asc
=
0x11
;
/* "unrecovered read error" */
*
ascq
=
0x04
;
/* "auto-reallocation failed" */
/* We need a sensible error return here, which is tricky, and one
that won't cause people to do things like return a disk wrongly */
*
sk
=
ABORTED_COMMAND
;
*
asc
=
0x00
;
*
ascq
=
0x00
;
translate_done:
printk
(
KERN_ERR
"ata%u: translated ATA stat/err 0x%02x/%02x to "
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment