Re: [ibm-acpi-devel] CONFIG_IBM_BAY

Henrique de Moraes Holschuh
2007-03-20T15:14:48Z

On Tue, 20 Mar 2007, Theodore Tso wrote:
> > The disconnect-or-not needs to be user-configurable, as the user may well
> > swap devices in the bay while the system is sleeping, AND this is supposed
> > to be a valid thing to do from a usercase PoV (earlier ThinkPad laptops only
> > had warm-swap bays, for example). So must be the powerdown, I suppose, just
> > in case.
>
> Maybe, but then the suspend mail have to fail if there are processes
> that are keeping the filesystem from being unmounted. Or the

Yes. But this is standard functionality on the suspend path, anyway.

> processes hanging out on the hard drive or CD-ROM could get all of
> their file descriptors revoked on resume, I suppose, if the bay has
> been switched out.....

Urk. It is better to either fail the suspend, or to not power down the bay.
Or to give the user a choice of which he'd rather happen. Hmm...

--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh