8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The FAT32 implementation doesn't appear to implement the FSInfo structure.
http://elm-chan.org/docs/fat_e.html#fsinfo
The text was updated successfully, but these errors were encountered:
The link seems broken.
Sorry, something went wrong.
Strange, its working for me!
Have a workaround by calling this after each update.
public void UpdateFsInfoFreeSpace() { var p = _data.Position; _data.Position = _bpbFSInfo * SectorSize; var fsInfo = StreamUtilities.ReadExact(_data, SectorSize); var usedSectors = UsedSpace / SectorSize; var freeSectors = TotalSectors - ReservedSectorCount - usedSectors; fsInfo[488 + 0] = (byte)(freeSectors & 0xff); fsInfo[488 + 1] = (byte)((freeSectors >> 8) & 0xff); fsInfo[488 + 2] = (byte)((freeSectors >> 16) & 0xff); fsInfo[488 + 3] = (byte)((freeSectors >> 24) & 0xff); _data.Position = _bpbFSInfo * SectorSize; _data.Write(fsInfo, 0, SectorSize); _data.Position = p; }
No branches or pull requests
The FAT32 implementation doesn't appear to implement the FSInfo structure.
http://elm-chan.org/docs/fat_e.html#fsinfo
The text was updated successfully, but these errors were encountered: