On Ne 22-01-06 12:11:20, Rafael J. Wysocki wrote: > Hi, > > If the SNAPSHOT_AVAIL_SWAP ioctl returns the number of bytes, it will allow us > to use the number as an input for the SNAPSHOT_SET_IMAGE_SIZE ioctl directly. > > OTOH, to make SNAPSHOT_AVAIL_SWAP return the number of bytes we need to > add the size of the image in bytes to the image header, but this really costs us > nothing, because the header is page-aligned anyway. > > The appended patch contains all the necessary changes. > > Opinions welcome. :-) ACK. BTW that "make /sys/power/image_size be in bytes" perhaps should be merged to Linus, so that 2.6.16 has final version of userland interface. It is better to change it between -rc1 and final than between 2.6.16 and 2.6.17. Thanks, Pavel -- Thanks, Sharp!