1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-10-15 19:33:17 +03:00

vgcfgrestore: Retain allocatable PV attribute.

pvchange -xn was getting lost.
All PVs were set to allocatable again after restore.

Moved setting ALLOCATABLE_PV outside pv_setup().
This commit is contained in:
Alasdair G Kergon
2016-01-14 00:46:45 +00:00
parent 9e9c757541
commit 01228b692b
4 changed files with 6 additions and 9 deletions

View File

@@ -1818,10 +1818,6 @@ static int _text_pv_setup(const struct format_type *fmt,
pv->pe_count = (uint32_t) pe_count;
}
/* Unlike LVM1, we don't store this outside a VG */
/* FIXME Default from config file? vgextend cmdline flag? */
pv->status |= ALLOCATABLE_PV;
return 1;
}