|
Packit Service |
310c69 |
/*
|
|
Packit Service |
310c69 |
* Copyright (c) 2020 Red Hat, Inc.
|
|
Packit Service |
310c69 |
*
|
|
Packit Service |
310c69 |
* This program is free software; you can redistribute it and/or
|
|
Packit Service |
310c69 |
* modify it under the terms of the GNU General Public License
|
|
Packit Service |
310c69 |
* as published by the Free Software Foundation; either version 2
|
|
Packit Service |
310c69 |
* of the License, or (at your option) any later version.
|
|
Packit Service |
310c69 |
*
|
|
Packit Service |
310c69 |
* This program is distributed in the hope that it will be useful,
|
|
Packit Service |
310c69 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
310c69 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit Service |
310c69 |
* GNU General Public License for more details.
|
|
Packit Service |
310c69 |
*
|
|
Packit Service |
310c69 |
* You should have received a copy of the GNU General Public License
|
|
Packit Service |
310c69 |
* along with this program; if not, write to the Free Software
|
|
Packit Service |
310c69 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
Packit Service |
310c69 |
* 02110-1301, USA.
|
|
Packit Service |
310c69 |
*
|
|
Packit Service |
310c69 |
* $Id: //eng/uds-releases/jasper/src/uds/masterIndex006.h#1 $
|
|
Packit Service |
310c69 |
*/
|
|
Packit Service |
310c69 |
|
|
Packit Service |
310c69 |
#ifndef MASTERINDEX006_H
|
|
Packit Service |
310c69 |
#define MASTERINDEX006_H 1
|
|
Packit Service |
310c69 |
|
|
Packit Service |
310c69 |
#include "masterIndexOps.h"
|
|
Packit Service |
310c69 |
|
|
Packit Service |
310c69 |
/**
|
|
Packit Service |
310c69 |
* Make a new master index.
|
|
Packit Service |
310c69 |
*
|
|
Packit Service |
310c69 |
* @param config The configuration of the master index
|
|
Packit Service |
310c69 |
* @param numZones The number of zones
|
|
Packit Service |
310c69 |
* @param volumeNonce The nonce used to authenticate the index
|
|
Packit Service |
310c69 |
* @param masterIndex Location to hold new master index ptr
|
|
Packit Service |
310c69 |
*
|
|
Packit Service |
310c69 |
* @return error code or UDS_SUCCESS
|
|
Packit Service |
310c69 |
**/
|
|
Packit Service |
310c69 |
int makeMasterIndex006(const Configuration *config, unsigned int numZones,
|
|
Packit Service |
310c69 |
uint64_t volumeNonce, MasterIndex **masterIndex)
|
|
Packit Service |
310c69 |
__attribute__((warn_unused_result));
|
|
Packit Service |
310c69 |
|
|
Packit Service |
310c69 |
/**
|
|
Packit Service |
310c69 |
* Compute the number of bytes required to save a master index of a given
|
|
Packit Service |
310c69 |
* configuration.
|
|
Packit Service |
310c69 |
*
|
|
Packit Service |
310c69 |
* @param config The configuration of the master index
|
|
Packit Service |
310c69 |
* @param numBytes The number of bytes required to save the master index
|
|
Packit Service |
310c69 |
*
|
|
Packit Service |
310c69 |
* @return UDS_SUCCESS or an error code.
|
|
Packit Service |
310c69 |
**/
|
|
Packit Service |
310c69 |
int computeMasterIndexSaveBytes006(const Configuration *config,
|
|
Packit Service |
310c69 |
size_t *numBytes)
|
|
Packit Service |
310c69 |
__attribute__((warn_unused_result));
|
|
Packit Service |
310c69 |
|
|
Packit Service |
310c69 |
#endif /* MASTERINDEX006_H */
|