1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00
lvm2/lib/format_text/format-text.h

38 lines
972 B
C
Raw Normal View History

2001-11-21 12:20:05 +03:00
/*
* Copyright (C) 2001 Sistina Software (UK) Limited.
*
* This file is released under the LGPL.
*/
#ifndef _LVM_FORMAT_TEXT_H
#define _LVM_FORMAT_TEXT_H
2001-12-20 14:52:54 +03:00
#include "lvm-types.h"
#include "metadata.h"
#include "uuid-map.h"
2001-12-20 14:52:54 +03:00
2002-01-07 12:05:31 +03:00
/*
* The archive format is used to maintain a set of metadata backup files
* in an archive directory.
* 'retain_days' is the minimum number of days that an archive file must
2002-01-07 12:05:31 +03:00
* be held for.
*
* 'min_archives' is the minimum number of archives required to be kept
* for each volume group.
2002-01-07 12:05:31 +03:00
*/
struct format_instance *archive_format_create(struct cmd_context *cmd,
2001-12-17 22:46:10 +03:00
const char *dir,
uint32_t retain_days,
uint32_t min_archives);
2001-12-17 22:46:10 +03:00
void backup_expire(struct format_instance *fi);
2001-11-21 12:20:05 +03:00
2002-01-07 12:05:31 +03:00
/*
* 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);
2002-01-07 12:05:31 +03:00
2001-11-21 12:20:05 +03:00
#endif