]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] swsusp: add resume_offset command line parameter
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 7 Dec 2006 04:34:12 +0000 (20:34 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:27 +0000 (08:39 -0800)
commitceb1a4ec293a99a8c72dbcb80e0c487c3bace91a
treefd3c51434298b139671f5accd42ab112a310555c
parent90c88b963980cc3bb001ef8c2061507c77aacfe8
[PATCH] swsusp: add resume_offset command line parameter

Add the kernel command line parameter "resume_offset=" allowing us to specify
the offset, in <PAGE_SIZE> units, from the beginning of the partition pointed
to by the "resume=" parameter at which the swap header is located.

This offset can be determined, for example, by an application using the FIBMAP
ioctl to obtain the swap header's block number for given file.

[akpm@osdl.org: we don't know what type sector_t is]
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/power/disk.c
kernel/power/power.h
kernel/power/swap.c