Writing hdf5 files stored in memory to disk without closing them

Hello Everybody,

I would like to know how to write a hdf5 file that is stored in-memory
using the "core" driver to disk. I know that it can be written to disk on
closing of the file, but how can this be done without closing it?
I read a good part of the documentation but don't seem to be able to find
the answer.

Regards,

Florian

H5Fflush is the function you're after, I believe.

···

On 06/27/2012 07:47 AM, Florian Seidel wrote:

Hello Everybody,

I would like to know how to write a hdf5 file that is stored in-memory using the "core" driver to disk. I know that it can be written to disk on closing of the file, but how can this be done without closing it?
I read a good part of the documentation but don't seem to be able to find the answer.

Regards,

Florian

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Hi John,

my understanding is, that H5Fflush() is only flushing to the underlying
medium, not nescessarily to disk.
So if use the core driver this will not work for me.
There must be a way to do this? Can I switch the driver for an open file
somehow?

Regards,

Florian

···

On Fri, Jun 29, 2012 at 7:49 PM, John K <jkml@arlut.utexas.edu> wrote:

H5Fflush is the function you're after, I believe.

On 06/27/2012 07:47 AM, Florian Seidel wrote:

Hello Everybody,

I would like to know how to write a hdf5 file that is stored in-memory
using the "core" driver to disk. I know that it can be written to disk on
closing of the file, but how can this be done without closing it?
I read a good part of the documentation but don't seem to be able to find
the answer.

Regards,

Florian

_______________________________________________
Hdf-forum is for HDF software users discussion.Hdf-forum@hdfgroup.orghttp://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Hi Florian,

Hi John,

my understanding is, that H5Fflush() is only flushing to the underlying medium, not nescessarily to disk.
So if use the core driver this will not work for me.
There must be a way to do this? Can I switch the driver for an open file somehow?

  If you specify a "backing store" file, both H5Fflush & H5Fclose will push a copy of the memory buffer to the file.

  Quincey

···

On Jun 30, 2012, at 11:21 AM, Florian Seidel wrote:

Regards,

Florian

On Fri, Jun 29, 2012 at 7:49 PM, John K <jkml@arlut.utexas.edu> wrote:
H5Fflush is the function you're after, I believe.

On 06/27/2012 07:47 AM, Florian Seidel wrote:

Hello Everybody,

I would like to know how to write a hdf5 file that is stored in-memory using the "core" driver to disk. I know that it can be written to disk on closing of the file, but how can this be done without closing it?
I read a good part of the documentation but don't seem to be able to find the answer.

Regards,

Florian

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org