Blame source/vdo/base/vdoResizeLogical.h

Packit Service d40955
/*
Packit Service d40955
 * Copyright (c) 2020 Red Hat, Inc.
Packit Service d40955
 *
Packit Service d40955
 * This program is free software; you can redistribute it and/or
Packit Service d40955
 * modify it under the terms of the GNU General Public License
Packit Service d40955
 * as published by the Free Software Foundation; either version 2
Packit Service d40955
 * of the License, or (at your option) any later version.
Packit Service d40955
 * 
Packit Service d40955
 * This program is distributed in the hope that it will be useful,
Packit Service d40955
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service d40955
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service d40955
 * GNU General Public License for more details.
Packit Service d40955
 * 
Packit Service d40955
 * You should have received a copy of the GNU General Public License
Packit Service d40955
 * along with this program; if not, write to the Free Software
Packit Service d40955
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
Packit Service d40955
 * 02110-1301, USA. 
Packit Service d40955
 *
Packit Service d40955
 * $Id: //eng/vdo-releases/aluminum/src/c++/vdo/base/vdoResizeLogical.h#1 $
Packit Service d40955
 */
Packit Service d40955
Packit Service d40955
#ifndef VDO_RESIZE_LOGICAL_H
Packit Service d40955
#define VDO_RESIZE_LOGICAL_H
Packit Service d40955
Packit Service d40955
#include "types.h"
Packit Service d40955
Packit Service d40955
/**
Packit Service d40955
 * Grow the logical size of the VDO. This method may only be called when the
Packit Service d40955
 * VDO has been suspended and must not be called from a base thread.
Packit Service d40955
 *
Packit Service d40955
 * @param vdo               The VDO to grow
Packit Service d40955
 * @param newLogicalBlocks  The size to which the VDO should be grown
Packit Service d40955
 *
Packit Service d40955
 * @return VDO_SUCCESS or an error
Packit Service d40955
 **/
Packit Service d40955
int performGrowLogical(VDO *vdo, BlockCount newLogicalBlocks);
Packit Service d40955
Packit Service d40955
/**
Packit Service d40955
 * Prepare to grow the logical size of the VDO. This method may only be called
Packit Service d40955
 * while the VDO is running.
Packit Service d40955
 *
Packit Service d40955
 * @param vdo               The VDO to prepare for growth
Packit Service d40955
 * @param newLogicalBlocks  The size to which the VDO should be grown
Packit Service d40955
 *
Packit Service d40955
 * @return VDO_SUCCESS or an error
Packit Service d40955
 **/
Packit Service d40955
int prepareToGrowLogical(VDO *vdo, BlockCount newLogicalBlocks);
Packit Service d40955
Packit Service d40955
#endif /* VDO_RESIZE_LOGICAL_H */