summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/DiskImage.hs
diff options
context:
space:
mode:
authorJoey Hess2015-10-23 12:04:03 -0400
committerJoey Hess2015-10-23 12:04:03 -0400
commit72f956788ef144a3a516e759335d2e7fbc6931ec (patch)
tree0d0569dce6c6dfa9f4d9da11de4985b89c90d13d /src/Propellor/Property/DiskImage.hs
parent02faa876dbf3000fb091be6a4a3ab5b6a26ed028 (diff)
propellor spin
Diffstat (limited to 'src/Propellor/Property/DiskImage.hs')
-rw-r--r--src/Propellor/Property/DiskImage.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Propellor/Property/DiskImage.hs b/src/Propellor/Property/DiskImage.hs
index b6cfbc1a..19c3a545 100644
--- a/src/Propellor/Property/DiskImage.hs
+++ b/src/Propellor/Property/DiskImage.hs
@@ -227,9 +227,10 @@ defSz = MegaBytes 128
-- Add 2% for filesystem overhead. Rationalle for picking 2%:
-- A filesystem with 1% overhead might just sneak by as acceptable.
-- Double that just in case. Add an additional 3 mb to deal with
--- non-scaling overhead, of filesystems (eg, superblocks).
+-- non-scaling overhead of filesystems (eg, superblocks).
+-- Add an additional 100 mb for temp files etc.
fudge :: PartSize -> PartSize
-fudge (MegaBytes n) = MegaBytes (n + n `div` 100 * 2 + 3)
+fudge (MegaBytes n) = MegaBytes (n + n `div` 100 * 2 + 3 + 100)
-- | Specifies a mount point and a constructor for a Partition.
--