2003-03-20 07:27:44 +08:00
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
2007-02-07 22:56:24 +08:00
|
|
|
* Copyright by The HDF Group. *
|
2003-03-20 07:27:44 +08:00
|
|
|
* Copyright by the Board of Trustees of the University of Illinois. *
|
|
|
|
* All rights reserved. *
|
|
|
|
* *
|
|
|
|
* This file is part of HDF5. The full HDF5 copyright notice, including *
|
|
|
|
* terms governing use, modification, and redistribution, is contained in *
|
|
|
|
* the files COPYING and Copyright.html. COPYING can be found at the root *
|
|
|
|
* of the source code distribution tree; Copyright.html can be found at the *
|
|
|
|
* root level of an installed copy of the electronic HDF5 document set and *
|
|
|
|
* is linked from the top-level documents page. It can also be found at *
|
2007-02-07 22:56:24 +08:00
|
|
|
* http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have *
|
|
|
|
* access to either file, you may request a copy from help@hdfgroup.org. *
|
2003-03-20 07:27:44 +08:00
|
|
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
|
|
|
|
1999-08-11 04:21:32 +08:00
|
|
|
/*
|
|
|
|
* Programmer: Robb Matzke <matzke@llnl.gov>
|
|
|
|
* Monday, July 26, 1999
|
|
|
|
*/
|
|
|
|
#ifndef _H5FDpublic_H
|
|
|
|
#define _H5FDpublic_H
|
|
|
|
|
2001-04-06 01:29:14 +08:00
|
|
|
#include "H5public.h"
|
2001-12-12 03:53:44 +08:00
|
|
|
#include "H5Fpublic.h" /*for H5F_close_degree_t */
|
2001-04-06 01:29:14 +08:00
|
|
|
|
1999-12-09 19:10:24 +08:00
|
|
|
#define H5_HAVE_VFL 1 /*define a convenient app feature test*/
|
2000-11-29 00:18:42 +08:00
|
|
|
#define H5FD_VFD_DEFAULT 0 /* Default VFL driver value */
|
1999-10-08 00:51:49 +08:00
|
|
|
|
[svn-r17313] Description:
Bring back various minor code cleanups from the file free space branch
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.5.8 (amazon) in debug mode
Mac OS X/32 10.5.8 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2009-08-11 01:08:27 +08:00
|
|
|
/* Types of allocation requests: see H5Fpublic.h */
|
|
|
|
typedef enum H5F_mem_t H5FD_mem_t;
|
2003-03-20 07:27:44 +08:00
|
|
|
|
2006-02-27 11:46:46 +08:00
|
|
|
/* Map "fractal heap" header blocks to 'ohdr' type file memory, since its
|
|
|
|
* a fair amount of work to add a new kind of file memory and they are similar
|
2005-03-30 05:45:09 +08:00
|
|
|
* enough to object headers and probably too minor to deserve their own type.
|
2006-02-27 11:46:46 +08:00
|
|
|
*
|
|
|
|
* Map "fractal heap" indirect blocks to 'ohdr' type file memory, since they
|
|
|
|
* are similar to fractal heap header blocks.
|
|
|
|
*
|
|
|
|
* Map "fractal heap" direct blocks to 'lheap' type file memory, since they
|
|
|
|
* will be replacing local heaps.
|
|
|
|
*
|
2006-08-10 11:45:06 +08:00
|
|
|
* Map "fractal heap" 'huge' objects to 'draw' type file memory, since they
|
|
|
|
* represent large objects that are directly stored in the file.
|
|
|
|
*
|
2006-02-27 11:46:46 +08:00
|
|
|
* -QAK
|
|
|
|
*/
|
|
|
|
#define H5FD_MEM_FHEAP_HDR H5FD_MEM_OHDR
|
2006-03-05 06:56:44 +08:00
|
|
|
#define H5FD_MEM_FHEAP_IBLOCK H5FD_MEM_OHDR
|
|
|
|
#define H5FD_MEM_FHEAP_DBLOCK H5FD_MEM_LHEAP
|
2006-08-10 11:45:06 +08:00
|
|
|
#define H5FD_MEM_FHEAP_HUGE_OBJ H5FD_MEM_DRAW
|
2005-03-30 05:45:09 +08:00
|
|
|
|
2006-05-15 12:35:53 +08:00
|
|
|
/* Map "free space" header blocks to 'ohdr' type file memory, since its
|
|
|
|
* a fair amount of work to add a new kind of file memory and they are similar
|
|
|
|
* enough to object headers and probably too minor to deserve their own type.
|
|
|
|
*
|
|
|
|
* Map "free space" serialized sections to 'lheap' type file memory, since they
|
|
|
|
* are similar enough to local heap info.
|
|
|
|
*
|
|
|
|
* -QAK
|
|
|
|
*/
|
|
|
|
#define H5FD_MEM_FSPACE_HDR H5FD_MEM_OHDR
|
2006-08-03 00:44:44 +08:00
|
|
|
#define H5FD_MEM_FSPACE_SINFO H5FD_MEM_LHEAP
|
2006-05-15 12:35:53 +08:00
|
|
|
|
2006-12-09 03:44:20 +08:00
|
|
|
/* Map "shared object header message" master table to 'ohdr' type file memory,
|
|
|
|
* since its a fair amount of work to add a new kind of file memory and they are
|
|
|
|
* similar enough to object headers and probably too minor to deserve their own
|
|
|
|
* type.
|
|
|
|
*
|
|
|
|
* Map "shared object header message" indices to 'btree' type file memory,
|
|
|
|
* since they are similar enough to B-tree nodes.
|
|
|
|
*
|
|
|
|
* -QAK
|
|
|
|
*/
|
|
|
|
#define H5FD_MEM_SOHM_TABLE H5FD_MEM_OHDR
|
|
|
|
#define H5FD_MEM_SOHM_INDEX H5FD_MEM_BTREE
|
|
|
|
|
[svn-r15549] Description:
Initial checkin of extensible array data structure prototype code and
regression tests.
Initial definitions for revised FUNC_ENTER/LEAVE and error reporting
macros, which are being vetted in the extensible array code.
Minor warning and formatting cleanups in other sections of code.
Tested on:
Mac OS X/32 10.5.4 (amazon) in debug mode
Mac OS X/32 10.5.4 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
2008-08-28 22:57:13 +08:00
|
|
|
/* Map "extensible array" header blocks to 'ohdr' type file memory, since its
|
|
|
|
* a fair amount of work to add a new kind of file memory and they are similar
|
|
|
|
* enough to object headers and probably too minor to deserve their own type.
|
|
|
|
*
|
[svn-r15614] Description:
More extensible array features: add support for setting/getting
elements in the array's index block.
Tested on:
Mac OS X/32 10.5.4 (amazon) in debug mode
Mac OS X/32 10.5.4 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
2008-09-11 22:03:23 +08:00
|
|
|
* Map "extensible array" index blocks to 'ohdr' type file memory, since they
|
|
|
|
* are similar to extensible array header blocks.
|
|
|
|
*
|
[svn-r15746] Description:
Add support for extensible array "super block".
Tested on:
Mac OS X/32 10.5.5 (amazon) in debug mode
Mac OS X/32 10.5.5 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
2008-10-02 03:24:32 +08:00
|
|
|
* Map "extensible array" super blocks to 'btree' type file memory, since they
|
[svn-r15674] Description:
Add base support for extensible array "data blocks" to code, tests and
h5debug.
Tested on:
Mac OS X/32 10.5.4 (amazon) in debug mode
Mac OS X/32 10.5.4 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
2008-09-22 23:22:03 +08:00
|
|
|
* are similar enough to B-tree nodes.
|
|
|
|
*
|
[svn-r16137] Description:
Add support for paging large data blocks to extensible arrays
Clean up allocation/destroy code for extensible array index, super and
data blocks
Add a couple of routines to set/get bit values in memory buffers
Tested on:
Mac OS X/32 10.5.5 (amazon) in debug mode
Mac OS X/32 10.5.5 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
2008-11-29 03:16:24 +08:00
|
|
|
* Map "extensible array" data blocks & pages to 'lheap' type file memory, since
|
|
|
|
* they are similar enough to local heap info.
|
[svn-r15746] Description:
Add support for extensible array "super block".
Tested on:
Mac OS X/32 10.5.5 (amazon) in debug mode
Mac OS X/32 10.5.5 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
2008-10-02 03:24:32 +08:00
|
|
|
*
|
[svn-r15549] Description:
Initial checkin of extensible array data structure prototype code and
regression tests.
Initial definitions for revised FUNC_ENTER/LEAVE and error reporting
macros, which are being vetted in the extensible array code.
Minor warning and formatting cleanups in other sections of code.
Tested on:
Mac OS X/32 10.5.4 (amazon) in debug mode
Mac OS X/32 10.5.4 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
2008-08-28 22:57:13 +08:00
|
|
|
* -QAK
|
|
|
|
*/
|
|
|
|
#define H5FD_MEM_EARRAY_HDR H5FD_MEM_OHDR
|
[svn-r15614] Description:
More extensible array features: add support for setting/getting
elements in the array's index block.
Tested on:
Mac OS X/32 10.5.4 (amazon) in debug mode
Mac OS X/32 10.5.4 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
2008-09-11 22:03:23 +08:00
|
|
|
#define H5FD_MEM_EARRAY_IBLOCK H5FD_MEM_OHDR
|
[svn-r15746] Description:
Add support for extensible array "super block".
Tested on:
Mac OS X/32 10.5.5 (amazon) in debug mode
Mac OS X/32 10.5.5 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
2008-10-02 03:24:32 +08:00
|
|
|
#define H5FD_MEM_EARRAY_SBLOCK H5FD_MEM_BTREE
|
|
|
|
#define H5FD_MEM_EARRAY_DBLOCK H5FD_MEM_LHEAP
|
[svn-r16137] Description:
Add support for paging large data blocks to extensible arrays
Clean up allocation/destroy code for extensible array index, super and
data blocks
Add a couple of routines to set/get bit values in memory buffers
Tested on:
Mac OS X/32 10.5.5 (amazon) in debug mode
Mac OS X/32 10.5.5 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
2008-11-29 03:16:24 +08:00
|
|
|
#define H5FD_MEM_EARRAY_DBLK_PAGE H5FD_MEM_LHEAP
|
[svn-r15549] Description:
Initial checkin of extensible array data structure prototype code and
regression tests.
Initial definitions for revised FUNC_ENTER/LEAVE and error reporting
macros, which are being vetted in the extensible array code.
Minor warning and formatting cleanups in other sections of code.
Tested on:
Mac OS X/32 10.5.4 (amazon) in debug mode
Mac OS X/32 10.5.4 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
2008-08-28 22:57:13 +08:00
|
|
|
|
[svn-r17155] Description:
Bring r17154 from 'revise_chunks' branch to trunk:
Add fixed array data structure. (For initial use as a chunk index)
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in debug mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.5.7 (amazon) in debug mode
Mac OS X/32 10.5.7 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2009-07-03 12:22:31 +08:00
|
|
|
/* Map "fixed array" header blocks to 'ohdr' type file memory, since its
|
|
|
|
* a fair amount of work to add a new kind of file memory and they are similar
|
|
|
|
* enough to object headers and probably too minor to deserve their own type.
|
|
|
|
*
|
|
|
|
* Map "fixed array" data blocks & pages to 'lheap' type file memory, since
|
|
|
|
* they are similar enough to local heap info.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#define H5FD_MEM_FARRAY_HDR H5FD_MEM_OHDR
|
|
|
|
#define H5FD_MEM_FARRAY_DBLOCK H5FD_MEM_LHEAP
|
|
|
|
#define H5FD_MEM_FARRAY_DBLK_PAGE H5FD_MEM_LHEAP
|
|
|
|
|
1999-08-11 04:21:32 +08:00
|
|
|
/*
|
|
|
|
* A free-list map which maps all types of allocation requests to a single
|
|
|
|
* free list. This is useful for drivers that don't really care about
|
|
|
|
* keeping different requests segregated in the underlying file and which
|
|
|
|
* want to make most efficient reuse of freed memory. The use of the
|
|
|
|
* H5FD_MEM_SUPER free list is arbitrary.
|
|
|
|
*/
|
|
|
|
#define H5FD_FLMAP_SINGLE { \
|
|
|
|
H5FD_MEM_SUPER, /*default*/ \
|
|
|
|
H5FD_MEM_SUPER, /*super*/ \
|
|
|
|
H5FD_MEM_SUPER, /*btree*/ \
|
|
|
|
H5FD_MEM_SUPER, /*draw*/ \
|
|
|
|
H5FD_MEM_SUPER, /*gheap*/ \
|
|
|
|
H5FD_MEM_SUPER, /*lheap*/ \
|
|
|
|
H5FD_MEM_SUPER /*ohdr*/ \
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* A free-list map which segregates requests into `raw' or `meta' data
|
|
|
|
* pools.
|
|
|
|
*/
|
|
|
|
#define H5FD_FLMAP_DICHOTOMY { \
|
1999-08-18 03:12:59 +08:00
|
|
|
H5FD_MEM_SUPER, /*default*/ \
|
|
|
|
H5FD_MEM_SUPER, /*super*/ \
|
|
|
|
H5FD_MEM_SUPER, /*btree*/ \
|
1999-08-11 04:21:32 +08:00
|
|
|
H5FD_MEM_DRAW, /*draw*/ \
|
2012-06-08 00:04:56 +08:00
|
|
|
H5FD_MEM_DRAW, /*gheap*/ \
|
1999-08-18 03:12:59 +08:00
|
|
|
H5FD_MEM_SUPER, /*lheap*/ \
|
|
|
|
H5FD_MEM_SUPER /*ohdr*/ \
|
1999-08-11 04:21:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* The default free list map which causes each request type to use it's own
|
|
|
|
* free-list.
|
|
|
|
*/
|
|
|
|
#define H5FD_FLMAP_DEFAULT { \
|
|
|
|
H5FD_MEM_DEFAULT, /*default*/ \
|
|
|
|
H5FD_MEM_DEFAULT, /*super*/ \
|
|
|
|
H5FD_MEM_DEFAULT, /*btree*/ \
|
|
|
|
H5FD_MEM_DEFAULT, /*draw*/ \
|
|
|
|
H5FD_MEM_DEFAULT, /*gheap*/ \
|
|
|
|
H5FD_MEM_DEFAULT, /*lheap*/ \
|
|
|
|
H5FD_MEM_DEFAULT /*ohdr*/ \
|
|
|
|
}
|
|
|
|
|
2000-09-01 03:35:44 +08:00
|
|
|
|
|
|
|
/* Define VFL driver features that can be enabled on a per-driver basis */
|
2000-09-27 06:50:18 +08:00
|
|
|
/* These are returned with the 'query' function pointer in H5FD_class_t */
|
2000-09-01 03:35:44 +08:00
|
|
|
/*
|
2015-12-14 18:03:54 +08:00
|
|
|
* Defining H5FD_FEAT_AGGREGATE_METADATA for a VFL driver means that
|
2000-09-01 03:35:44 +08:00
|
|
|
* the library will attempt to allocate a larger block for metadata and
|
|
|
|
* then sub-allocate each metadata request from that larger block.
|
|
|
|
*/
|
|
|
|
#define H5FD_FEAT_AGGREGATE_METADATA 0x00000001
|
|
|
|
/*
|
2015-12-14 18:03:54 +08:00
|
|
|
* Defining H5FD_FEAT_ACCUMULATE_METADATA for a VFL driver means that
|
2000-09-01 03:35:44 +08:00
|
|
|
* the library will attempt to cache metadata as it is written to the file
|
|
|
|
* and build up a larger block of metadata to eventually pass to the VFL
|
|
|
|
* 'write' routine.
|
2005-08-14 04:53:35 +08:00
|
|
|
*
|
2002-06-07 11:34:21 +08:00
|
|
|
* Distinguish between updating the metadata accumulator on writes and
|
|
|
|
* reads. This is particularly (perhaps only, even) important for MPI-I/O
|
|
|
|
* where we guarantee that writes are collective, but reads may not be.
|
|
|
|
* If we were to allow the metadata accumulator to be written during a
|
|
|
|
* read operation, the application would hang.
|
2000-09-01 03:35:44 +08:00
|
|
|
*/
|
2002-06-07 11:34:21 +08:00
|
|
|
#define H5FD_FEAT_ACCUMULATE_METADATA_WRITE 0x00000002
|
|
|
|
#define H5FD_FEAT_ACCUMULATE_METADATA_READ 0x00000004
|
|
|
|
#define H5FD_FEAT_ACCUMULATE_METADATA (H5FD_FEAT_ACCUMULATE_METADATA_WRITE|H5FD_FEAT_ACCUMULATE_METADATA_READ)
|
2000-09-27 06:50:18 +08:00
|
|
|
/*
|
2015-12-14 18:03:54 +08:00
|
|
|
* Defining H5FD_FEAT_DATA_SIEVE for a VFL driver means that
|
2000-09-27 06:50:18 +08:00
|
|
|
* the library will attempt to cache raw data as it is read from/written to
|
|
|
|
* a file in a "data seive" buffer. See Rajeev Thakur's papers:
|
|
|
|
* http://www.mcs.anl.gov/~thakur/papers/romio-coll.ps.gz
|
|
|
|
* http://www.mcs.anl.gov/~thakur/papers/mpio-high-perf.ps.gz
|
|
|
|
*/
|
2002-06-07 11:34:21 +08:00
|
|
|
#define H5FD_FEAT_DATA_SIEVE 0x00000008
|
2002-06-05 23:23:20 +08:00
|
|
|
/*
|
2015-12-14 18:03:54 +08:00
|
|
|
* Defining H5FD_FEAT_AGGREGATE_SMALLDATA for a VFL driver means that
|
2002-06-05 23:23:20 +08:00
|
|
|
* the library will attempt to allocate a larger block for "small" raw data
|
|
|
|
* and then sub-allocate "small" raw data requests from that larger block.
|
|
|
|
*/
|
2002-06-07 11:34:21 +08:00
|
|
|
#define H5FD_FEAT_AGGREGATE_SMALLDATA 0x00000010
|
[svn-r17365] Description:
Final merge of changes from sblock_mdc branch back to trunk. The superblock is now managed by the metadata cache.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.5.8 (amazon) in debug mode
Mac OS X/32 10.5.8 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2009-08-15 14:26:08 +08:00
|
|
|
/*
|
2015-12-14 18:03:54 +08:00
|
|
|
* Defining H5FD_FEAT_IGNORE_DRVRINFO for a VFL driver means that
|
[svn-r17365] Description:
Final merge of changes from sblock_mdc branch back to trunk. The superblock is now managed by the metadata cache.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.5.8 (amazon) in debug mode
Mac OS X/32 10.5.8 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2009-08-15 14:26:08 +08:00
|
|
|
* the library will ignore the driver info that is encoded in the file
|
|
|
|
* for the VFL driver. (This will cause the driver info to be eliminated
|
|
|
|
* from the file when it is flushed/closed, if the file is opened R/W).
|
|
|
|
*/
|
|
|
|
#define H5FD_FEAT_IGNORE_DRVRINFO 0x00000020
|
|
|
|
/*
|
2015-06-18 08:58:49 +08:00
|
|
|
* Defining the H5FD_FEAT_DIRTY_DRVRINFO_LOAD for a VFL driver means that
|
|
|
|
* the library will mark the driver info dirty when the file is opened
|
[svn-r17365] Description:
Final merge of changes from sblock_mdc branch back to trunk. The superblock is now managed by the metadata cache.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.5.8 (amazon) in debug mode
Mac OS X/32 10.5.8 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2009-08-15 14:26:08 +08:00
|
|
|
* R/W. This will cause the driver info to be re-encoded when the file
|
|
|
|
* is flushed/closed.
|
|
|
|
*/
|
2015-06-18 08:58:49 +08:00
|
|
|
#define H5FD_FEAT_DIRTY_DRVRINFO_LOAD 0x00000040
|
[svn-r17939] Description:
Handle external links from symlinked files by adding another check to
look for "child" files for links from the actual location of the "parent" file,
instead of from the location of the symlink.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in debug mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.6.2 (amazon) in debug mode
Mac OS X/32 10.6.2 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2009-12-01 21:39:05 +08:00
|
|
|
/*
|
2015-12-14 18:03:54 +08:00
|
|
|
* Defining H5FD_FEAT_POSIX_COMPAT_HANDLE for a VFL driver means that
|
[svn-r17939] Description:
Handle external links from symlinked files by adding another check to
look for "child" files for links from the actual location of the "parent" file,
instead of from the location of the symlink.
Tested on:
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x,
w/C++ & FORTRAN, w/threadsafe, in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers, w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in debug mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Mac OS X/32 10.6.2 (amazon) in debug mode
Mac OS X/32 10.6.2 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
2009-12-01 21:39:05 +08:00
|
|
|
* the handle for the VFD (returned with the 'get_handle' callback) is
|
|
|
|
* of type 'int' and is compatible with POSIX I/O calls.
|
|
|
|
*/
|
2011-04-21 19:53:45 +08:00
|
|
|
#define H5FD_FEAT_POSIX_COMPAT_HANDLE 0x00000080
|
|
|
|
/*
|
2015-12-14 18:03:54 +08:00
|
|
|
* Defining H5FD_FEAT_HAS_MPI for a VFL driver means that
|
2011-04-21 19:53:45 +08:00
|
|
|
* the driver makes use of MPI communication and code may retrieve
|
|
|
|
* communicator/rank information from it
|
|
|
|
*/
|
|
|
|
#define H5FD_FEAT_HAS_MPI 0x00000100
|
|
|
|
/*
|
2015-01-22 02:57:55 +08:00
|
|
|
* Defining the H5FD_FEAT_ALLOCATE_EARLY for a VFL driver will force
|
|
|
|
* the library to use the H5D_ALLOC_TIME_EARLY on dataset create
|
2011-04-21 19:53:45 +08:00
|
|
|
* instead of the default H5D_ALLOC_TIME_LATE
|
|
|
|
*/
|
|
|
|
#define H5FD_FEAT_ALLOCATE_EARLY 0x00000200
|
2012-03-31 16:49:35 +08:00
|
|
|
/*
|
2015-12-14 18:03:54 +08:00
|
|
|
* Defining H5FD_FEAT_ALLOW_FILE_IMAGE for a VFL driver means that
|
2012-03-31 16:49:35 +08:00
|
|
|
* the driver is able to use a file image in the fapl as the initial
|
|
|
|
* contents of a file.
|
|
|
|
*/
|
|
|
|
#define H5FD_FEAT_ALLOW_FILE_IMAGE 0x00000400
|
|
|
|
/*
|
2015-12-14 18:03:54 +08:00
|
|
|
* Defining H5FD_FEAT_CAN_USE_FILE_IMAGE_CALLBACKS for a VFL driver
|
2012-03-31 16:49:35 +08:00
|
|
|
* means that the driver is able to use callbacks to make a copy of the
|
|
|
|
* image to store in memory.
|
|
|
|
*/
|
|
|
|
#define H5FD_FEAT_CAN_USE_FILE_IMAGE_CALLBACKS 0x00000800
|
2016-12-03 00:07:04 +08:00
|
|
|
/*
|
|
|
|
* Defining H5FD_FEAT_SUPPORTS_SWMR_IO for a VFL driver means that the
|
|
|
|
* driver supports the single-writer/multiple-readers I/O pattern.
|
|
|
|
*/
|
|
|
|
#define H5FD_FEAT_SUPPORTS_SWMR_IO 0x00001000
|
2017-03-14 12:30:37 +08:00
|
|
|
/*
|
|
|
|
* Defining H5FD_FEAT_USE_ALLOC_SIZE for a VFL driver
|
|
|
|
* means that the library will just pass the allocation size to the
|
|
|
|
* the driver's allocation callback which will eventually handle alignment.
|
|
|
|
* This is specifically used for the multi/split driver.
|
|
|
|
*/
|
|
|
|
#define H5FD_FEAT_USE_ALLOC_SIZE 0x00002000
|
|
|
|
/*
|
|
|
|
* Defining H5FD_FEAT_PAGED_AGGR for a VFL driver
|
|
|
|
* means that the driver needs special file space mapping for paged aggregation.
|
|
|
|
* This is specifically used for the multi/split driver.
|
|
|
|
*/
|
|
|
|
#define H5FD_FEAT_PAGED_AGGR 0x00004000
|
1999-08-11 04:21:32 +08:00
|
|
|
|
|
|
|
/* Forward declaration */
|
|
|
|
typedef struct H5FD_t H5FD_t;
|
|
|
|
|
|
|
|
/* Class information for each file driver */
|
|
|
|
typedef struct H5FD_class_t {
|
|
|
|
const char *name;
|
|
|
|
haddr_t maxaddr;
|
2001-12-12 03:53:44 +08:00
|
|
|
H5F_close_degree_t fc_degree;
|
2011-04-21 21:55:52 +08:00
|
|
|
herr_t (*terminate)(void);
|
1999-08-18 03:12:59 +08:00
|
|
|
hsize_t (*sb_size)(H5FD_t *file);
|
2003-03-20 07:27:44 +08:00
|
|
|
herr_t (*sb_encode)(H5FD_t *file, char *name/*out*/,
|
|
|
|
unsigned char *p/*out*/);
|
|
|
|
herr_t (*sb_decode)(H5FD_t *f, const char *name, const unsigned char *p);
|
|
|
|
size_t fapl_size;
|
|
|
|
void * (*fapl_get)(H5FD_t *file);
|
|
|
|
void * (*fapl_copy)(const void *fapl);
|
|
|
|
herr_t (*fapl_free)(void *fapl);
|
|
|
|
size_t dxpl_size;
|
|
|
|
void * (*dxpl_copy)(const void *dxpl);
|
|
|
|
herr_t (*dxpl_free)(void *dxpl);
|
1999-08-11 04:21:32 +08:00
|
|
|
H5FD_t *(*open)(const char *name, unsigned flags, hid_t fapl,
|
2003-03-20 07:27:44 +08:00
|
|
|
haddr_t maxaddr);
|
|
|
|
herr_t (*close)(H5FD_t *file);
|
|
|
|
int (*cmp)(const H5FD_t *f1, const H5FD_t *f2);
|
|
|
|
herr_t (*query)(const H5FD_t *f1, unsigned long *flags);
|
[svn-r15861] Description:
Various bug fixes & cleanups with VFDs and file free space changes,
along with cleaning up compiler warnings.
Enable more VFDs (for 'make check-vfd' testing) for many tests.
Tested on:
Mac OS X/32 10.5.5 (amazon) in debug mode
Mac OS X/32 10.5.5 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
2008-10-14 21:16:25 +08:00
|
|
|
herr_t (*get_type_map)(const H5FD_t *file, H5FD_mem_t *type_map);
|
2003-02-11 01:26:09 +08:00
|
|
|
haddr_t (*alloc)(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, hsize_t size);
|
2003-03-20 07:27:44 +08:00
|
|
|
herr_t (*free)(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id,
|
|
|
|
haddr_t addr, hsize_t size);
|
2007-01-13 04:29:43 +08:00
|
|
|
haddr_t (*get_eoa)(const H5FD_t *file, H5FD_mem_t type);
|
|
|
|
herr_t (*set_eoa)(H5FD_t *file, H5FD_mem_t type, haddr_t addr);
|
2014-12-29 14:02:06 +08:00
|
|
|
haddr_t (*get_eof)(const H5FD_t *file, H5FD_mem_t type);
|
2003-03-20 07:27:44 +08:00
|
|
|
herr_t (*get_handle)(H5FD_t *file, hid_t fapl, void**file_handle);
|
|
|
|
herr_t (*read)(H5FD_t *file, H5FD_mem_t type, hid_t dxpl,
|
|
|
|
haddr_t addr, size_t size, void *buffer);
|
|
|
|
herr_t (*write)(H5FD_t *file, H5FD_mem_t type, hid_t dxpl,
|
|
|
|
haddr_t addr, size_t size, const void *buffer);
|
2016-06-29 05:53:48 +08:00
|
|
|
herr_t (*flush)(H5FD_t *file, hid_t dxpl_id, hbool_t closing);
|
[svn-r15800] Description:
Bring file free space branch changes through r15795 into trunk, which
includes a fair bit of code cleanup & rearrangement along with a couple of
bug fixes also.
Tested on:
Mac OS X/32 10.5.5 (amazon) in debug mode
Mac OS X/32 10.5.5 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
2008-10-07 12:17:35 +08:00
|
|
|
herr_t (*truncate)(H5FD_t *file, hid_t dxpl_id, hbool_t closing);
|
2015-12-14 18:03:54 +08:00
|
|
|
herr_t (*lock)(H5FD_t *file, hbool_t rw);
|
|
|
|
herr_t (*unlock)(H5FD_t *file);
|
1999-08-11 04:21:32 +08:00
|
|
|
H5FD_mem_t fl_map[H5FD_MEM_NTYPES];
|
|
|
|
} H5FD_class_t;
|
|
|
|
|
|
|
|
/* A free list is a singly-linked list of address/size pairs. */
|
|
|
|
typedef struct H5FD_free_t {
|
|
|
|
haddr_t addr;
|
|
|
|
hsize_t size;
|
|
|
|
struct H5FD_free_t *next;
|
|
|
|
} H5FD_free_t;
|
|
|
|
|
|
|
|
/*
|
2003-03-20 07:27:44 +08:00
|
|
|
* The main datatype for each driver. Public fields common to all drivers
|
|
|
|
* are declared here and the driver appends private fields in memory.
|
1999-08-11 04:21:32 +08:00
|
|
|
*/
|
|
|
|
struct H5FD_t {
|
2003-03-20 07:27:44 +08:00
|
|
|
hid_t driver_id; /*driver ID for this file */
|
|
|
|
const H5FD_class_t *cls; /*constant class info */
|
[svn-r15800] Description:
Bring file free space branch changes through r15795 into trunk, which
includes a fair bit of code cleanup & rearrangement along with a couple of
bug fixes also.
Tested on:
Mac OS X/32 10.5.5 (amazon) in debug mode
Mac OS X/32 10.5.5 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
2008-10-07 12:17:35 +08:00
|
|
|
unsigned long fileno; /* File 'serial' number */
|
2016-12-03 00:07:04 +08:00
|
|
|
unsigned access_flags; /* File access flags (from create or open) */
|
2003-03-20 07:27:44 +08:00
|
|
|
unsigned long feature_flags; /* VFL Driver feature Flags */
|
[svn-r15800] Description:
Bring file free space branch changes through r15795 into trunk, which
includes a fair bit of code cleanup & rearrangement along with a couple of
bug fixes also.
Tested on:
Mac OS X/32 10.5.5 (amazon) in debug mode
Mac OS X/32 10.5.5 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
2008-10-07 12:17:35 +08:00
|
|
|
haddr_t maxaddr; /* For this file, overrides class */
|
|
|
|
haddr_t base_addr; /* Base address for HDF5 data w/in file */
|
|
|
|
|
|
|
|
/* Space allocation management fields */
|
2003-03-20 07:27:44 +08:00
|
|
|
hsize_t threshold; /* Threshold for alignment */
|
|
|
|
hsize_t alignment; /* Allocation alignment */
|
2017-03-14 12:30:37 +08:00
|
|
|
hbool_t paged_aggr; /* Paged aggregation for file space is enabled or not */
|
1999-08-11 04:21:32 +08:00
|
|
|
};
|
|
|
|
|
2012-03-31 16:49:35 +08:00
|
|
|
/* Define enum for the source of file image callbacks */
|
|
|
|
typedef enum {
|
|
|
|
H5FD_FILE_IMAGE_OP_NO_OP,
|
|
|
|
H5FD_FILE_IMAGE_OP_PROPERTY_LIST_SET,
|
|
|
|
H5FD_FILE_IMAGE_OP_PROPERTY_LIST_COPY,
|
|
|
|
H5FD_FILE_IMAGE_OP_PROPERTY_LIST_GET,
|
|
|
|
H5FD_FILE_IMAGE_OP_PROPERTY_LIST_CLOSE,
|
|
|
|
H5FD_FILE_IMAGE_OP_FILE_OPEN,
|
|
|
|
H5FD_FILE_IMAGE_OP_FILE_RESIZE,
|
2012-07-27 03:33:59 +08:00
|
|
|
H5FD_FILE_IMAGE_OP_FILE_CLOSE
|
2012-03-31 16:49:35 +08:00
|
|
|
} H5FD_file_image_op_t;
|
|
|
|
|
|
|
|
/* Define structure to hold file image callbacks */
|
|
|
|
typedef struct {
|
|
|
|
void *(*image_malloc)(size_t size, H5FD_file_image_op_t file_image_op,
|
|
|
|
void *udata);
|
|
|
|
void *(*image_memcpy)(void *dest, const void *src, size_t size,
|
|
|
|
H5FD_file_image_op_t file_image_op, void *udata);
|
|
|
|
void *(*image_realloc)(void *ptr, size_t size,
|
|
|
|
H5FD_file_image_op_t file_image_op, void *udata);
|
|
|
|
herr_t (*image_free)(void *ptr, H5FD_file_image_op_t file_image_op,
|
|
|
|
void *udata);
|
|
|
|
void *(*udata_copy)(void *udata);
|
|
|
|
herr_t (*udata_free)(void *udata);
|
|
|
|
void *udata;
|
|
|
|
} H5FD_file_image_callbacks_t;
|
|
|
|
|
1999-08-11 04:21:32 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Function prototypes */
|
2002-09-21 04:36:09 +08:00
|
|
|
H5_DLL hid_t H5FDregister(const H5FD_class_t *cls);
|
|
|
|
H5_DLL herr_t H5FDunregister(hid_t driver_id);
|
|
|
|
H5_DLL H5FD_t *H5FDopen(const char *name, unsigned flags, hid_t fapl_id,
|
2003-03-20 07:27:44 +08:00
|
|
|
haddr_t maxaddr);
|
2002-09-21 04:36:09 +08:00
|
|
|
H5_DLL herr_t H5FDclose(H5FD_t *file);
|
|
|
|
H5_DLL int H5FDcmp(const H5FD_t *f1, const H5FD_t *f2);
|
|
|
|
H5_DLL int H5FDquery(const H5FD_t *f, unsigned long *flags);
|
2003-02-11 01:26:09 +08:00
|
|
|
H5_DLL haddr_t H5FDalloc(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, hsize_t size);
|
2003-03-20 07:27:44 +08:00
|
|
|
H5_DLL herr_t H5FDfree(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id,
|
|
|
|
haddr_t addr, hsize_t size);
|
2007-01-13 04:29:43 +08:00
|
|
|
H5_DLL haddr_t H5FDget_eoa(H5FD_t *file, H5FD_mem_t type);
|
|
|
|
H5_DLL herr_t H5FDset_eoa(H5FD_t *file, H5FD_mem_t type, haddr_t eoa);
|
2014-12-29 14:02:06 +08:00
|
|
|
H5_DLL haddr_t H5FDget_eof(H5FD_t *file, H5FD_mem_t type);
|
2002-10-01 00:31:55 +08:00
|
|
|
H5_DLL herr_t H5FDget_vfd_handle(H5FD_t *file, hid_t fapl, void**file_handle);
|
2003-03-20 07:27:44 +08:00
|
|
|
H5_DLL herr_t H5FDread(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id,
|
|
|
|
haddr_t addr, size_t size, void *buf/*out*/);
|
|
|
|
H5_DLL herr_t H5FDwrite(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id,
|
|
|
|
haddr_t addr, size_t size, const void *buf);
|
2016-06-29 05:53:48 +08:00
|
|
|
H5_DLL herr_t H5FDflush(H5FD_t *file, hid_t dxpl_id, hbool_t closing);
|
[svn-r15800] Description:
Bring file free space branch changes through r15795 into trunk, which
includes a fair bit of code cleanup & rearrangement along with a couple of
bug fixes also.
Tested on:
Mac OS X/32 10.5.5 (amazon) in debug mode
Mac OS X/32 10.5.5 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
2008-10-07 12:17:35 +08:00
|
|
|
H5_DLL herr_t H5FDtruncate(H5FD_t *file, hid_t dxpl_id, hbool_t closing);
|
2015-12-14 18:03:54 +08:00
|
|
|
H5_DLL herr_t H5FDlock(H5FD_t *file, hbool_t rw);
|
|
|
|
H5_DLL herr_t H5FDunlock(H5FD_t *file);
|
1999-08-11 04:21:32 +08:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|
[svn-r14353] Description:
- Add hash value for skip list string types, to reduce # of string
comparisons.
- Fixed bug with metadata/small data block aggregator adding size == 0
block into file free space list.
- Refactored metadata/small data block aggregator code into single set of
common routines.
- Changed block aggregator code to be smarter about releasing space in the
'other' block when the 'other' block has aggregated enough data.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2007-12-21 04:36:08 +08:00
|
|
|
|