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.

Can you please post your suspend.conf?

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

Reply via email to