[blivet] bump size of non-existent devices to format min

David Lehman dlehman at redhat.com
Thu Jul 16 18:20:04 UTC 2015


This is another followup to the patch from last week that checks
device size against new format limits.

This one covers the case of a partition or lv instantiated with a size
that's too small for its format metadata. This is going to happen
regularly when people have kickstarts that do this:

  part pv.01 --size=1 --grow

(The lvmpv format has a min size of 8 MiB.)

This seems reasonable to me because I cannot imagine anyone actually
wanting a device smaller than any estimated minimum size for the
format. When that person does come along, he/she can be told that
is something they will have to do outside of anaconda (and blivet).

For the sake of completeness, the other options to handle this were:

  1. raise an exception when the size is too small (current behavior)
  2. add some machinery to blivet to postpone the checks for growable
     partitions and lvs until after they've been allocated

My assessment:
#1 is too user-hostile and #2 is too much work to accommodate a fairly
silly corner case (user wants to make a really tiny PV or BTRFS member).



More information about the anaconda-patches mailing list