lkml.org 
[lkml]   [2006]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Flames over -- Re: Which is simpler?
On Tue, 14 Feb 2006, Kyle Moffett wrote:

> For the software-suspend/no-low-power-mode case, I see a couple of
> practical and spec-conforming options:
>
> 1) The kernel should notice that it has a filesystem mounted from a
> hotpluggable block device and abort the suspend process. This isn't
> terribly user friendly, but is guaranteed to prevent data loss, and a
> good set of suspend scripts could notice the reason for failure and
> report it to the user (optionally unmounting the filesystems
> automatically and retrying).
...

There are some difficulties connected with these suggestions. They're
maybe not impossible, but it would be tricky.

For one thing, how does one go about telling at the USB level whether one
of the devices contains a mounted filesystem? Or any open file references
at all, for that matter? No doubt there's a way to do it, but I don't
know what it is.

For another, hardware behavior is very idiosyncratic. It's sometimes
possible to tell that a particular system doesn't supply suspend power to
a USB controller (because, for instance, the controller doesn't support
PCI PM or doesn't support D3hot), but this is far from reliable -- I've
seen mistakes both ways. It's not as simple as "power available during
STR, not available during STD".

Alan Stern

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-02-14 16:35    [W:0.066 / U:0.596 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site