Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"def get_volume(self)" always return Volume4 in 4 - volume(partitions) disk for all partitions #1

Open
miegs74 opened this issue May 2, 2014 · 0 comments

Comments

@miegs74
Copy link

miegs74 commented 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)

@miegs74 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant