Revision 63a3d8f7
b/lib/backend.py | ||
---|---|---|
2702 | 2702 |
@return: the normalized path if valid, None otherwise |
2703 | 2703 |
|
2704 | 2704 |
""" |
2705 |
if not constants.ENABLE_FILE_STORAGE: |
|
2705 |
if not (constants.ENABLE_FILE_STORAGE or |
|
2706 |
constants.ENABLE_SHARED_FILE_STORAGE): |
|
2706 | 2707 |
_Fail("File storage disabled at configure time") |
2707 | 2708 |
cfg = _GetConfig() |
2708 | 2709 |
fs_dir = os.path.normpath(fs_dir) |
b/lib/opcodes.py | ||
---|---|---|
334 | 334 |
raise errors.OpPrereqError("Unknown storage type: %s" % storage_type, |
335 | 335 |
errors.ECODE_INVAL) |
336 | 336 |
if storage_type == constants.ST_FILE: |
337 |
# TODO: What about shared file storage? |
|
337 | 338 |
RequireFileStorage() |
338 | 339 |
return True |
339 | 340 |
|
Also available in: Unified diff