Change cache mode for cifs mount to loose

master3.3
parent 993e8a71e2
commit 4758208c1e

@ -460,12 +460,14 @@ class Client(commandServer, encrypt):
"""Mount samba resource"""
if res in mountUidList:
# mount by uid
mountStr = "mount -t cifs -o user=%s,uid=%s,gid=%s,noperm"\
mountStr = \
"mount -t cifs -o cache=loose,user=%s,uid=%s,gid=%s,noperm"\
%(userName,uid,gid) +\
" //%s/%s %s" %(host, res, rpath)
else:
# mount by root
mountStr = "mount -t cifs -o user=%s"%(userName)+\
mountStr = \
"mount -t cifs -o cache=loose,user=%s"%(userName)+\
" //%s/%s %s" %(host, res, rpath)
textLine = self.execProg(mountStr, envProg={"PASSWD":userPwd})
return textLine

Loading…
Cancel
Save