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 Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to