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 suspend: Could not use the resume device (try swapon -a) zsh: exit 22 sudo s2both % ls -l /dev/hda3 brw-rw---- 1 root disk 3, 3 2007-03-25 14:46 /dev/hda3 kind regards, Cédric ------------------------------------------------------------------------- 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