lkml.org 
[lkml]   [2007]   [Apr]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: USB: on suspend to ram/disk all usb devices are replugged
Hi!

> > But you're still likely to run into trouble if you unplug a storage
> > device, move it to another system and write on it, then plug it back into
> > the original system. The PLVM would somehow have to recognize that the
> > data had been changed. I don't know a foolproof way of doing that.
> >
>
> Mark the filesystem as in-use with a one-time UUID in the superblock at
> mount time. If one moved the drive to another system it would require
> an fsck to clear the UUID before the other system could use it; then
> the original machine would refuse to use the drive when the UUID didn't
> match on resume.

You still need fs-specific code, I'm afraid... plus userland tool
to reset signatures back.

Patches welcome.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-
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: 2007-04-06 16:23    [W:0.088 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site