mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-12 16:10:03 +01:00
Support logical volume sizing in logical extents units
This allows us to create a lv with size 100%FREE for all the availeable size of the VG, etc.
This commit is contained in:
parent
7328d8b41e
commit
84214f3e3c
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ let {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
create.lv = q: x: ''
|
create.lv = q: x: ''
|
||||||
lvcreate -L ${x.size} -n ${q.name} ${q.vgname}
|
lvcreate ${if hasInfix "%" x.size then "-l" else "-L"} ${x.size} -n ${q.name} ${q.vgname}
|
||||||
${create-f { device = "/dev/mapper/${q.vgname}-${q.name}"; } x.content}
|
${create-f { device = "/dev/mapper/${q.vgname}-${q.name}"; } x.content}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue