I don't know what recent change may have caused this, but I had to introduce the
check to avoid a division by zero when scanning my partition map in order to be able to boot. I cannot spot any regressions, I can still access all my partitions just fine. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35757 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
809c5798b1
commit
5e144a360c
|
@ -361,6 +361,8 @@ Partition::Unset()
|
|||
bool
|
||||
Partition::CheckLocation(off_t sessionSize) const
|
||||
{
|
||||
if (fBlockSize == 0)
|
||||
return false;
|
||||
// offsets and size must be block aligned, partition table and partition must
|
||||
// lie within the session
|
||||
if (fPartitionTableOffset % fBlockSize != 0) {
|
||||
|
|
Loading…
Reference in New Issue