[lvm-devel] [PATCH] allocation: Allow "fuzzy" allocation when specifying size in percent

Zdenek Kabelac zkabelac at redhat.com
Tue Feb 11 10:28:27 UTC 2014


Dne 11.2.2014 00:29, Jonathan Brassow napsal(a):
> This patch is still a bit rough around the edges and needs accompanying
> tests before in can be checked-in.  If there are no objections to it,
> I'll clean it up a bit more and add the tests.
>
>   brassow
>
>
> Introduce a new parameter called "fuzzy_alloc" that is set when the
> desired size of a new LV is specified in percentage terms.  If set,
> the allocation code tries to get as much space as it can but does not
> fail if can at least get some.
>
> One of the practical implications is that users can now specify 100%FREE
> when creating RAID LVs, like this:
> ~> lvcreate --type raid5 -l 100%FREE -n lv vg
>
> (The stripe count is computed implicitly due to a previous patch, and
> the full size of the PVs in the VG is used.)
>

I wouldn't call it  'fuzzy' - I guess we've discussed something like -
extent exact or up-to given number of extents allocation


Zdenek







More information about the lvm-devel mailing list