diff options
author | Alasdair Kergon <agk@redhat.com> | 2002-04-24 18:20:51 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2002-04-24 18:20:51 +0000 |
commit | 25b733809adcd2f6a8f288c100085068094dcc8a (patch) | |
tree | de7aea488a1c717d589134b324c664ba4aa505a7 /lib/format_text/format-text.h | |
parent | f06bdc437d7eab9569f80ba40cbfca55ffa27104 (diff) | |
download | lvm2-25b733809adcd2f6a8f288c100085068094dcc8a.tar.gz lvm2-25b733809adcd2f6a8f288c100085068094dcc8a.tar.xz lvm2-25b733809adcd2f6a8f288c100085068094dcc8a.zip |
Merge with text format branch.
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.
Diffstat (limited to 'lib/format_text/format-text.h')
-rw-r--r-- | lib/format_text/format-text.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/format_text/format-text.h b/lib/format_text/format-text.h index 6dbd1844..d5c77c71 100644 --- a/lib/format_text/format-text.h +++ b/lib/format_text/format-text.h @@ -32,9 +32,8 @@ int archive_list(struct cmd_context *cmd, struct uuid_map *um, /* * 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); +struct format_type *create_text_format(struct cmd_context *cmd); +void *create_text_context(struct format_type *fmt, const char *path, + const char *desc); #endif |