client/src/unifycr.c
static int unifycr_fid_store_alloc(int fid)
{
    /* get meta data for this file */
    unifycr_filemeta_t* meta = unifycr_get_meta_from_fid(fid);

    if (fs_type == UNIFYCR_LOG) {
    	meta->storage = FILE_STORAGE_LOGIO;
    }
    else
    	if (unifycr_use_memfs || unifycr_use_spillover) {
    		/* we used fixed-size chunk storage for memfs and spillover */
    		meta->storage = FILE_STORAGE_FIXED_CHUNK;
    	}


    return UNIFYCR_SUCCESS;
}
/* allocate and initialize data management resource for file */
allocate and initialize data management resource for file
allocate and initialize data management resource for file
static int unifycr_fid_store_alloc(int fid)
{
    unifycr_filemeta_t* meta = unifycr_get_meta_from_fid(fid);
    if (fs_type == UNIFYCR_LOG) {
    	meta->storage = FILE_STORAGE_LOGIO;
    }
    else
    	if (unifycr_use_memfs || unifycr_use_spillover) {
    		meta->storage = FILE_STORAGE_FIXED_CHUNK;
    	}
    return UNIFYCR_SUCCESS;
}
static int unifycr_fid_store_alloc ( int fid ) { unifycr_filemeta_t * meta = unifycr_get_meta_from_fid ( fid ) ; if ( fs_type == UNIFYCR_LOG ) { meta -> storage = FILE_STORAGE_LOGIO ; } else if ( unifycr_use_memfs || unifycr_use_spillover ) { meta -> storage = FILE_STORAGE_FIXED_CHUNK ; } return UNIFYCR_SUCCESS ; }
allocate and initialize data management resource for file
allocate and initialize data management resource for file
/* get meta data for this file */ /* we used fixed-size chunk storage for memfs and spillover */