installer - Increase administrative swap size limit to 512G
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 10 Dec 2010 20:57:56 +0000 (12:57 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 10 Dec 2010 20:57:56 +0000 (12:57 -0800)
* 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
usr.sbin/installer/dfuibe_installer/fn_subpart_ufs.c

index 58dacbe..e56146b 100644 (file)
@@ -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;
                }
 
index 1ce77ba..417e296 100644 (file)
@@ -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;
                }