Merge "Huawei driver: change CIFS rw to full control"
This commit is contained in:
commit
934d7ec336
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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 '@'.
|
||||
|
|
Loading…
Reference in New Issue