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.
30 lines
609 B
C
30 lines
609 B
C
/*
|
|
* Copyright (C) 2001 Sistina Software (UK) Limited.
|
|
*
|
|
* This file is released under the LGPL.
|
|
*/
|
|
|
|
#ifndef _LVM_UUID_MAP_H
|
|
#define _LVM_UUID_MAP_H
|
|
|
|
#include "uuid.h"
|
|
#include "dev-cache.h"
|
|
#include "pool.h"
|
|
|
|
/*
|
|
* Holds a mapping from uuid -> device.
|
|
*/
|
|
struct uuid_map;
|
|
|
|
struct uuid_map *uuid_map_create(struct dev_filter *devices);
|
|
void uuid_map_destroy(struct uuid_map *um);
|
|
|
|
/*
|
|
* Find the device with a particular uuid.
|
|
*/
|
|
struct device *uuid_map_lookup(struct uuid_map *um, struct id *id);
|
|
struct id *uuid_map_lookup_label(struct pool *mem, struct uuid_map *um,
|
|
const char *name);
|
|
|
|
#endif
|