mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
o lift call to check out of pvcreate_single
This commit is contained in:
parent
0d5f9868b8
commit
48c4f95d4d
@ -62,9 +62,6 @@ static void pvcreate_single(const char *name)
|
|||||||
{
|
{
|
||||||
struct physical_volume *pv;
|
struct physical_volume *pv;
|
||||||
|
|
||||||
if (!_check(name))
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (arg_count(force_ARG)) {
|
if (arg_count(force_ARG)) {
|
||||||
log_print("WARNING: forcing physical volume creation on %s",
|
log_print("WARNING: forcing physical volume creation on %s",
|
||||||
name);
|
name);
|
||||||
@ -106,6 +103,10 @@ int pvcreate(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < argc; i++) {
|
for (i = 0; i < argc; i++) {
|
||||||
|
|
||||||
|
if (!_check(argv[i]))
|
||||||
|
continue;
|
||||||
|
|
||||||
pvcreate_single(argv[i]);
|
pvcreate_single(argv[i]);
|
||||||
pool_empty(ios->mem);
|
pool_empty(ios->mem);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user