On Sun, 2020-04-19 at 00:28 +0930, Tim via users wrote: > Tim: > > > To be able to do that, it has to be able to read within a > > > filesystem by itself. There's probably only a small set of > > > filesystems it can handle. > > Samuel Sieb: > > No, you point the kernel at the offset of the header within the > > partition. The header contains pointers to the rest of the data. > > It doesn't have to know anything about the filesystem. > > Surely that'd be dependent on the entireity of the swap file being > arranged on the drive in a predictable manner. What if a swap file was > created on a system that didn't arrange all the bits so predictably? > > e.g. A swap file on an encrypted partition. Encryption of course is a possible impediment (I've no idea if this is handled as it's not of particular interest to me). However with that caveat, a header including direct pointers to each block of data in sequence would seem to be workable in theory without requiring knowledge of the filesystem's layout strategy, recalling that this data is being created by something that knows how it's going to be used. (I say that without having looked at the actual format.) poc _______________________________________________ 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