lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20060921221058.GM26683@redhat.com>
Date:	Thu, 21 Sep 2006 18:10:58 -0400
From:	Dave Jones <davej@...hat.com>
To:	Pavel Machek <pavel@....cz>
Cc:	"Rafael J. Wysocki" <rjw@...k.pl>, Andrew Morton <akpm@...l.org>,
	LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH -mm 5/6] mm: Print first block offset for swap areas

On Thu, Sep 21, 2006 at 11:32:53PM +0200, Pavel Machek wrote:
 > On Wed 2006-09-20 21:54:38, Rafael J. Wysocki 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 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 block.
 > > 
 > > Signed-off-by: Rafael J. Wysocki <rjw@...k.pl>
 > 
 > ACK.
 > 
 > (main point of this is that it changes user-visible printk, but that's
 > probably okay, and way better than changing /proc files...)

As a user-interface, "read the number from dmesg that swapon printk'd
and add that to your boot command line" is pretty damned awful.
It means that it's next to impossible for a distro installer to
support suspend-to-swapfile.  It's also incredibly fragile to rely
on that file always remaining in that part of the disk.

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ