Hello, Please accept the attached patch which increases partition size padding from 2% to 3% for non-ext2/3 filesystems and prevents rounding down that can occur due to expr's lack of support for floating point arithmetic. These changes have fixed issues we were experiencing with the filesystem getting corrupted due to being truncated.
Cheers, -- Cody A.W. Somerville Software Systems Release Engineer Foundations Team Custom Engineering Solutions Group Canonical OEM Services Phone: +1-781-850-2087 Cell: +1-506-471-8402 Email: cody.somervi...@canonical.com
=== modified file 'functions/losetup.sh' --- functions/losetup.sh 2009-07-08 16:04:38 +0000 +++ functions/losetup.sh 2009-10-04 05:06:35 +0000 @@ -44,9 +44,9 @@ PERCENT="5" ;; *) - PERCENT="2" + PERCENT="3" ;; esac - echo $(expr ${ORIGINAL_SIZE} + ${ORIGINAL_SIZE} \* ${PERCENT} / 100) + echo $(expr ${ORIGINAL_SIZE} + ${ORIGINAL_SIZE} \* ${PERCENT} / 100 + 1) }