diff options
author | Ryo Nakamura <upa@haeena.net> | 2024-04-26 18:05:12 +0900 |
---|---|---|
committer | Ryo Nakamura <upa@haeena.net> | 2024-04-26 23:44:46 +0900 |
commit | 01fe30efc75c035c9815c830d9310e460b6d3497 (patch) | |
tree | e10df813c89e051580b5079ed00bbaa6d8cf00ec /src/mscp.c | |
parent | 61199acc7b5b3d8c7b20e27ee6baade2a4eaa489 (diff) |
remove limitation that min/max chunk size must be a multiple of page size
Also mentioned by Issue #20.
Diffstat (limited to 'src/mscp.c')
-rw-r--r-- | src/mscp.c | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -158,23 +158,8 @@ static int validate_and_set_defaut_params(struct mscp_opts *o) if (o->min_chunk_sz == 0) o->min_chunk_sz = DEFAULT_MIN_CHUNK_SZ; - else { - if (o->min_chunk_sz < getpagesize() || - o->min_chunk_sz % getpagesize() != 0) { - priv_set_errv("min chunk size must be " - "larget than and multiple of page size %d: %lu", - getpagesize(), o->min_chunk_sz); - return -1; - } - } if (o->max_chunk_sz) { - if (o->max_chunk_sz < getpagesize() || - o->max_chunk_sz % getpagesize() != 0) { - priv_set_errv("min chunk size must be larget than and " - "multiple of page size %d: %lu", - getpagesize(), o->max_chunk_sz); - } if (o->min_chunk_sz > o->max_chunk_sz) { priv_set_errv("smaller max chunk size than " "min chunk size: %lu < %lu", |