On Tue, 14 Feb 2006, Rafael J. Wysocki wrote:
> > Remember that it's always a bad idea to unplug a disk drive containing a
> > mounted filesystem. With USB that's true even when your system is asleep!
> > The safest thing is to unmount all USB-based filesystems before suspending
> > and remount them after resuming.
>
> Still, this may be impossible if the box is suspending because of its
> battery running critical.
Yes. When there's nothing you can do... do nothing. :-)
> I'm afraid this behavior will cause support problems to appear in the long
> run. [BTW, I wonder if it's USB-only, or some other subsystems behave
> in a similar way, like ieee1394 or external SATA. And how about
> NFS/CIFS/whatever network filesystems mounted on the suspending box?]
Some networked filesystems may have this problem, for instance, if they
rely on some sort of keep-alive to maintain a connection. I don't know
anything about 1394 or SATA.
> I think one solution to consider could be to add an abstract fs layer
> on top of the removable filesystem, like subfs in SuSE, with the ability
> to retain the user information accross device disconnects and to update
> the fs state from the actual device when it reappears in the system and
> to resolve possible conflicts (to a reasonable extent).
Maybe. To me this seems an unavoidable policy decision that should be
settled by one of the big Linux panjandrums. Maybe someone can convince
Andrew (or even Linus) to offer a ruling...
> > I'm not aware of any warnings about this in the documentation. If you
> > would like to add something, please go ahead.
>
> I'm going to do this. Can I use your explanation above?
Feel free to use it.
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]