|
|
@ -16,7 +16,7 @@ func CreateVolumeFile(fileName string, preallocate int64, memoryMapSizeMB uint32 |
|
|
|
} |
|
|
|
if preallocate != 0 { |
|
|
|
syscall.Fallocate(int(file.Fd()), 1, 0, preallocate) |
|
|
|
glog.V(0).Infof("Preallocated %d bytes disk space for %s", preallocate, fileName) |
|
|
|
glog.V(1).Infof("Preallocated %d bytes disk space for %s", preallocate, fileName) |
|
|
|
} |
|
|
|
return NewDiskFile(file), nil |
|
|
|
} |