On 4/17/20 2:42 PM, Patrick O'Callaghan wrote:
On Fri, 2020-04-17 at 14:25 -0700, Samuel Sieb wrote:
On 4/17/20 2:11 PM, Roger Heflin wrote:
For the vg/offset to work the file must be contiguous (only 1
section/extent in the file). I don't see that mentioned in
archlinux.
I tried to find out the on-disk format for swap files, but wasn't able
to. But from the doc at
https://www.kernel.org/doc/html/latest/power/swsusp-and-swap-files.html
That does give some interesting insights. In particular, it explains
why the file has to be treated specially (because during resume, the
filesystem may not be mounted, which is what I was trying to get at
earlier). This clears up some confusion for me at least.
During resume, the filesystem *can't* be mounted. All the filesystem
state is in the hibernation image which you are trying to load. It's
one of those fun chicken and egg challenges. That's why there has to be
enough info in the swap file to locate the data without relying on
anything else.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx