Changeset ab579fa in mainline for tools/mkfat.py
- Timestamp:
- 2008-11-03T23:36:45Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6c71a1f
- Parents:
- a6d97fb9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/mkfat.py
ra6d97fb9 rab579fa 56 56 canon = os.path.join(root, name) 57 57 58 if (os.path.isfile(canon) ):58 if (os.path.isfile(canon) and (not name in exclude_names)): 59 59 size += align_up(os.path.getsize(canon), cluster_size) 60 60 files += 1 61 61 62 if (os.path.isdir(canon) ):62 if (os.path.isdir(canon) and (not name in exclude_names)): 63 63 size += subtree_size(canon, cluster_size, dirent_size) 64 64 files += 1 … … 354 354 355 355 fat16_clusters = 4096 356 min_cluster_size = 1024357 356 358 357 sector_size = 512 … … 366 365 size = subtree_size(path, cluster_size, dirent_size) + reserved_clusters * cluster_size 367 366 while (size / cluster_size < fat16_clusters): 368 if (cluster_size > min_cluster_size):367 if (cluster_size > sector_size): 369 368 cluster_size /= 2 370 369 size = subtree_size(path, cluster_size, dirent_size) + reserved_clusters * cluster_size
Note:
See TracChangeset
for help on using the changeset viewer.