if(dset->shared->layout.storage.u.chunk.ops->init && (dset->shared->layout.storage.u.chunk.ops->init)(&idx_info, dset->shared->space, dset->oloc.addr) < 0)
 
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Copyright by The HDF Group.                                               *
 * 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 COPYING file, which can be found at the root of the source code       *
 * distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases.  *
 * If you do not have access to either file, you may request a copy from     *
 * help@hdfgroup.org.                                                        *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* Programmer:  Quincey Koziol <koziol@hdfgroup.org>
 *          Thursday, April 24, 2008
 *
 * Purpose: Abstract indexed (chunked) I/O functions.  The logical
 *      multi-dimensional dataspace is regularly partitioned into
 *      same-sized "chunks", the first of which is aligned with the
 *      logical origin.  The chunks are indexed by different methods,
 *      that map a chunk index to disk address.  Each chunk can be
 *              compressed independently and the chunks may move around in the
 *              file as their storage requirements change.
 *
 * Cache:   Disk I/O is performed in units of chunks and H5MF_alloc()
 *      contains code to optionally align chunks on disk block
 *      boundaries for performance.
 *
 *      The chunk cache is an extendible hash indexed by a function
 *      of storage B-tree address and chunk N-dimensional offset
 *      within the dataset.  Collisions are not resolved -- one of
 *      the two chunks competing for the hash slot must be preempted
 *      from the cache.  All entries in the hash also participate in
 *      a doubly-linked list and entries are penalized by moving them
 *      toward the front of the list.  When a new chunk is about to
 *      be added to the cache the heap is pruned by preempting
 *      entries near the front of the list to make room for the new
 *      entry which is added to the end of the list.
 */
/****************/
/* Module Setup */
/****************/
#include "H5Dmodule.h"          /* This source code file is part of the H5D module */
/***********/
/* Headers */
/***********/
#include "H5private.h"      /* Generic Functions            */