* commit 'b63aab58065f5fb2a04c5d7c49f1d61bf7e17179': newfs_msdos: Set sectors per fat once
This commit is contained in:
commit
86b4dba9c4
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue