Commit 7cbacba9 authored by Klaus Aehlig's avatar Klaus Aehlig
Browse files

Switch to our osminor



...and thus work around the bug in os.minor
Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Reviewed-by: default avatarHrvoje Ribicic <riba@google.com>
parent 01cf0021
......@@ -961,7 +961,7 @@ class PersistentBlockDevice(base.BlockDev):
return False
self.major = os.major(st.st_rdev)
self.minor = os.minor(st.st_rdev)
self.minor = utils.osminor(st.st_rdev)
self.attached = True
return True
......@@ -1097,7 +1097,7 @@ class RADOSBlockDevice(base.BlockDev):
return False
self.major = os.major(st.st_rdev)
self.minor = os.minor(st.st_rdev)
self.minor = utils.osminor(st.st_rdev)
self.attached = True
return True
......@@ -1458,7 +1458,7 @@ class ExtStorageDevice(base.BlockDev):
return False
self.major = os.major(st.st_rdev)
self.minor = os.minor(st.st_rdev)
self.minor = utils.osminor(st.st_rdev)
self.attached = True
return True
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment