bootstrap-vz/bootstrapvz/base/fs/partitions/single.py

16 lines
390 B
Python
Raw Normal View History

from abstract import AbstractPartition
class SinglePartition(AbstractPartition):
2014-03-23 16:04:03 +01:00
"""Represents a single virtual partition on an unpartitioned volume
"""
2014-01-19 01:02:29 +01:00
def get_start(self):
2014-03-23 16:04:03 +01:00
"""Gets the starting byte of this partition
:return: The starting byte of this partition
:rtype: Sectors
2014-03-23 16:04:03 +01:00
"""
from bootstrapvz.common.sectors import Sectors
return Sectors(0, self.size.sector_size)