lkml.org 
[lkml]   [2006]   [Sep]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH -mm 5/6] mm: Print first block offset for swap areas
Date
On Tuesday, 26 September 2006 21:39, Andrew Morton wrote:
> On Sat, 23 Sep 2006 12:10:54 +0200
> "Rafael J. Wysocki" <rjw@sisk.pl> wrote:
>
> > In order to use a swap file with swsusp we need to know the offset at which
> > its swap header is located. However, the swap header is always located in the
> > first page block of the swap file and it's quite easy to make sys_swapon() print
> > the offset of the swap file's (or swap partition's) first page block.
>
> Why is this needed? The swapfile's pathname is present in /proc/swaps, so
> an application can read that, do the FIBMAP and rewrite grub.conf without
> needing to parse dmesg?

Well, this is not needed, but it's useful if you have no such application and
want to set up things manually. ;-)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-09-26 22:15    [W:0.052 / U:0.444 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site