LVM support #6

Closed
andrius wants to merge 109 commits from (deleted):lvm-support-rebase into master
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 19d899994e - Show all commits

View File

@ -499,15 +499,15 @@ void OperationStack::clearDevices()
@param p pointer to the Partition to find a Device for
@return the Device or nullptr if none could be found
*/
const Device* OperationStack::findDeviceForPartition(const Partition* p)
Device* OperationStack::findDeviceForPartition(const Partition* p)
{
QReadLocker lockDevices(&lock());
foreach(const Device *d, previewDevices()) {
foreach(Device *d, previewDevices()) {
if (d->partitionTable() == nullptr)
continue;
for (auto const &part : d->partitionTable()->children()) {
foreach (auto const *part, d->partitionTable()->children()) {
if (part == p)
return d;

View File

@ -81,7 +81,7 @@ public:
return m_Operations; /**< @return the list of operations */
}
const Device* findDeviceForPartition(const Partition* p);
Device* findDeviceForPartition(const Partition* p);
QReadWriteLock& lock() {
return m_Lock;