diff options
author | phk <phk@FreeBSD.org> | 2003-08-06 14:13:38 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-08-06 14:13:38 +0000 |
commit | cd531ac81186009bb934abb04d47be82465f7205 (patch) | |
tree | ae45393d3a5b4e9c6623baee86faecb2e45a200a /sys | |
parent | 2335fa9eb3c27791e9ada6ce202bd045494c5761 (diff) | |
download | FreeBSD-src-cd531ac81186009bb934abb04d47be82465f7205.zip FreeBSD-src-cd531ac81186009bb934abb04d47be82465f7205.tar.gz |
Make the first two pages magic to protect the BSD labels rather than
only one.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/vm/swap_pager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index e6a6273..b450bf7 100644 --- a/sys/vm/swap_pager.c +++ b/sys/vm/swap_pager.c @@ -2225,10 +2225,10 @@ swaponvp(td, vp, dev, nblks) sp->sw_blist = blist_create(nblks); /* - * Do not free the first block in order to avoid overwriting + * Do not free the first two block in order to avoid overwriting * any bsd label at the front of the partition */ - blist_free(sp->sw_blist, 1, nblks - 1); + blist_free(sp->sw_blist, 2, nblks - 2); TAILQ_INSERT_TAIL(&swtailq, sp, sw_list); nswapdev++; |