lkml.org 
[lkml]   [2014]   [Aug]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Buffer I/O error after s2ram with usb storage
On Wed, 27 Aug 2014, Douglas Gilbert wrote:

> The unit attention doesn't look like a problem, it
> looks correct. If the system is unable to detect
> removable media being changed while the system is
> suspended, then ....
>
> If the media has a unique identifier, then this unit
> attention at wakeup should trigger sd to make sure
> that unique identifier has not changed.

Does sd have any code to do this? I'm not aware of any, but there
ought to be some. Otherwise there's no way to tell when a so-called
media change was just the old media being taken out and put back in.

Or maybe this functionality belongs in the block layer rather than in
sd.

Alan Stern



\
 
 \ /
  Last update: 2014-08-27 17:21    [W:0.065 / U:0.744 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site