diff options
author | David Young <dyoung@hdfgroup.org> | 2019-12-18 21:50:29 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2019-12-18 21:50:29 (GMT) |
commit | f0a01e6915688797a33752ede1a347e54a046e82 (patch) | |
tree | 54f7dce0b4eeab06b6a19cb3eb83ea6e9d07b740 /src/H5MV.c | |
parent | 3455c4031ec212596ee7fd6c704ebed02ddf1da6 (diff) | |
download | hdf5-f0a01e6915688797a33752ede1a347e54a046e82.zip hdf5-f0a01e6915688797a33752ede1a347e54a046e82.tar.gz hdf5-f0a01e6915688797a33752ede1a347e54a046e82.tar.bz2 |
Allocate regionsin the shadow file of page size or greater size with page
alignment. The VFD SWMR code had always assumed that the regions were aligned
to page size. It would blithely round the start addresses of regions to the
next lower page. When the region was freed, the freespace manager (H5MV) would
suffer an assertion or corruption.
Diffstat (limited to 'src/H5MV.c')
-rw-r--r-- | src/H5MV.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -125,7 +125,7 @@ H5MV__create(H5F_t *f) fs_create.max_sect_addr = 1 + H5VM_log2_gen((uint64_t)f->shared->maxaddr); fs_create.max_sect_size = f->shared->maxaddr; - if(NULL == (f->shared->fs_man_md = H5FS_create(f, NULL, &fs_create, NELMTS(classes), classes, f, H5MV_FSPACE_ALIGN_DEF, H5MV_FSPACE_THRHD_DEF))) + if(NULL == (f->shared->fs_man_md = H5FS_create(f, NULL, &fs_create, NELMTS(classes), classes, f, f->shared->fs_page_size, f->shared->fs_page_size))) HGOTO_ERROR(H5E_RESOURCE, H5E_CANTINIT, FAIL, "can't initialize free space info") /* Set the state for the free space manager to "open", if it is now */ |