On Monday, 30 October 2006 12:08, Stefan Seyfried wrote: > On Mon, Oct 30, 2006 at 11:57:47AM +0100, Rafael J. Wysocki wrote: > > On Monday, 30 October 2006 09:37, Stefan Seyfried wrote: > > > On Mon, Oct 30, 2006 at 12:20:50AM +0100, Rafael J. Wysocki wrote: > > > > Hi, > > > > > > > > Unfortunately in its current form s2disk causes the access time of the > > > > resume > > > > device special file to be updated after the suspend image has been > > > > created, > > > > which is potentially dangerous. > > > > > > > > We can fix this by mounting a tmpfs, creating the special device file > > > > on it > > > > and using this file for the suspend, which is done in the appended > > > > patch. > > > > > > But the access time of the device on the tmpfs will also be corrupt, and > > > the > > > kernel may go "boom" when unmounting that tmpfs (just theoretical, but > > > maybe > > > the cure is worse than the disease)? > > > > No. tmpfs is in RAM. ;-) > > Well, but if some data structures are different than the tmpfs driver thinks > they are, the kernel could oops/panic at umount, couldn't it?
Yes, it could, but they won't be. After a successful resume the tmpfs will be in the same state as before the suspend, won't it? [The problem with disk filesystems is they tend to preserve data across the suspend-resume cycle. ;-)] > And today, /dev/ is on tmpfs also :-) Well, I tested this on a box with /dev/ on ext3. ;-) -- You never change things by fighting the existing reality. R. Buckminster Fuller ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Suspend-devel mailing list Suspend-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/suspend-devel