From 268b626483cc4b3953f3ef01d8a869ff9a6475c0 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Fri, 10 Dec 2010 12:57:56 -0800 Subject: [PATCH] installer - Increase administrative swap size limit to 512G * Increase from 8G to 512G (which is the x86-64 default swap size limit). 8G was too small either way. Maybe the installer-enforced administrative limit should just be removed entirely. --- usr.sbin/installer/dfuibe_installer/fn_subpart_hammer.c | 8 ++++++-- usr.sbin/installer/dfuibe_installer/fn_subpart_ufs.c | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/usr.sbin/installer/dfuibe_installer/fn_subpart_hammer.c b/usr.sbin/installer/dfuibe_installer/fn_subpart_hammer.c index 58dacbe620..e56146b1b1 100644 --- a/usr.sbin/installer/dfuibe_installer/fn_subpart_hammer.c +++ b/usr.sbin/installer/dfuibe_installer/fn_subpart_hammer.c @@ -437,8 +437,12 @@ check_subpartition_selections(struct dfui_response *r, struct i_fn_args *a) valid = 0; } - if ((strcasecmp(mountpoint, "swap") == 0) && (capacity > 8192)) { - inform(a->c, _("Swap capacity is limited to 8G.")); + /* + * Maybe remove this limit entirely? + */ + if ((strcasecmp(mountpoint, "swap") == 0) && + (capacity > 512*1024)) { + inform(a->c, _("Swap capacity is limited to 512G.")); valid = 0; } diff --git a/usr.sbin/installer/dfuibe_installer/fn_subpart_ufs.c b/usr.sbin/installer/dfuibe_installer/fn_subpart_ufs.c index 1ce77ba38c..417e296c95 100644 --- a/usr.sbin/installer/dfuibe_installer/fn_subpart_ufs.c +++ b/usr.sbin/installer/dfuibe_installer/fn_subpart_ufs.c @@ -448,8 +448,12 @@ check_subpartition_selections(struct dfui_response *r, struct i_fn_args *a) valid = 0; } - if ((strcasecmp(mountpoint, "swap") == 0) && (capacity > 8192)) { - inform(a->c, _("Swap capacity is limited to 8G.")); + /* + * Maybe remove this limit entirely? + */ + if ((strcasecmp(mountpoint, "swap") == 0) && + (capacity > 512*1024)) { + inform(a->c, _("Swap capacity is limited to 512G.")); valid = 0; } -- 2.41.0