/*
 * Copyright (c) 2022 Huawei Technologies Co.,Ltd.
 *
 * DSS is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *
 *          http://license.coscl.org.cn/MulanPSL2
 *
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 * -------------------------------------------------------------------------
 *
 * dsscmd_volume.h
 *
 *
 * IDENTIFICATION
 *    src/cmd/dsscmd_volume.h
 *
 * -------------------------------------------------------------------------
 */

#ifndef DSSCMD_VOLUME_H_
#define DSSCMD_VOLUME_H_

#include "dss_param.h"

#define LENGTH_EIGHT_BYTE 8

typedef enum en_volume_modify_type {
    VOLUME_MODIFY_ADD = 0,
    VOLUME_MODIFY_REMOVE = 1,
    VOLUME_MODIFY_REPLACE = 2,
    VOLUME_MODIFY_ROLLBACK = 3,
} volume_modify_type_e;

status_t dss_create_vg(const char *vg_name, const char *volume_name, dss_config_t *inst_cfg, uint32 size);
status_t dss_modify_volume_offline(
    const char *home, const char *vg_name, const char *old_vol, const char *new_vol, volume_modify_type_e type);

#endif