On Sat, 3 Feb 2007 23:52:18 +0100 "Rafael J. Wysocki" <[EMAIL PROTECTED]> wrote:
> Hi, > > On Saturday, 3 February 2007 23:10, Tim Dijkstra wrote: > > Hi, > > > > I'm testing to see if I can suspend/resume using a swap file. I have > > created a swap file on one of my (lvm) partitions and have the > > the following lines in my config file (which I got with swap-offset): > > > > resume device = /dev/mapper/vg_cs-local > > resume offset = 12979490 > > > > s2disk refuses to suspend however, because in the function > > > > static inline int set_swap_file(int dev, dev_t blkdev, loff_t offset) > > . > > . > > error = ioctl(dev, SNAPSHOT_SET_SWAP_AREA, &swap); > > > > Sets errno to 25. > > This is ENOTTY, so it means that the kernel doesn't implement the call. Yes, that's what I figured. > > This is on a 2.6.19.2 kernel btw. Am I doing something wrong? > > Sorry, my fault (memory doesn't serve me right, apparently). The support > for swap files will be included in 2.6.20 for the first time. Currently it's > only in -mm and -rc kernels. OK, no problem. That's what I thought, I was a bit to lazy to grep to the changelog;) grts Tim ------------------------------------------------------------------------- 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