[Bug 554009] Re: Resume from disk (swapfile) fails
Moreno Bartalucci
moreno.bartalucci at tecnorama.it
Mon May 3 06:13:16 UTC 2010
Hello,
yes, PAGE_SIZE was one of my concerns too.
I just borrowed those few lines from karmic's resume script, assuming they were correct.
In the meantime I got blkid source code and I made a small program which does the same (check the device and prints the 'type' field) getting the page size from the system through the getpagesize() function.
For some reason, anyway, it works in my system but it doesn't work in the initramfs environment yet.
I need to investigate further on this.
I attach this small program so you can have a view on it.
I'll try to further reduce it and to check why it is not working in the initramfs.
It's usage is: probe devname offset
Offset can be provided or not (if not it assumes offset=0).
It does the calculation getting the page size using getpagesize().
** Attachment added: "Small prog to check and print the type of a block device."
http://launchpadlibrarian.net/47464961/probe.c
--
Resume from disk (swapfile) fails
https://bugs.launchpad.net/bugs/554009
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to initramfs-tools in ubuntu.
More information about the kernel-bugs
mailing list