On 11/13/20 9:35 PM, Tim via users wrote:
On Fri, 2020-11-13 at 13:16 -0500, Jonathan Billings wrote:
> In principle the location of a swap file’s header may be
> determined with the help of appropriate filesystem
> driver. Unfortunately, however, it requires the filesystem holding
> the swap file to be mounted, and if this filesystem is journaled,
> it cannot be mounted during resume from disk. For this reason to
> identify a swap file swsusp uses the name of the partition that
> holds the file and the offset from the beginning of the partition
> at which the swap file’s header is located. For convenience, this
> offset is expressed in <PAGE_SIZE> units.
Surely the absolute position of any file in a file system couldn't be
relied upon to always be the same?
Of course it can. How is it going to move around?