diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2007-07-21 05:59:03 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2007-07-21 05:59:03 (GMT) |
commit | d9cbd866d906296a02bd7065fd693483926f84c7 (patch) | |
tree | 3343a4a3feb3dee80ad1db9e05fabfb0169f276a /src | |
parent | 8aa6ca14bb84f0c7d3ebbda7851c1d727355c5ad (diff) | |
download | hdf5-d9cbd866d906296a02bd7065fd693483926f84c7.zip hdf5-d9cbd866d906296a02bd7065fd693483926f84c7.tar.gz hdf5-d9cbd866d906296a02bd7065fd693483926f84c7.tar.bz2 |
[svn-r13993] Description:
Correct error for checking whether an object in a file can be
extended when there are no free lists maintained by the VFD.
Tested on:
FreeBSD/32 6.2 (duty) w/check-vfd
Diffstat (limited to 'src')
-rw-r--r-- | src/H5FD.c | 26 |
1 files changed, 14 insertions, 12 deletions
@@ -2736,19 +2736,21 @@ H5FD_can_extend(const H5FD_t *file, H5FD_mem_t type, haddr_t addr, hsize_t size, } /* end else */ /* Scan through the existing blocks for the mapped type to see if we can extend one */ - curr = file->fl[mapped_type]; - end = addr + size; - while(curr != NULL) { - if(end == curr->addr) { - if(extra_requested <= curr->size) - HGOTO_DONE(TRUE) - else - HGOTO_DONE(FALSE) - } /* end if */ + if(mapped_type >= H5FD_MEM_DEFAULT) { + curr = file->fl[mapped_type]; + end = addr + size; + while(curr != NULL) { + if(end == curr->addr) { + if(extra_requested <= curr->size) + HGOTO_DONE(TRUE) + else + HGOTO_DONE(FALSE) + } /* end if */ - /* Advance to next node in list */ - curr=curr->next; - } /* end while */ + /* Advance to next node in list */ + curr=curr->next; + } /* end while */ + } /* end if */ } /* end else */ done: |