Commit 4b37cac5 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

storage: Add new function to execute operations

Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarIustin Pop <>
parent e9721add
......@@ -210,6 +210,9 @@ MODIFIABLE_STORAGE_FIELDS = {
# Local disk status
# Note: Code depends on LDS_OKAY < LDS_UNKNOWN < LDS_FAULTY
......@@ -64,6 +64,17 @@ class _Base:
raise errors.ProgrammerError("Unable to modify the following"
"fields: %r" % (changes.keys(), ))
def Execute(self, name, op):
"""Executes an operation on an entity within the storage unit.
@type name: string
@param name: Entity name
@type op: string
@param op: Operation name
raise NotImplementedError()
class FileStorage(_Base):
"""File storage unit.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment