def fill_storage_map(compute_resources, storage_resources):
    """
    WARNING: The local disk resource name MUST be prefixed by the host
    resource name
    """
    storage_map = {}
    for res_id, compute in compute_resources.items():
        for storage_id, storage in storage_resources.items():
            if compute['name'] in storage['name']:
                storage_map[res_id] = storage_id
    return storage_map
