bde7105a5b
As with Ganesha there is no direct way to bulk process a set of rules, in update_access() we just call down to the old allow/deny methods iteratively. However, they got underscore prefixed: {allow,deny}_access -> _{allow,deny}_access The update_access method has the update_access(base_path, share, add_rules, delete_rules, recovery_mode) interface. Drivers using a ganesha.NASHelperBase derived helpers and implementing the update_access(..., access_rules, add_rules, delete_rules, ...) interface should decide about recovery mode by access_rules content and pass down either access_rules or add_rules to the helper's update_rules as add_rules (respectively in recovery and normal mode, and also setting the recovery_mode flag appropriately). The driver is also responsible for checking the validity of the rules, for which we add support by the NASHelperBase supported_access_types supported_access_levels attributes and the utils._get_valid_access_rules utility method. Co-Authored-By: Ramana Raja <rraja@redhat.com> Implements bp ganesha-update-access Change-Id: Iea3a3ce3db44df792b5cf516979ff79c61d5b182 |
||
---|---|---|
.. | ||
__init__.py | ||
test_manager.py | ||
test_utils.py |