diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-06-03 17:40:17 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-06-03 17:40:17 +0200 |
commit | a07a965967f3ba44a74528f607d514502b928b17 (patch) | |
tree | 2be5eceff020769be07866aa9076eb9a3f4a73be /include | |
parent | 5a8761b4991b5ef93322666fd1d3fbea05330511 (diff) |
Cleanup: Add defines for minimum and maximum block size
This commit adds propper defines in the super block header and removes
some of the hard coded constants.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r-- | include/sqfs/super.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/sqfs/super.h b/include/sqfs/super.h index cdf8029..97ccef2 100644 --- a/include/sqfs/super.h +++ b/include/sqfs/super.h @@ -33,7 +33,10 @@ #define SQFS_VERSION_MAJOR 4 #define SQFS_VERSION_MINOR 0 #define SQFS_DEVBLK_SIZE 4096 -#define SQFS_DEFAULT_BLOCK_SIZE 131072 + +#define SQFS_MIN_BLOCK_SIZE (4 * 1024) +#define SQFS_MAX_BLOCK_SIZE (1024 * 1024) +#define SQFS_DEFAULT_BLOCK_SIZE (128 * 1024) /** * @struct sqfs_super_t |