Revision bbe4cc16 lib/bdev.py

b/lib/bdev.py
1820 1820
      if err.errno != errno.ENOENT:
1821 1821
        _ThrowError("Can't remove file '%s': %s", self.dev_path, err)
1822 1822

  
1823
  def Rename(self, new_id):
1824
    """Renames the file.
1825

  
1826
    """
1827
    # TODO: implement rename for file-based storage
1828
    _ThrowError("Rename is not supported for file-based storage")
1829

  
1830
  def Grow(self, amount):
1831
    """Grow the file
1832

  
1833
    @param amount: the amount (in mebibytes) to grow with
1834

  
1835
    """
1836
    # TODO: implement grow for file-based storage
1837
    _ThrowError("Grow not supported for file-based storage")
1838

  
1823 1839
  def Attach(self):
1824 1840
    """Attach to an existing file.
1825 1841

  

Also available in: Unified diff