local: factor PreAllocate and SetSparse to lib/file

This commit is contained in:
Nick Craig-Wood
2020-04-19 15:18:49 +01:00
parent 1f50b70919
commit 36d2c46bcf
5 changed files with 28 additions and 28 deletions
+15
View File
@@ -0,0 +1,15 @@
//+build !windows,!linux
package file
import "os"
// PreAllocate the file for performance reasons
func PreAllocate(size int64, out *os.File) error {
return nil
}
// SetSparse makes the file be a sparse file
func SetSparse(out *os.File) error {
return nil
}