diskfs / go-diskfs

MIT License
494 stars 112 forks source link

Fix off-by-one error in GPT last data sector #220

Closed rjosephwright closed 3 months ago

rjosephwright commented 3 months ago

The last usable data sector should be the sector of the start of the backup partition table - 1, but it does not subtract the 1. This fixes it and adds an additional test with sgdisk to verify.