libfis: do not lie about logical sector units
This commit is contained in:
parent
4cfd5cb02e
commit
5baafe7307
1 changed files with 1 additions and 7 deletions
|
@ -414,9 +414,6 @@ rwfis(Sfis *f, uchar *c, int rw, int nsect, uvlong lba)
|
||||||
Pout|Pdma|P28, Pout|Pdma|P48,
|
Pout|Pdma|P28, Pout|Pdma|P48,
|
||||||
};
|
};
|
||||||
|
|
||||||
nsect >>= f->physshift;
|
|
||||||
lba >>= f->physshift;
|
|
||||||
|
|
||||||
udma = f->udma != 0xff;
|
udma = f->udma != 0xff;
|
||||||
llba = (f->feat & Dllba) != 0;
|
llba = (f->feat & Dllba) != 0;
|
||||||
acmd = tab[udma][rw][llba];
|
acmd = tab[udma][rw][llba];
|
||||||
|
@ -448,7 +445,7 @@ rwfis(Sfis *f, uchar *c, int rw, int nsect, uvlong lba)
|
||||||
}
|
}
|
||||||
|
|
||||||
uvlong
|
uvlong
|
||||||
fisrw(Sfis *f, uchar *c, int *n)
|
fisrw(Sfis *, uchar *c, int *n)
|
||||||
{
|
{
|
||||||
uvlong lba;
|
uvlong lba;
|
||||||
|
|
||||||
|
@ -461,9 +458,6 @@ fisrw(Sfis *f, uchar *c, int *n)
|
||||||
*n = c[Fsc];
|
*n = c[Fsc];
|
||||||
*n |= c[Fsc8] << 8;
|
*n |= c[Fsc8] << 8;
|
||||||
|
|
||||||
*n >>= f->physshift;
|
|
||||||
lba >>= f->physshift;
|
|
||||||
|
|
||||||
return lba;
|
return lba;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue