[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[lvm-devel] [RFC PATCH 1/7] remove device scan from _text_create_text_instance



Usually the _text_create_text_instance function is called after device
scan is done, and as far as I understand, lvmcache_label_scan in the
_text_create_text_instance is not necessarily needed.


Signed-off-by: Takahiro Yasui <tyasui redhat com>
---
 lib/format_text/format-text.c |    2 --
 1 file changed, 2 deletions(-)

Index: LVM2.02.46-cvs-20090324/lib/format_text/format-text.c
===================================================================
--- LVM2.02.46-cvs-20090324.orig/lib/format_text/format-text.c
+++ LVM2.02.46-cvs-20090324/lib/format_text/format-text.c
@@ -1792,8 +1792,6 @@ static struct format_instance *_text_cre
 			dm_list_add(&fid->metadata_areas, &mda->list);
 		}
 
-		/* Scan PVs in VG for any further MDAs */
-		lvmcache_label_scan(fmt->cmd, 0);
 		if (!(vginfo = vginfo_from_vgname(vgname, vgid)))
 			goto_out;
 		dm_list_iterate_items(info, &vginfo->infos) {







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]