Отключно указание версии используемой cifs

legacy27 3.6.1.6
parent 23f9d51922
commit ccb76adeaf

@ -294,20 +294,19 @@ class Client(commandServer, encrypt, Desktop):
cache_method = self.clVars.Get('cl_cifs_cache')
domain = self.clVars.Get('cl_remote_domain') or \
self.get_server_domainname(host)
cifs_mount_vers = self.clVars.Get('cl_cifs_mount_vers')
if not uid is None:
# mount by uid
p = process(mountCmd, "-t", "cifs", "-o",
"cache=%s,domain=%s,user=%s,uid=%d,gid=%d,noperm%s" % (
cache_method, domain, cifs_mount_vers,
cache_method, domain,
userName, uid, gid, nomapposix),
"//%s/%s" % (host, res), rpath,
envdict={"PASSWD": userPwd}, stderr=STDOUT)
return p.success()
else:
p = process(mountCmd, "-t", "cifs", "-o",
"cache=%s,domain=%s,vers=%s,user=%s%s" % (cache_method,
domain, cifs_mount_vers, userName, nomapposix),
"cache=%s,domain=%s,user=%s%s" % (cache_method,
domain, userName, nomapposix),
"//%s/%s" % (host, res), rpath,
envdict={"PASSWD": userPwd}, stderr=STDOUT)
return p.success()

Loading…
Cancel
Save