summaryrefslogtreecommitdiffstats
path: root/tdeioslave/media/mediamanager
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2022-03-26 23:54:14 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2022-03-26 23:54:14 +0900
commit88d92af3c14c0b0b9149440c1b5d38e8fb7cbd79 (patch)
tree5b660ea97d403e65a7d48cd607a4b42894f52b11 /tdeioslave/media/mediamanager
parent40ef766f02ea0e099a3fad77ed7eec519e2d5ec8 (diff)
downloadtdebase-88d92af3c14c0b0b9149440c1b5d38e8fb7cbd79.tar.gz
tdebase-88d92af3c14c0b0b9149440c1b5d38e8fb7cbd79.zip
hwmanager: use tdeio_media_mounthelper process to
mount/unmout/lock/unlock/ejct media devices. This ensures a consistent media device status also with complex partition structures and LUKS encryption. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdeioslave/media/mediamanager')
-rw-r--r--tdeioslave/media/mediamanager/tdehardwarebackend.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tdeioslave/media/mediamanager/tdehardwarebackend.cpp b/tdeioslave/media/mediamanager/tdehardwarebackend.cpp
index 2a54f6b6b..bb5849149 100644
--- a/tdeioslave/media/mediamanager/tdehardwarebackend.cpp
+++ b/tdeioslave/media/mediamanager/tdehardwarebackend.cpp
@@ -1427,6 +1427,7 @@ TQStringVariantMap TDEBackend::unmount(const TQString &id)
m_mediaList.removeMedium(uid, true);
}
+ ResetProperties(sdevice, false, true);
result["result"] = true;
return result;
}
@@ -1528,6 +1529,7 @@ TQStringVariantMap TDEBackend::lock(const TQString &id, bool releaseHolders)
}
}
+ ResetProperties(sdevice, false, true);
result["result"] = true;
return result;
}