summaryrefslogtreecommitdiffstats
path: root/tools/vgscan.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2002-04-24 18:20:51 +0000
committerAlasdair Kergon <agk@redhat.com>2002-04-24 18:20:51 +0000
commit25b733809adcd2f6a8f288c100085068094dcc8a (patch)
treede7aea488a1c717d589134b324c664ba4aa505a7 /tools/vgscan.c
parentf06bdc437d7eab9569f80ba40cbfca55ffa27104 (diff)
downloadlvm2-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 'tools/vgscan.c')
-rw-r--r--tools/vgscan.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/vgscan.c b/tools/vgscan.c
index 938553c4..504f5347 100644
--- a/tools/vgscan.c
+++ b/tools/vgscan.c
@@ -46,13 +46,14 @@ static int vgscan_single(struct cmd_context *cmd, const char *vg_name)
log_verbose("Checking for volume group \"%s\"", vg_name);
- if (!(vg = cmd->fid->ops->vg_read(cmd->fid, vg_name))) {
+ if (!(vg = vg_read(cmd, vg_name))) {
log_error("Volume group \"%s\" not found", vg_name);
return ECMD_FAILED;
}
- log_print("Found %svolume group \"%s\"",
- (vg->status & EXPORTED_VG) ? "exported " : "", vg_name);
+ log_print("Found %svolume group \"%s\" using metadata type %s",
+ (vg->status & EXPORTED_VG) ? "exported " : "", vg_name,
+ vg->fid->fmt->name);
return 0;
}