RestoreDisk

class nla_control.models.RestoreDisk(*args, **kwargs)

Allocated area(s) of disk(s) to hold restored files. Restore will find a space on one of these RestoreDisks to write the files to.

Variables
  • mountpoint (models.CharField) -- the path to the restore area

  • allocated_bytes (FileSizeField) -- the allocated size of the restore area (in bytes)

  • used_bytes (FileSizeField) -- the amount of space used of the restore area (in bytes). Updated by update() method.

exception DoesNotExist
exception MultipleObjectsReturned
update()

Update the number of bytes used on the RestoreDisk by summing the size of each TapeFile that is restored to this RestoreDisk