lkml.org 
[lkml]   [2010]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 5/8] scsi: fix TUR error handling in sr_media_change()
Hello, Sergei.

On 12/09/2010 07:20 PM, Sergei Shtylyov wrote:
>> + /*
>> + * Media is considered to be present if TUR succeeds or fails with
>> + * sense data indicating something other than media-not-present
>> + * (ASC 0x3a).
>> + */
>> + if (!scsi_status_is_good(retval) &&
>> + (!scsi_sense_valid(sshdr) || sshdr->asc == 0x3a)) {
>> + /*
>> + * Probably not media in the device. Mark as changed, and
>
> s/not/no/

Updated patch already posted. Thanks.

--
tejun


\
 
 \ /
  Last update: 2010-12-09 19:57    [W:0.053 / U:12.764 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site