Page MenuHomeFreeBSD

Add a sanity check to the swap size in zfsboot of bsdinstall
ClosedPublic

Authored by allanjude on Apr 15 2015, 8:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 15 2024, 9:01 AM
Unknown Object (File)
Dec 6 2024, 11:35 AM
Unknown Object (File)
Nov 12 2024, 8:55 PM
Unknown Object (File)
Sep 28 2024, 9:48 AM
Unknown Object (File)
Sep 25 2024, 10:36 AM
Unknown Object (File)
Sep 21 2024, 8:12 AM
Unknown Object (File)
Sep 16 2024, 1:10 PM
Unknown Object (File)
Sep 8 2024, 10:27 AM
Subscribers

Details

Summary

Shawn Webb reported accidently ending up with 8kb instead of 8gb of swap
This is invalid, and obviously not what the user intended to do

Add a sanity check that does not allow less than 100mb of swap (while still allowing no swap)

MFC-After: 1 month (before 10.2)

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

allanjude retitled this revision from to Add a sanity check to the swap size in zfsboot of bsdinstall.
allanjude updated this object.
allanjude edited the test plan for this revision. (Show Details)
roberto edited edge metadata.

Looks reasonable to me.

This revision is now accepted and ready to land.Apr 15 2015, 9:34 PM
brd added a reviewer: brd.