| Summary: | [PATCH] hibernate-resume from swap file | ||
|---|---|---|---|
| Product: | Busybox | Reporter: | Jordi Pujol <jordipujolp> |
| Component: | Standard Compliance | Assignee: | unassigned |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | busybox-cvs, jordipujolp, sven.mueller72+busybox |
| Priority: | P3 | ||
| Version: | 1.30.x | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
| Attachments: |
hibernate-resume from swap file
hibernate-resume from swap file Updated patch (Now also removed superfluous parameter to /sys/power/resume) |
||
Created attachment 8156 [details]
hibernate-resume from swap file
checking for "/sys/power/resume_offset", because oldest kernel versions doesn't have it
I'm interested in how this patch is not adopted? Created attachment 8826 [details]
Updated patch (Now also removed superfluous parameter to /sys/power/resume)
Upping Importance some. This prevents people from using hibernation with a swap file and is fixed easily with the attached patch. Applied, thank you. The additional parameter in /sys/power/resume is for compatibility with tuxonice on kernel 2.6. Modern kernel versions don't use this parameter. |
Created attachment 8131 [details] hibernate-resume from swap file klibc-utils/resume.c hibernate-resume from swap file. - write offset in /sys/power/resume_offset according to the kernel's document uswsusp.txt - Doing this the kernel will hibernate and resume successfully from a swap file.