mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
e74999af51
o Text format now has a description and time field at the top level. o archiving and backup set the description appropriately. eg, for an archive: description = "Created *before* executing 'lvextend test_vg/lvol0 -l +1'." creation_time = 1013166332 for a backup: description = "Created *after* executing 'lvextend test_vg/lvol0 -l +1'." creation_time = 1013166332 This is preparing the way for a simple vgcfgundo command.
32 lines
657 B
C
32 lines
657 B
C
/*
|
|
* Copyright (C) 2001 Sistina Software (UK) Limited.
|
|
*
|
|
* This file is released under the LGPL.
|
|
*/
|
|
|
|
#ifndef _LVM_TEXT_IMPORT_EXPORT_H
|
|
#define _LVM_TEXT_IMPORT_EXPORT_H
|
|
|
|
#include "config.h"
|
|
#include "lvm-types.h"
|
|
#include "metadata.h"
|
|
#include "uuid-map.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
enum {
|
|
VG_FLAGS,
|
|
PV_FLAGS,
|
|
LV_FLAGS
|
|
};
|
|
|
|
int print_flags(uint32_t status, int type, char *buffer, size_t size);
|
|
int read_flags(uint32_t *status, int type, struct config_value *cv);
|
|
|
|
|
|
int text_vg_export(FILE *fp, struct volume_group *vg, const char *desc);
|
|
struct volume_group *text_vg_import(struct cmd_context *cmd, const char *file,
|
|
struct uuid_map *um);
|
|
|
|
#endif
|