PV resizing and PE infos #4

Closed
Ghost wants to merge 2 commits from lvm-support into lvm-support
First-time contributor
No description provided.
Owner

Hmm, one quick idea is maybe just cache

bool lvmFound = findExternal(QStringLiteral("lvm")) ? cmdSupportFileSystem : cmdSupportNone;
and then just do e.g. m_Shrink = lvmFound;

Then we will not need to uselessly look for the same executable a few times. I know, this is also the behaviour of some other filesystems in kpmcore but I should also fix them too.

I'll look at the rest of this patch tomorrow.

Hmm, one quick idea is maybe just cache *bool lvmFound = findExternal(QStringLiteral("lvm")) ? cmdSupportFileSystem : cmdSupportNone;* and then just do e.g. *m_Shrink = lvmFound;* Then we will not need to uselessly look for the same executable a few times. I know, this is also the behaviour of some other filesystems in kpmcore but I should also fix them too. I'll look at the rest of this patch tomorrow.
andrius closed this pull request 2016-05-26 16:20:51 +01:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: andrius/kpmcore#4
No description provided.