You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
original:
def compare_extent(extent):
return extent.DiskNumber == disk._number and
from_large_integer(extent.StartingOffset) >= partition.get_start_offset_in_bytes() and
from_large_integer(extent.ExtentLength) <= partition.get_size_in_bytes()
return any(compare_extent(extent) for extent in actual)
this works:
def compare_extent(extent):
return extent.DiskNumber == disk._number and
from_large_integer(extent.StartingOffset) == partition.get_start_offset_in_bytes() and
from_large_integer(extent.ExtentLength) == partition.get_size_in_bytes()
return any(compare_extent(extent) for extent in actual)
The text was updated successfully, but these errors were encountered:
miegs74
changed the title
"def get_volume(self)" always return Volume4 in 4 - volume partition
"def get_volume(self)" always return Volume4 in 4 - volume(partitions) disk for all partitions
May 2, 2014
original:
def compare_extent(extent):
return extent.DiskNumber == disk._number and
from_large_integer(extent.StartingOffset) >= partition.get_start_offset_in_bytes() and
from_large_integer(extent.ExtentLength) <= partition.get_size_in_bytes()
return any(compare_extent(extent) for extent in actual)
this works:
def compare_extent(extent):
return extent.DiskNumber == disk._number and
from_large_integer(extent.StartingOffset) == partition.get_start_offset_in_bytes() and
from_large_integer(extent.ExtentLength) == partition.get_size_in_bytes()
return any(compare_extent(extent) for extent in actual)
The text was updated successfully, but these errors were encountered: