mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +00:00
soliduiserver: do not detach when unmounting
while and operation in progress, such as copy job, will complete setting up the permissions of the destination will fail for example if the device is lazily-unmounted Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
0466b3421e
commit
176d2326b2
1 changed files with 2 additions and 2 deletions
|
@ -144,8 +144,8 @@ int SolidUiServerHelper::unmount(const QVariantMap ¶meters)
|
|||
const QString mountpoint = parameters.value("mountpoint").toString();
|
||||
|
||||
#ifdef Q_OS_LINUX
|
||||
const QByteArray mountpointbytes = mountpoint.toLocal8Bit();;
|
||||
const int umountresult = ::umount2(mountpointbytes.constData(), MNT_DETACH);
|
||||
const QByteArray mountpointbytes = mountpoint.toLocal8Bit();
|
||||
const int umountresult = ::umount2(mountpointbytes.constData(), 0);
|
||||
if (umountresult == 0) {
|
||||
return KAuthorization::NoError;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue