Add file sync to prevent data loss on power-off

This commit is contained in:
Terence Boldt 2020-12-15 21:51:28 -05:00
parent 9c0b548aab
commit 860c1c6308

View File

@ -262,6 +262,7 @@ func main() {
writeBlock(buffer)
file.WriteAt(buffer, int64(block) * 512)
file.Sync()
break
case GetTimeCommand:
/*