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

16 lines
435 B
Python
Raw Normal View History

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