imgutils fixup: 512kb default overhead for vfat

This commit is contained in:
Will Woods 2011-05-11 12:50:35 -04:00
parent 18279ba4c5
commit a66c877949

View File

@ -142,7 +142,7 @@ def estimate_size(rootdir, fstype=None, blocksize=4096, overhead=1024):
if fstype == "btrfs":
overhead = 64*1024 # don't worry, it's all sparse
if fstype in ("vfat", "msdos"):
overhead = 32
overhead = 128
getsize = lambda f: os.stat(f).st_size # no symlinks, count as copies
total = overhead*blocksize
for root, dirs, files in os.walk(rootdir):