am 86b4dba9: am b63aab58: am 8218b6aa: newfs_msdos: Set sectors per fat once

* commit '86b4dba9c48841659c566ac71a034230f02ec259':
  newfs_msdos: Set sectors per fat once
This commit is contained in:
Daniel Rosenberg 2014-10-11 04:55:01 +00:00 committed by Android Git Automerger
commit 9011c1bc7a
1 changed files with 3 additions and 1 deletions

View File

@ -590,7 +590,9 @@ int newfs_msdos_main(int argc, char *argv[])
(bpb.spc * bpb.bps * NPB + fat / BPN * bpb.nft);
x2 = howmany((RESFTE + MIN(x, maxcls(fat))) * (fat / BPN), bpb.bps * NPB);
if (set_spf) {
bpb.bspf = x2;
if (!bpb.bspf) {
bpb.bspf = x2;
}
x1 += (bpb.bspf - 1) * bpb.nft;
}
if(set_res) {