mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
recoverdisk: Fix comparison between stripesize and sectorsize
Discovered trying to read a 360KB floppy disk :-)
This commit is contained in:
parent
50c1e179b5
commit
d830cac9fe
1 changed files with 1 additions and 1 deletions
|
|
@ -482,7 +482,7 @@ main(int argc, char * const argv[])
|
|||
err(1, "DIOCGSECTORSIZE failed");
|
||||
|
||||
error = ioctl(fdr, DIOCGSTRIPESIZE, &stripesize);
|
||||
if (error == 0 && stripesize > sectorsize)
|
||||
if (error == 0 && stripesize < sectorsize)
|
||||
sectorsize = stripesize;
|
||||
|
||||
minsize = sectorsize;
|
||||
|
|
|
|||
Loading…
Reference in a new issue