diff options
author | Chen Yu <yu.c.chen@intel.com> | 2015-05-03 22:35:05 +0800 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2015-05-05 12:31:37 -0400 |
commit | cb31ef485dd4c6a205d1064b42027f82076d00c8 (patch) | |
tree | fbd2bd34a8ff0fd7990dea514098f304396815b2 /lib/kasprintf.c | |
parent | c0403ec0bb5a8c5b267fb7e16021bec0b17e4964 (diff) | |
download | linux-cb31ef485dd4c6a205d1064b42027f82076d00c8.tar.bz2 |
init: fix regression by supporting devices with major:minor:offset format
Commit 283e7ad02 ("init: stricter checking of major:minor root=
values") was so strict that it exposed the fact that a previously
unknown device format was being used.
Distributions like Ubuntu uses klibc (rather than uswsusp) to resume
system from hibernation. klibc expressed the swap partition/file in
the form of major:minor:offset. For example, 8:3:0 represents a swap
partition in klibc, and klibc's resume process in initrd will finally
echo 8:3:0 to /sys/power/resume for manually resuming. However, due
to commit 283e7ad02's stricter checking, 8:3:0 will be treated as an
invalid device format, and manual resuming from hibernation will fail.
Fix this by adding support for devices with major:minor:offset format
when resuming from hibernation.
Reported-by: Prigent, Christophe <christophe.prigent@intel.com>
Signed-off-by: Chen Yu <yu.c.chen@intel.com>
Acked-by: Rafael J. Wysocki <rjw@rjwysocki.net>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'lib/kasprintf.c')
0 files changed, 0 insertions, 0 deletions