NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/57921: swapon: Do not overwrite Linux swap header



The following reply was made to PR bin/57921; it has been noted by GNATS.

From: Jason Thorpe <thorpej%me.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: gnats-admin%netbsd.org@localhost,
 netbsd-bugs%netbsd.org@localhost,
 rbranco%suse.de@localhost
Subject: Re: bin/57921: swapon: Do not overwrite Linux swap header
Date: Sat, 10 Feb 2024 13:43:10 -0800

 > On Feb 10, 2024, at 12:40=E2=80=AFPM, matthew green <mrg%eterna23.net@localhost> =
 wrote:
 >=20
 > i'm confused.  we skip the first PAGE_SIZE bytes on block devices,
 > ie, any mbr or gpt accessed for this would be a block device.
 
 Wait, what?  Why would we do this?  The block device specified for swap =
 should be a partition, I don=E2=80=99t see any reason whatsoever to skip =
 any part of a partition assigned swap duty.
 
 -- thorpej
 


Home | Main Index | Thread Index | Old Index