On Monday, 26 March 2007 00:29, Luca Tettamanti wrote: > On 3/25/07, Rafael J. Wysocki <[EMAIL PROTECTED]> wrote: > > On Sunday, 25 March 2007 18:13, Cédric Boutillier wrote: > > > Hi ! > > > > > > > Could you print out `blkdev'? Just to be sure, could you send the > > > > output of > > > > ls -l /dev/hda3 ? > > > > > > I didn't know exactly how to print blkdev, but I finally managed to > > > write something. > > > > > > error = ioctl(dev, SNAPSHOT_SET_SWAP_AREA, &swap); > > > printf("Error: errno = %d\n", errno); > > > if (error && !offset) { > > > error = ioctl(dev, SNAPSHOT_SET_SWAP_FILE, blkdev); > > > printf("Error: errno = %d\n", errno); > > > printf("%u:%u\n",MAJOR(blkdev),MINOR(blkdev)); > > > } > > > return error; > > > > > > I added #include <linux/kdev_t.h> Somewhere in the beginning of the > > > file. I am not sure it displays the right information though, since I > > > get the follozing warnings during the compilation: > > > > > > suspend.c:217: warning: format '%u' expects type 'unsigned int', but > > > argument 2 has type 'dev_t' > > > suspend.c:217: warning: format '%u' expects type 'unsigned int', but > > > argument 3 has type 'dev_t' > > > > > > The result is : > > > > > > % sudo s2both > > > Error: errno = 25 > > > Error: errno = 22 > > > 0:0 > > > > Hm, this shouldn't be 0:0 in any case. > > Weird... stat on the swap device would have failed. PPC is big ending, > are we doing something stupid with the device node? Code looks simple > and correct, but...
Apparently, resume_dev = 268462812 before calling set_swap_file(). I've no idea where these 0:0 come from, but I do have idea why it doesn't work. I don't know how to fix that right now, though. Greetings, Rafael ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Suspend-devel mailing list Suspend-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/suspend-devel