mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-13 14:40:22 +00:00
Correctly recognize both bogus and genuine BSD disklabels.
Don't expect me to participate in a discussion which is which. Sponsored by: DARPA & NAI Labs.
This commit is contained in:
parent
da58ad34ef
commit
fb8b107e52
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106385
@ -614,7 +614,10 @@ bd_opendisk(struct open_disk **odp, struct i386_devdesc *dev)
|
||||
DEBUG("warning, partition marked as unused");
|
||||
#endif
|
||||
|
||||
od->od_boff = lp->d_partitions[dev->d_kind.biosdisk.partition].p_offset;
|
||||
od->od_boff =
|
||||
lp->d_partitions[dev->d_kind.biosdisk.partition].p_offset -
|
||||
lp->d_partitions[RAW_PART].p_offset +
|
||||
sector;
|
||||
}
|
||||
|
||||
out:
|
||||
|
Loading…
Reference in New Issue
Block a user