data['ip'] = getValue(mount.findall("ip"), "192.168.0.0").encode("UTF-8")
data['sharedir'] = getValue(mount.findall("sharedir"), "/exports/").encode("UTF-8")
data['sharename'] = getValue(mount.findall("sharename"), "MEDIA").encode("UTF-8")
- data['options'] = getValue(mount.findall("options"), "rw,nolock").encode("UTF-8")
+ data['options'] = getValue(mount.findall("options"), "rw,nolock,tcp").encode("UTF-8")
print "NFSMOUNT",data
self.automounts[data['sharename']] = data
except Exception, e:
if tmpsharedir[-1:] == "$":
tmpdir = tmpsharedir.replace("$", "\\$")
tmpsharedir = tmpdir
- nfscmd = 'mount -o nolock -t nfs ' + data['ip'] + ':' + tmpsharedir + ' ' + path
+ nfscmd = 'mount -o nolock,tcp -t nfs ' + data['ip'] + ':' + tmpsharedir + ' ' + path
print "[AutoMount.py] nfsscmd--->",nfscmd
self.MountConsole.ePopen(nfscmd, self.CheckMountPointFinished, [data, callback])
if data['mounttype'] == 'cifs' and data['active'] is True:
if self.mountinfo.has_key('options'):
options = self.mountinfo['options']
else:
- options = "rw,nolock"
+ options = "rw,nolock,tcp"
if self.mountinfo.has_key('username'):
username = self.mountinfo['username']
else:
sharedir = "/export/hdd"
if options is False:
if mounttype == "nfs":
- options = "rw,nolock"
+ options = "rw,nolock,tcp"
else:
options = "rw"
if username is False:
if self.mounttypeConfigEntry.value == "cifs":
self.optionsConfigEntry = NoSave(ConfigText(default = "rw", visible_width = 50, fixed_size = False))
else:
- self.optionsConfigEntry = NoSave(ConfigText(default = "rw,nolock", visible_width = 50, fixed_size = False))
+ self.optionsConfigEntry = NoSave(ConfigText(default = "rw,nolock,tcp", visible_width = 50, fixed_size = False))
self.optionsEntry = getConfigListEntry(_("Mount options"), self.optionsConfigEntry)
self.list.append(self.optionsEntry)
if self.mounttypeConfigEntry.value == "cifs":
data['ip'] = selection[2]
data['sharename'] = selection[1]
data['sharedir'] = selection[4]
- data['options'] = "rw,nolock"
+ data['options'] = "rw,nolock,tcp"
for sharename, sharedata in mounts.items():
if sharedata['ip'] == selection[2] and sharedata['sharedir'] == selection[4]: