Re: [PATCH -mm 4/6] swsusp: Add resume_offset command line parameter

From: Rafael J. Wysocki
Date: Tue Sep 26 2006 - 16:11:47 EST


On Tuesday, 26 September 2006 21:38, Andrew Morton wrote:
> On Sat, 23 Sep 2006 12:08:25 +0200
> "Rafael J. Wysocki" <rjw@xxxxxxx> wrote:
>
> > 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.
>
> Is this description correct?

Yes, it is. Please have a look at setup_swap_extents(). :-)

> I think it's in 512-byte units?

Well, no.

> It certainly should be - a filesytem could start the swapfile at any
> sector_t.

If I understand the code correctly, it looks for the first page-aligned
continuous region that contains as many blocks as to hold at least one
page.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/