imgutils fixup: 512kb default overhead for vfat
This commit is contained in:
parent
18279ba4c5
commit
a66c877949
@ -142,7 +142,7 @@ def estimate_size(rootdir, fstype=None, blocksize=4096, overhead=1024):
|
|||||||
if fstype == "btrfs":
|
if fstype == "btrfs":
|
||||||
overhead = 64*1024 # don't worry, it's all sparse
|
overhead = 64*1024 # don't worry, it's all sparse
|
||||||
if fstype in ("vfat", "msdos"):
|
if fstype in ("vfat", "msdos"):
|
||||||
overhead = 32
|
overhead = 128
|
||||||
getsize = lambda f: os.stat(f).st_size # no symlinks, count as copies
|
getsize = lambda f: os.stat(f).st_size # no symlinks, count as copies
|
||||||
total = overhead*blocksize
|
total = overhead*blocksize
|
||||||
for root, dirs, files in os.walk(rootdir):
|
for root, dirs, files in os.walk(rootdir):
|
||||||
|
Loading…
Reference in New Issue
Block a user