Skip to content
Snippets Groups Projects
Commit bbe4cc16 authored by Iustin Pop's avatar Iustin Pop
Browse files

Add some stubs to bdev.FileStorage


This patch adds explicit errors (instead of notimplemented) in
FileStorage (and the associated TODOs).

Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarOlivier Tharan <olive@google.com>
parent 6af8a903
No related branches found
No related tags found
No related merge requests found
......@@ -1820,6 +1820,22 @@ class FileStorage(BlockDev):
if err.errno != errno.ENOENT:
_ThrowError("Can't remove file '%s': %s", self.dev_path, err)
def Rename(self, new_id):
"""Renames the file.
"""
# TODO: implement rename for file-based storage
_ThrowError("Rename is not supported for file-based storage")
def Grow(self, amount):
"""Grow the file
@param amount: the amount (in mebibytes) to grow with
"""
# TODO: implement grow for file-based storage
_ThrowError("Grow not supported for file-based storage")
def Attach(self):
"""Attach to an existing file.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment