Commit f8bd640
fix: Correctly check PVs for grow_to_fill feature
We need to check the size of the PV format and compare it to the
size of the underlying block device when deciding if the format
size should be grown. The size of the VG (self._device here) is
not relevant for this operation.
This code used to work because of a bug in blivet where size of
the VG was incorrectly calculated for PVs with size not matching
the underlying block device size, this was fixed in blivet (see
storaged-project/blivet#1334) so the
grow_to_fill feature no longer works without this fix.1 parent 3b66fcb commit f8bd640
1 file changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1854 | 1854 | | |
1855 | 1855 | | |
1856 | 1856 | | |
1857 | | - | |
1858 | | - | |
1859 | | - | |
1860 | 1857 | | |
1861 | 1858 | | |
1862 | | - | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
1863 | 1864 | | |
1864 | 1865 | | |
1865 | 1866 | | |
1866 | | - | |
1867 | | - | |
1868 | 1867 | | |
1869 | 1868 | | |
1870 | 1869 | | |
| |||
0 commit comments