From 6887f7bc5f73bc1617683ee86ad074e2ef4a5bb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A5=D0=B8=D1=80=D0=B5=D1=86=D0=BA=D0=B8=D0=B9=20=D0=9C?= =?UTF-8?q?=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Thu, 10 Sep 2020 13:25:35 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=BF=D0=B0=D1=80=D0=B0?= =?UTF-8?q?=D0=BC=D0=B5=D1=82=D1=80=D0=B0=20forcemandatory=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B8=20=D0=BC=D0=BE=D0=BD=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D0=B8=20cifs=20=D1=80=D0=B5=D1=81=D1=83=D1=80?= =?UTF-8?q?=D1=81=D0=BE=D0=B2=20=D1=82=D0=BE=D0=BB=D1=8C=D0=BA=D0=BE=20?= =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20remote?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Обычная Share блокирует ресурсы слишком агрессивно. --- pym/client/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/client/client.py b/pym/client/client.py index 92b876a..a144a2a 100644 --- a/pym/client/client.py +++ b/pym/client/client.py @@ -290,8 +290,6 @@ class Client(commandServer, encrypt, Desktop): addon = "" if cmpVersion(self.clVars.Get('cl_cifs_ver'), "2.05") >= 0: addon = ",nomapposix" - if cmpVersion(self.clVars.Get('cl_cifsutils_ver'), "6.9_rc73") >= 0: - addon += ",forcemandatorylock" cache_method = self.clVars.Get('cl_cifs_cache') domain = self.get_server_domainname(host) cifs_mount_vers = self.clVars.Get('cl_cifs_mount_vers') @@ -305,6 +303,8 @@ class Client(commandServer, encrypt, Desktop): envdict={"PASSWD": userPwd}, stderr=STDOUT) return p.success() else: + if cmpVersion(self.clVars.Get('cl_cifsutils_ver'), "6.9_rc73") >= 0: + addon += ",forcemandatorylock" p = process(mountCmd, "-t", "cifs", "-o", "cache=%s,domain=%s,vers=%s,user=%s%s" % (cache_method, domain, cifs_mount_vers, userName, addon),