Bug 1108516

Summary: [RFE] Make -L option accept <N>%FREE and <N>%PVS
Product: [Fedora] Fedora Reporter: Marian Csontos <mcsontos>
Component: lvm2Assignee: Zdenek Kabelac <zkabelac>
Status: ASSIGNED --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: agk, bmarzins, bmr, dwysocha, heinzm, jonathan, lvm-team, msnitzer, prajnoha, zkabelac
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marian Csontos 2014-06-12 07:42:14 UTC
I am fixing issues in a test suite using `lvcreate -L $SIZE...` to create LVs.

Usually there is absolute size passed (e.g. `4G`) but when creating larger LVs I want them not to exceed size of available PVs so want to be able to use `%PVS` or `%FREE` with -L.

Is there any reason why `100%PVS` should not be accepted with `-L`?

Comment 1 Alasdair Kergon 2014-06-12 13:22:25 UTC
Well it was simply an implementation matter that adding it to -l was easier than adding it to -L.  Anything is possible, but we have more important things to do so don't expect this any time soon.

Comment 2 Zdenek Kabelac 2014-11-25 14:25:35 UTC
I've partial patchset 'ready'- but accepting it globally is a bit more complicated (i.e. lvresize...)