Skip to content

Commit

Permalink
Fix getting default LVM cache metadata size from libblockdev
Browse files Browse the repository at this point in the history
Blivet expects all these sizes to be instance of blivet.size.Size
and not an integer.
  • Loading branch information
vojtechtrefny committed Jan 29, 2024
1 parent 108a44c commit 6238c91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blivet/devices/lvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -2311,7 +2311,7 @@ def autoset_md_size(self, enforced=False):

old_md_size = self._metadata_size
if self._metadata_size == 0 or enforced:
self._metadata_size = blockdev.lvm.cache_get_default_md_size(self._size)
self._metadata_size = Size(blockdev.lvm.cache_get_default_md_size(self._size))
log.debug("Using recommended metadata size: %s", self._metadata_size)

self._metadata_size = self.vg.align(self._metadata_size, roundup=True)
Expand Down

0 comments on commit 6238c91

Please sign in to comment.