mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
25b733809a
Lots of changes/very little testing so far => there'll be bugs! Use 'vgcreate -M text' to create a volume group with its metadata stored in text files. Text format metadata changes should be reasonably atomic, with a (basic) automatic recovery mechanism if the system crashes while a change is in progress. Add a metadata section to lvm.conf to specify multiple directories if you want (recommended) to keep multiple copies of the metadata (eg on different filesystems). e.g. metadata { dirs = ["/etc/lvm/metadata1","/usr/local/lvm/metadata2"] } Plenty of refinements still in the pipeline.
38 lines
755 B
C
38 lines
755 B
C
/*
|
|
* Copyright (C) 2001 Sistina Software (UK) Limited.
|
|
*
|
|
* This file is released under the LGPL.
|
|
*
|
|
*/
|
|
|
|
#ifndef _LVM_TOOLCONTEXT_H
|
|
#define _LVM_TOOLCONTEXT_H
|
|
|
|
#include "dev-cache.h"
|
|
#include "config.h"
|
|
#include "pool.h"
|
|
#include "metadata.h"
|
|
|
|
/* command-instance-related variables needed by library */
|
|
struct cmd_context {
|
|
/* format handler allocates all objects from here */
|
|
struct pool *mem;
|
|
|
|
struct format_type *fmt; /* Current format to use by default */
|
|
|
|
/* FIXME Move into dynamic list */
|
|
struct format_type *fmt1; /* Format1 */
|
|
struct format_type *fmtt; /* Format_text */
|
|
|
|
char *cmd_line;
|
|
char *dev_dir;
|
|
struct dev_filter *filter;
|
|
struct config_file *cf;
|
|
|
|
struct command *command;
|
|
struct uuid_map *um;
|
|
struct arg *args;
|
|
};
|
|
|
|
#endif
|