Revision 4b37cac5
b/lib/constants.py | ||
---|---|---|
210 | 210 |
ST_LVM_PV: frozenset([SF_ALLOCATABLE]), |
211 | 211 |
} |
212 | 212 |
|
213 |
VALID_STORAGE_OPERATIONS = { |
|
214 |
} |
|
215 |
|
|
213 | 216 |
# Local disk status |
214 | 217 |
# Note: Code depends on LDS_OKAY < LDS_UNKNOWN < LDS_FAULTY |
215 | 218 |
(LDS_OKAY, |
b/lib/storage.py | ||
---|---|---|
64 | 64 |
raise errors.ProgrammerError("Unable to modify the following" |
65 | 65 |
"fields: %r" % (changes.keys(), )) |
66 | 66 |
|
67 |
def Execute(self, name, op): |
|
68 |
"""Executes an operation on an entity within the storage unit. |
|
69 |
|
|
70 |
@type name: string |
|
71 |
@param name: Entity name |
|
72 |
@type op: string |
|
73 |
@param op: Operation name |
|
74 |
|
|
75 |
""" |
|
76 |
raise NotImplementedError() |
|
77 |
|
|
67 | 78 |
|
68 | 79 |
class FileStorage(_Base): |
69 | 80 |
"""File storage unit. |
Also available in: Unified diff