diff options
Diffstat (limited to 'lib/format_text/import_vsn1.c')
-rw-r--r-- | lib/format_text/import_vsn1.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/format_text/import_vsn1.c b/lib/format_text/import_vsn1.c index 71181bde4..76442916f 100644 --- a/lib/format_text/import_vsn1.c +++ b/lib/format_text/import_vsn1.c @@ -1032,12 +1032,16 @@ static void _read_desc(struct dm_pool *mem, } /* - * It would be more accurate to call this _read_vgsummary(). * It is used to read vgsummary information about a VG * before locking and reading the VG via vg_read(). + * read_vgsummary: read VG metadata before VG is locked + * and save the data in struct vgsummary + * read_vg: read VG metadata after VG is locked + * and save the data in struct volume_group + * FIXME: why are these separate? */ -static int _read_vgname(const struct format_type *fmt, const struct dm_config_tree *cft, - struct lvmcache_vgsummary *vgsummary) +static int _read_vgsummary(const struct format_type *fmt, const struct dm_config_tree *cft, + struct lvmcache_vgsummary *vgsummary) { const struct dm_config_node *vgn; struct dm_pool *mem = fmt->cmd->mem; @@ -1088,7 +1092,7 @@ static struct text_vg_version_ops _vsn1_ops = { .check_version = _vsn1_check_version, .read_vg = _read_vg, .read_desc = _read_desc, - .read_vgname = _read_vgname, + .read_vgsummary = _read_vgsummary }; struct text_vg_version_ops *text_vg_vsn1_init(void) |