Merge "Huawei driver: change CIFS rw to full control"

This commit is contained in:
Jenkins 2016-02-26 18:00:27 +00:00 committed by Gerrit Code Review
commit 934d7ec336
3 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ TMP_PATH_DST_PREFIX = "huawei_manila_tmp_path_dst_"
ACCESS_NFS_RW = "1"
ACCESS_NFS_RO = "0"
ACCESS_CIFS_RW = "5"
ACCESS_CIFS_FULLCONTROL = "1"
ACCESS_CIFS_RO = "0"
ERROR_CONNECT_TO_SERVER = -403

View File

@ -696,7 +696,7 @@ class V3StorageConnection(driver.HuaweiBase):
elif share_proto == 'CIFS':
if access_type == 'user':
if access_level == common_constants.ACCESS_LEVEL_RW:
access_level = constants.ACCESS_CIFS_RW
access_level = constants.ACCESS_CIFS_FULLCONTROL
else:
access_level = constants.ACCESS_CIFS_RO
else:

View File

@ -258,7 +258,7 @@ def allow_access(type, method, data):
if request_data['PERMISSION'] == '0':
allow_ro_flag = True
ret = success_data
elif request_data['PERMISSION'] == '5':
elif request_data['PERMISSION'] == '1':
allow_rw_flag = True
ret = success_data
# Group name should start with '@'.