Re: Flames over -- Re: Which is simpler?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux