mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 15:36:27 +00:00
15 lines
436 B
Python
15 lines
436 B
Python
from .abstract import AbstractPartition
|
|
|
|
|
|
class SinglePartition(AbstractPartition):
|
|
"""Represents a single virtual partition on an unpartitioned volume
|
|
"""
|
|
|
|
def get_start(self):
|
|
"""Gets the starting byte of this partition
|
|
|
|
:return: The starting byte of this partition
|
|
:rtype: Sectors
|
|
"""
|
|
from bootstrapvz.common.sectors import Sectors
|
|
return Sectors(0, self.size.sector_size)
|