|
Packit Service |
b3514a |
/*
|
|
Packit Service |
b3514a |
* Copyright (c) 2020 Red Hat, Inc.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* This program is free software; you can redistribute it and/or
|
|
Packit Service |
b3514a |
* modify it under the terms of the GNU General Public License
|
|
Packit Service |
b3514a |
* as published by the Free Software Foundation; either version 2
|
|
Packit Service |
b3514a |
* of the License, or (at your option) any later version.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* This program is distributed in the hope that it will be useful,
|
|
Packit Service |
b3514a |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
b3514a |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit Service |
b3514a |
* GNU General Public License for more details.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* You should have received a copy of the GNU General Public License
|
|
Packit Service |
b3514a |
* along with this program; if not, write to the Free Software
|
|
Packit Service |
b3514a |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
Packit Service |
b3514a |
* 02110-1301, USA.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* $Id: //eng/vdo-releases/aluminum/src/c++/vdo/kernel/verify.h#1 $
|
|
Packit Service |
b3514a |
*/
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
#include "kernelLayer.h"
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/**
|
|
Packit Service |
b3514a |
* Verify the Albireo-provided deduplication advice, and invoke a callback once
|
|
Packit Service |
b3514a |
* the answer is available. This is done through a call to kvdoReadBlock()
|
|
Packit Service |
b3514a |
* which will eventually call back to verifyDuplication() once the block is
|
|
Packit Service |
b3514a |
* read and possibly uncompressed.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @param dataVIO The DataVIO with advice filled in.
|
|
Packit Service |
b3514a |
**/
|
|
Packit Service |
b3514a |
void kvdoVerifyDuplication(DataVIO *dataVIO);
|
|
Packit Service |
b3514a |
|
|
Packit Service |
b3514a |
/**
|
|
Packit Service |
b3514a |
* Implements DataVIOComparator.
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @param first The first DataVIO to compare
|
|
Packit Service |
b3514a |
* @param second The second DataVIO to compare
|
|
Packit Service |
b3514a |
*
|
|
Packit Service |
b3514a |
* @return true if the contents of the two DataVIOs are the same
|
|
Packit Service |
b3514a |
**/
|
|
Packit Service |
b3514a |
bool kvdoCompareDataVIOs(DataVIO *first, DataVIO *second)
|
|
Packit Service |
b3514a |
__attribute__((warn_unused_result));
|