From: Kyle Moffett <mrmacman_g4@mac.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Phillip Susi <psusi@cfl.rr.com>,
Alon Bar-Lev <alon.barlev@gmail.com>,
Kernel development list <linux-kernel@vger.kernel.org>
Subject: Re: Flames over -- Re: Which is simpler?
Date: Tue, 14 Feb 2006 00:11:05 -0500 [thread overview]
Message-ID: <9F9173CE-E059-433B-98AD-91084823AFDD@mac.com> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0602132317530.20628-100000@netrider.rowland.org>
On Feb 13, 2006, at 23:28, Alan Stern wrote:
> On Mon, 13 Feb 2006, Kyle Moffett wrote:
>> A good set of suspend scripts should handle the hardware-suspend
>> with no extra work because hardware supporting hardware-suspend
>> basically inevitably supports USB low-power-mode,
>
> Unfortunately a lot of hardware doesn't support USB low-power
> mode. I guess you'd say therefore it doesn't really support
> hardware-suspend. This may be so, but it's small comfort to the
> owners of those systems.
>
> I have to admit, although technically Phillip's argument is wrong,
> from a usability standpoint it is right. Windows allows users to
> disconnect and reconnect USB storage devices while the system is
> hibernating, with no apparent ill effects -- although I've never
> tried to unplug one device and then plug in a different one on the
> same port while the computer was asleep. I don't know to what
> extent Windows checks descriptors/serial numbers/disk labels/
> whatever when it wakes up.
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).
2) The kernel should notice that it has a filesystem mounted from a
hotpluggable block device and forcibly unmount said filesystem. This
is also not user-friendly, and has the disadvantage of not being
easily userspace-controllable.
3) The kernel should notice that it has a filesystem mounted from a
hotpluggable block device and forcibly disconnect the mount.
Beforehand, uswsusp would have saved information about all mounted
blockdevs into the suspend file/disk. When resuming, early userspace
would reread that information and attempt to relocate the block
devices from userspace, using any tools available to it at the time
(including a bunch of fs-probing tools and such). After it's scanned
devices and found any that it could reliably get, it would pass that
information to the kernel being resumed which would use it to
reattach filesystems to disks. This is a lot more complicated, but
more user friendly. It has the downside of making the kernel do a
lot of extra unreliable work looking up paths and files again, but it
might work in a good percentage of the cases. I doubt the advantages
of this one over (1) or (2) are worth the added complexity, though.
Cheers,
Kyle Moffett
--
Simple things should be simple and complex things should be possible
-- Alan Kay
next prev parent reply other threads:[~2006-02-14 5:11 UTC|newest]
Thread overview: 78+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-12 16:57 Alan Stern
2006-02-13 0:51 ` Phillip Susi
2006-02-13 2:19 ` Alan Stern
2006-02-13 3:52 ` Phillip Susi
2006-02-13 5:43 ` Kyle Moffett
2006-02-13 16:40 ` Phillip Susi
2006-02-13 16:31 ` Alan Stern
2006-02-13 17:14 ` Phillip Susi
2006-02-13 20:04 ` Alan Stern
2006-02-13 20:38 ` Phillip Susi
2006-02-13 21:24 ` Alan Stern
2006-02-13 22:27 ` Rafael J. Wysocki
2006-02-14 19:26 ` Alan Stern
2006-02-14 20:41 ` Rafael J. Wysocki
2006-02-14 21:08 ` Lee Revell
2006-02-15 15:56 ` Alan Stern
2006-02-13 22:51 ` J. Bruce Fields
2006-02-13 23:47 ` Phillip Susi
2006-02-14 0:50 ` Kyle Moffett
2006-02-14 2:09 ` Phillip Susi
2006-02-14 4:09 ` Kyle Moffett
2006-02-14 4:28 ` Alan Stern
2006-02-14 5:11 ` Kyle Moffett [this message]
2006-02-14 15:33 ` Alan Stern
2006-02-14 6:27 ` Phillip Susi
2006-02-14 16:23 ` Kyle Moffett
2006-02-14 18:39 ` Phillip Susi
2006-02-14 19:55 ` Kyle Moffett
2006-02-14 21:13 ` Phillip Susi
2006-02-14 23:32 ` Kyle Moffett
2006-02-15 3:08 ` Phillip Susi
2006-02-14 19:14 ` Olivier Galibert
2006-02-14 19:37 ` Phillip Susi
2006-02-17 21:04 ` Pavel Machek
2006-02-18 16:34 ` Phillip Susi
2006-02-18 17:29 ` Pavel Machek
2006-02-19 5:52 ` Phillip Susi
2006-02-19 9:02 ` Pavel Machek
2006-02-19 16:35 ` Phillip Susi
2006-02-19 16:41 ` Alan Stern
2006-02-19 19:17 ` Phillip Susi
2006-02-19 19:43 ` Pavel Machek
2006-02-20 0:56 ` Olivier Galibert
2006-02-20 1:01 ` Pavel Machek
2006-02-20 1:26 ` Olivier Galibert
2006-02-20 4:04 ` Alan Stern
2006-02-19 20:16 ` Bernd Eckenfels
2006-02-18 21:04 ` Alan Stern
2006-02-19 0:02 ` Andrew Morton
2006-02-19 6:02 ` Phillip Susi
2006-02-19 6:32 ` Andrew Morton
2006-02-19 16:39 ` Phillip Susi
2006-02-19 16:54 ` Alan Stern
2006-02-19 20:02 ` Andrew Morton
2006-02-19 20:44 ` Oliver Neukum
2006-02-19 21:02 ` Andrew Morton
2006-02-20 6:55 ` Oliver Neukum
2006-02-20 7:29 ` Andrew Morton
2006-02-20 7:57 ` Andrew Morton
2006-02-14 14:15 ` hackmiester / Hunter Fuller
2006-02-15 23:51 ` Pavel Machek
2006-02-13 2:25 ` Kyle Moffett
2006-02-13 19:16 David Brownell
2006-02-13 20:08 ` Phillip Susi
2006-02-14 3:10 ` David Brownell
2006-02-14 6:05 ` Phillip Susi
2006-02-14 17:04 ` David Brownell
2006-02-15 23:43 ` Pavel Machek
2006-02-18 20:51 ` David Brownell
2006-02-19 6:06 ` Phillip Susi
2006-02-20 5:50 ` David Brownell
2006-02-20 16:07 ` Phillip Susi
2006-02-20 16:51 ` Olivier Galibert
2006-02-20 18:20 ` Phillip Susi
2006-02-20 18:44 ` Olivier Galibert
2006-02-20 21:45 ` Phillip Susi
2006-02-21 16:19 ` David Brownell
2006-02-21 18:30 ` Phillip Susi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9F9173CE-E059-433B-98AD-91084823AFDD@mac.com \
--to=mrmacman_g4@mac.com \
--cc=alon.barlev@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=psusi@cfl.rr.com \
--cc=stern@rowland.harvard.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®