Hi !
> 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
The fact that I got 0:0 might come from the fact that I am far from
being an expert in coding. I don't know if the technique I use to
print out blkdev is correct. I just saw that there was a macro in
linux/kdev_t.h to sprintf dev_t objects. I just mimicked this to write
the line. If it turns out that this is not the good way, please tell
me and I will try what you propose.
Cédric
On 3/26/07, Rafael J. Wysocki <[EMAIL PROTECTED]> wrote:
> > > > 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
>
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/suspend-devel