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

o fail if create_pv_list would produce an empty list.

This commit is contained in:
Joe Thornber 2002-01-21 16:15:25 +00:00
parent 4d67a0787f
commit b926605531

View File

@ -312,7 +312,6 @@ struct list *create_pv_list(struct pool *mem,
log_err("No free extents on physical volume %s",
argv[i]);
continue;
/* FIXME Buy check not empty at end! */
}
if (!(new_pvl = pool_alloc(mem, sizeof(*new_pvl)))) {
@ -324,5 +323,5 @@ struct list *create_pv_list(struct pool *mem,
list_add(r, &new_pvl->list);
}
return r;
return list_empty(r) ? r : NULL;
}