2018-10-11 05:58:10 |
Brin Zhang |
description |
In manila, Using the cifs protocol in Manila's Shared File Systems, when it is not able to store properly when written in a file, you need to convert the file permission 'rw' to 'rwx' in the [1] method.
@staticmethod
def transfer_rule_to_client(proto, rule):
"""transfer manila access rule to backend client"""
# TODO: Here need to process the rule of ``cifs``
return dict(name=rule['access_to'],
type=(0 if proto == 'nfs' else 1),
authority=rule['access_level'])
[1] https://github.com/openstack/manila/blob/master/manila/share/drivers/inspur/as13000/as13000_nas.py#L465 |
In manila, Using the cifs protocol in Manila's Shared File Systems, the files can be read\write, but cannot be create\copy\delete in AS13000, so need to convert the file permission 'rw' to 'rwx' in the [1] method in Manila.
@staticmethod
def transfer_rule_to_client(proto, rule):
"""transfer manila access rule to backend client"""
# TODO: Here need to process the rule of ``cifs``
return dict(name=rule['access_to'],
type=(0 if proto == 'nfs' else 1),
authority=rule['access_level'])
[1] https://github.com/openstack/manila/blob/master/manila/share/drivers/inspur/as13000/as13000_nas.py#L465 |
|