today in cursed tech: swap files on linux. apparently swap files aren't handled via the VFS layer because FS might want to allocate... so to make hibernation possible, swap files are made from blocks that include raw offsets into the next block on the device (via @marcan42)
-
Show this thread
-
that's right, a swap file is a "filesystem" unto its own. you still need to find the first header though so there's a resume_offset= kernel option that tells it where to locate it so you don't need to mount the dirty hibernated filesystem horrifying how does it even work with LVM
5 replies 3 retweets 29 likesShow this thread -
Replying to @whitequark
With LVM you're supposed to have an initramfs open the volume and echo the device into some /sys file to trigger the kernel to resume. same with crypto, RAID, or any other block layer transforms.
1 reply 0 retweets 2 likes -
-
Replying to @whitequark
I imagine if you have a dirty/recovering RAID then you can activate that in read-only mode. And if you suspend/resume in the middle of a RAID re-stripe or similar the world might collapse into a black hole and it's all your fault.
1 reply 0 retweets 9 likes -
Replying to @marcan42 @whitequark
why would you hibernate a server I don't know
1 reply 0 retweets 0 likes
Hector Martin Retweeted Hector Martin
Your laptop doesn't have RAID?https://twitter.com/marcan42/status/1025992758438182912 …
Hector Martin added,
-
-
Replying to @marcan42 @whitequark
oh, I loved it I need a laptop with 2 HDDs now
0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.