disk file avoid file.Stat()

This commit is contained in:
Chris Lu
2021-02-20 20:06:06 -08:00
parent a2383b3b12
commit 7635f6b9fa
3 changed files with 12 additions and 3 deletions

View File

@@ -92,7 +92,7 @@ func main() {
header := superBlock.Bytes()
if n, e := datFile.WriteAt(header, 0); n == 0 || e != nil {
if n, e := datBackend.WriteAt(header, 0); n == 0 || e != nil {
glog.Fatalf("cannot write super block: %v", e)
}