diff options
author | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2014-06-20 15:02:06 (GMT) |
---|---|---|
committer | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2014-06-20 15:02:06 (GMT) |
commit | 77d62be955faff2f24568d2c9e4304d93d8acfda (patch) | |
tree | 1716e002a2a8202dad2cfd20c6f27fa2d5f85bb9 /src | |
parent | 4cac509a507475ec2666d8ae9a35d48d29f76647 (diff) | |
download | hdf5-77d62be955faff2f24568d2c9e4304d93d8acfda.zip hdf5-77d62be955faff2f24568d2c9e4304d93d8acfda.tar.gz hdf5-77d62be955faff2f24568d2c9e4304d93d8acfda.tar.bz2 |
[svn-r25338] add link count and obj type metadata to the root group.
Diffstat (limited to 'src')
-rw-r--r-- | src/H5VLiod_file.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/H5VLiod_file.c b/src/H5VLiod_file.c index 57a561a..d3263ce 100644 --- a/src/H5VLiod_file.c +++ b/src/H5VLiod_file.c @@ -204,6 +204,16 @@ H5VL_iod_server_file_create_cb(AXE_engine_t UNUSED axe_engine, if(SUCCEED != ret) HGOTO_ERROR_FF(ret, "can't insert link count KV value"); + /* insert link count metadata */ + ret = H5VL_iod_insert_link_count(mdkv_oh, first_tid, (uint64_t)1,cs_scope, NULL, NULL); + if(ret != SUCCEED) + HGOTO_ERROR_FF(ret, "can't insert KV value"); + + /* insert object type metadata */ + ret = H5VL_iod_insert_object_type(mdkv_oh, first_tid, H5I_GROUP, cs_scope, NULL, NULL); + if(ret != SUCCEED) + HGOTO_ERROR_FF(ret, "can't insert KV value"); + kv.value = &value; kv.value_len = sizeof(uint64_t); @@ -1029,6 +1039,16 @@ setup_eff_container(iod_handle_t coh, uint32_t cs_scope, unsigned num_peers, hbo if(SUCCEED != ret) HGOTO_ERROR_FF(ret, "can't insert link count KV value"); + /* insert link count metadata */ + ret = H5VL_iod_insert_link_count(mdkv_oh, first_tid, (uint64_t)1,cs_scope, NULL, NULL); + if(ret != SUCCEED) + HGOTO_ERROR_FF(ret, "can't insert KV value"); + + /* insert object type metadata */ + ret = H5VL_iod_insert_object_type(mdkv_oh, first_tid, H5I_GROUP, cs_scope, NULL, NULL); + if(ret != SUCCEED) + HGOTO_ERROR_FF(ret, "can't insert KV value"); + kv.value = &value; kv.value_len = sizeof(uint64_t); |