mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
03888774a5
o For now vgcfgrestore -l <vg> displays this list. A bit hacky, but it'll get better.
41 lines
1004 B
C
41 lines
1004 B
C
/*
|
|
* Copyright (C) 2001 Sistina Software (UK) Limited.
|
|
*
|
|
* This file is released under the LGPL.
|
|
*/
|
|
|
|
#ifndef _LVM_FORMAT_TEXT_H
|
|
#define _LVM_FORMAT_TEXT_H
|
|
|
|
#include "lvm-types.h"
|
|
#include "metadata.h"
|
|
#include "uuid-map.h"
|
|
|
|
/*
|
|
* Archives a vg config. 'retain_days' is the minimum number of
|
|
* days that an archive file must be held for. 'min_archives' is
|
|
* the minimum number of archives required to be kept for each
|
|
* volume group.
|
|
*/
|
|
int archive_vg(struct volume_group *vg,
|
|
const char *dir,
|
|
const char *desc,
|
|
uint32_t retain_days,
|
|
uint32_t min_archive);
|
|
|
|
/*
|
|
* Displays a list of vg backups in a particular archive directory.
|
|
*/
|
|
int archive_list(struct cmd_context *cmd, struct uuid_map *um,
|
|
const char *dir, const char *vg);
|
|
|
|
/*
|
|
* The text format can read and write a volume_group to a file.
|
|
*/
|
|
struct format_instance *text_format_create(struct cmd_context *cmd,
|
|
const char *file,
|
|
struct uuid_map *um,
|
|
const char *desc);
|
|
|
|
#endif
|