mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-12 17:31:09 +08:00
[svn-r6501] Purpose:
New Feature Description: Added support for the lock and unlock function calls for file drivers. Only FPHDF5 uses this feature. All of these drivers don't define lock or unlock methods. Platforms tested: Linux, Modi4, Sol Misc. update:
This commit is contained in:
parent
43c2e1bab7
commit
02be089f0c
@ -1,7 +1,18 @@
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* 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 *
|
||||
* http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have *
|
||||
* access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. *
|
||||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||
|
||||
/*
|
||||
* Copyright © 1999-2001 NCSA
|
||||
* All rights reserved.
|
||||
*
|
||||
* Programmer: Robb Matzke <matzke@llnl.gov>
|
||||
* Tuesday, August 10, 1999
|
||||
*
|
||||
@ -117,7 +128,9 @@ static const H5FD_class_t H5FD_core_g = {
|
||||
H5FD_core_read, /*read */
|
||||
H5FD_core_write, /*write */
|
||||
H5FD_core_flush, /*flush */
|
||||
H5FD_FLMAP_SINGLE, /*fl_map */
|
||||
NULL, /*lock */
|
||||
NULL, /*unlock */
|
||||
H5FD_FLMAP_SINGLE /*fl_map */
|
||||
};
|
||||
|
||||
/* Interface initialization */
|
||||
|
@ -1,7 +1,18 @@
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* 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 *
|
||||
* http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have *
|
||||
* access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. *
|
||||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1997-2001 NCSA
|
||||
* All rights reserved.
|
||||
*
|
||||
* Programmer: Robb Matzke <matzke@llnl.gov>
|
||||
* Monday, November 10, 1997
|
||||
*
|
||||
@ -112,7 +123,9 @@ static const H5FD_class_t H5FD_family_g = {
|
||||
H5FD_family_read, /*read */
|
||||
H5FD_family_write, /*write */
|
||||
H5FD_family_flush, /*flush */
|
||||
H5FD_FLMAP_SINGLE, /*fl_map */
|
||||
NULL, /*lock */
|
||||
NULL, /*unlock */
|
||||
H5FD_FLMAP_SINGLE /*fl_map */
|
||||
};
|
||||
|
||||
/* Interface initialization */
|
||||
|
@ -1,7 +1,18 @@
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* 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 *
|
||||
* http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have *
|
||||
* access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. *
|
||||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||
|
||||
/*
|
||||
* Copyright © 1999-2001 NCSA
|
||||
* All rights reserved.
|
||||
*
|
||||
* Programmer: Saurabh Bagchi (bagchi@uiuc.edu)
|
||||
* Thursday, August 12 -Tuesday, August 17, 1999
|
||||
*
|
||||
@ -153,7 +164,9 @@ static const H5FD_class_t H5FD_gass_g = {
|
||||
H5FD_gass_read, /*read */
|
||||
H5FD_gass_write, /*write */
|
||||
NULL, /*flush */
|
||||
H5FD_FLMAP_SINGLE, /*fl_map */
|
||||
NULL, /*lock */
|
||||
NULL, /*unlock */
|
||||
H5FD_FLMAP_SINGLE /*fl_map */
|
||||
};
|
||||
|
||||
/* Interface initialization */
|
||||
|
@ -1,7 +1,18 @@
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* 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 *
|
||||
* http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have *
|
||||
* access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. *
|
||||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||
|
||||
/*
|
||||
* Copyright © 2000-2001 NCSA
|
||||
* All rights reserved.
|
||||
*
|
||||
* Programmer: Quincey Koziol <koziol@ncsa.uiuc.edu>
|
||||
* Monday, April 17, 2000
|
||||
*
|
||||
@ -217,7 +228,9 @@ static const H5FD_class_t H5FD_log_g = {
|
||||
H5FD_log_read, /*read */
|
||||
H5FD_log_write, /*write */
|
||||
H5FD_log_flush, /*flush */
|
||||
H5FD_FLMAP_NOLIST, /*fl_map */
|
||||
NULL, /*lock */
|
||||
NULL, /*unlock */
|
||||
H5FD_FLMAP_NOLIST /*fl_map */
|
||||
};
|
||||
|
||||
/* Interface initialization */
|
||||
|
@ -120,7 +120,9 @@ static const H5FD_class_t H5FD_mpio_g = {
|
||||
H5FD_mpio_read, /*read */
|
||||
H5FD_mpio_write, /*write */
|
||||
H5FD_mpio_flush, /*flush */
|
||||
H5FD_FLMAP_SINGLE, /*fl_map */
|
||||
NULL, /*lock */
|
||||
NULL, /*unlock */
|
||||
H5FD_FLMAP_SINGLE /*fl_map */
|
||||
};
|
||||
|
||||
#ifdef H5FDmpio_DEBUG
|
||||
|
@ -214,7 +214,9 @@ static const H5FD_class_t H5FD_mpiposix_g = {
|
||||
H5FD_mpiposix_read, /*read */
|
||||
H5FD_mpiposix_write, /*write */
|
||||
H5FD_mpiposix_flush, /*flush */
|
||||
H5FD_FLMAP_SINGLE, /*fl_map */
|
||||
NULL, /*lock */
|
||||
NULL, /*unlock */
|
||||
H5FD_FLMAP_SINGLE /*fl_map */
|
||||
};
|
||||
|
||||
/* Global var to allow elimination of redundant metadata writes
|
||||
|
@ -1,7 +1,18 @@
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* 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 *
|
||||
* http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have *
|
||||
* access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. *
|
||||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1997-2002 NCSA
|
||||
* All rights reserved.
|
||||
*
|
||||
* Programmer: Robb Matzke <matzke@llnl.gov>
|
||||
* Monday, November 10, 1997
|
||||
*
|
||||
@ -160,7 +171,9 @@ static const H5FD_class_t H5FD_multi_g = {
|
||||
H5FD_multi_read, /*read */
|
||||
H5FD_multi_write, /*write */
|
||||
H5FD_multi_flush, /*flush */
|
||||
H5FD_FLMAP_DEFAULT, /*fl_map */
|
||||
NULL, /*lock */
|
||||
NULL, /*unlock */
|
||||
H5FD_FLMAP_DEFAULT /*fl_map */
|
||||
};
|
||||
|
||||
|
||||
|
@ -1,7 +1,18 @@
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* 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 *
|
||||
* http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have *
|
||||
* access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. *
|
||||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||
|
||||
/*
|
||||
* Copyright © 1999-2001 NCSA
|
||||
* All rights reserved.
|
||||
*
|
||||
* Programmer: Robb Matzke <matzke@llnl.gov>
|
||||
* Thursday, July 29, 1999
|
||||
*
|
||||
@ -172,7 +183,9 @@ static const H5FD_class_t H5FD_sec2_g = {
|
||||
H5FD_sec2_read, /*read */
|
||||
H5FD_sec2_write, /*write */
|
||||
H5FD_sec2_flush, /*flush */
|
||||
H5FD_FLMAP_SINGLE, /*fl_map */
|
||||
NULL, /*lock */
|
||||
NULL, /*unlock */
|
||||
H5FD_FLMAP_SINGLE /*fl_map */
|
||||
};
|
||||
|
||||
/* Interface initialization */
|
||||
|
@ -1,7 +1,18 @@
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* 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 *
|
||||
* http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have *
|
||||
* access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. *
|
||||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1999-2001 NCSA
|
||||
* All rights reserved.
|
||||
*
|
||||
* Programmer: Raymond Lu <slu@ncsa.uiuc.edu>
|
||||
* Wednesday, April 12, 2000
|
||||
*
|
||||
@ -135,7 +146,9 @@ static const H5FD_class_t H5FD_srb_g = {
|
||||
H5FD_srb_read, /*read */
|
||||
H5FD_srb_write, /*write */
|
||||
H5FD_srb_flush, /*flush */
|
||||
H5FD_FLMAP_SINGLE, /*fl_map */
|
||||
NULL, /*lock */
|
||||
NULL, /*unlock */
|
||||
H5FD_FLMAP_SINGLE /*fl_map */
|
||||
};
|
||||
|
||||
/* Interface initialization */
|
||||
|
@ -1,7 +1,18 @@
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* 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 *
|
||||
* http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have *
|
||||
* access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu. *
|
||||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1999-2002 NCSA
|
||||
* All rights reserved.
|
||||
*
|
||||
* Programmer: Robb Matzke <matzke@llnl.gov>
|
||||
* Wednesday, October 22, 1997
|
||||
*
|
||||
@ -171,7 +182,9 @@ static const H5FD_class_t H5FD_stdio_g = {
|
||||
H5FD_stdio_read, /*read */
|
||||
H5FD_stdio_write, /*write */
|
||||
H5FD_stdio_flush, /*flush */
|
||||
H5FD_FLMAP_SINGLE, /*fl_map */
|
||||
NULL, /*lock */
|
||||
NULL, /*unlock */
|
||||
H5FD_FLMAP_SINGLE /*fl_map */
|
||||
};
|
||||
|
||||
|
||||
|
@ -168,35 +168,36 @@ static herr_t H5FD_stream_write (H5FD_t *_stream, H5FD_mem_t type,
|
||||
size_t size, const void *buf);
|
||||
|
||||
/* The Stream VFD's class information structure */
|
||||
static const H5FD_class_t H5FD_stream_g =
|
||||
{
|
||||
"stream", /* name */
|
||||
MAXADDR, /* maxaddr */
|
||||
H5F_CLOSE_WEAK, /* fc_degree */
|
||||
NULL, /* sb_size */
|
||||
NULL, /* sb_encode */
|
||||
NULL, /* sb_decode */
|
||||
sizeof (H5FD_stream_fapl_t), /* fapl_size */
|
||||
H5FD_stream_fapl_get, /* fapl_get */
|
||||
NULL, /* fapl_copy */
|
||||
NULL, /* fapl_free */
|
||||
0, /* dxpl_size */
|
||||
NULL, /* dxpl_copy */
|
||||
NULL, /* dxpl_free */
|
||||
H5FD_stream_open, /* open */
|
||||
H5FD_stream_close, /* close */
|
||||
NULL, /* cmp */
|
||||
H5FD_stream_query, /* query */
|
||||
NULL, /* alloc */
|
||||
NULL, /* free */
|
||||
H5FD_stream_get_eoa, /* get_eoa */
|
||||
H5FD_stream_set_eoa, /* set_eoa */
|
||||
H5FD_stream_get_eof, /* get_eof */
|
||||
H5FD_stream_get_handle, /* get_handle */
|
||||
H5FD_stream_read, /* read */
|
||||
H5FD_stream_write, /* write */
|
||||
H5FD_stream_flush, /* flush */
|
||||
H5FD_FLMAP_SINGLE, /* fl_map */
|
||||
static const H5FD_class_t H5FD_stream_g = {
|
||||
"stream", /*name */
|
||||
MAXADDR, /*maxaddr */
|
||||
H5F_CLOSE_WEAK, /*fc_degree */
|
||||
NULL, /*sb_size */
|
||||
NULL, /*sb_encode */
|
||||
NULL, /*sb_decode */
|
||||
sizeof (H5FD_stream_fapl_t), /*fapl_size */
|
||||
H5FD_stream_fapl_get, /*fapl_get */
|
||||
NULL, /*fapl_copy */
|
||||
NULL, /*fapl_free */
|
||||
0, /*dxpl_size */
|
||||
NULL, /*dxpl_copy */
|
||||
NULL, /*dxpl_free */
|
||||
H5FD_stream_open, /*open */
|
||||
H5FD_stream_close, /*close */
|
||||
NULL, /*cmp */
|
||||
H5FD_stream_query, /*query */
|
||||
NULL, /*alloc */
|
||||
NULL, /*free */
|
||||
H5FD_stream_get_eoa, /*get_eoa */
|
||||
H5FD_stream_set_eoa, /*set_eoa */
|
||||
H5FD_stream_get_eof, /*get_eof */
|
||||
H5FD_stream_get_handle, /*get_handle */
|
||||
H5FD_stream_read, /*read */
|
||||
H5FD_stream_write, /*write */
|
||||
H5FD_stream_flush, /*flush */
|
||||
NULL, /*lock */
|
||||
NULL, /*unlock */
|
||||
H5FD_FLMAP_SINGLE /*fl_map */
|
||||
};
|
||||
|
||||
/* Interface initialization */
|
||||
|
Loading…
x
Reference in New Issue
Block a user