1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

o remove spurious log message

This commit is contained in:
Joe Thornber 2001-10-09 14:42:58 +00:00
parent 83545752cf
commit f2473d0efe

View File

@ -31,18 +31,16 @@ static struct logical_volume *_find_lv(struct volume_group *vg,
struct list_head *tmp; struct list_head *tmp;
struct logical_volume *lv; struct logical_volume *lv;
struct lv_list *ll; struct lv_list *ll;
const char *ptr; const char *ptr = strrchr(name, '/') + 1;
list_for_each(tmp, &vg->lvs) { list_for_each(tmp, &vg->lvs) {
ll = list_entry(tmp, struct lv_list, list); ll = list_entry(tmp, struct lv_list, list);
lv = &ll->lv; lv = &ll->lv;
ptr = strrchr(name, '/') + 1;
if (!strcmp(ptr, lv->name)) if (!strcmp(ptr, lv->name))
return lv; return lv;
} }
log_info("couldn't find lv with name '%s'", name);
return NULL; return NULL;
} }
@ -512,4 +510,3 @@ int export_uuids(struct disk_list *dl, struct volume_group *vg)
} }
return 1; return 1;
} }