diff options
Diffstat (limited to 'scripts/lib/wic')
-rw-r--r-- | scripts/lib/wic/filemap.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/lib/wic/filemap.py b/scripts/lib/wic/filemap.py index 4d9da28172..85b39d5d74 100644 --- a/scripts/lib/wic/filemap.py +++ b/scripts/lib/wic/filemap.py | |||
@@ -46,6 +46,13 @@ def get_block_size(file_obj): | |||
46 | bsize = stat.st_blksize | 46 | bsize = stat.st_blksize |
47 | else: | 47 | else: |
48 | raise IOError("Unable to determine block size") | 48 | raise IOError("Unable to determine block size") |
49 | |||
50 | # The logic in this script only supports a maximum of a 4KB | ||
51 | # block size | ||
52 | max_block_size = 4 * 1024 | ||
53 | if bsize > max_block_size: | ||
54 | bsize = max_block_size | ||
55 | |||
49 | return bsize | 56 | return bsize |
50 | 57 | ||
51 | class ErrorNotSupp(Exception): | 58 | class ErrorNotSupp(Exception): |