github.com/10XDev/rclone@v1.52.3-0.20200626220027-16af9ab76b2a/lib/file/preallocate_other.go (about) 1 //+build !windows,!linux 2 3 package file 4 5 import "os" 6 7 // PreallocateImplemented is a constant indicating whether the 8 // implementation of Preallocate actually does anything. 9 const PreallocateImplemented = false 10 11 // PreAllocate the file for performance reasons 12 func PreAllocate(size int64, out *os.File) error { 13 return nil 14 } 15 16 // SetSparseImplemented is a constant indicating whether the 17 // implementation of SetSparse actually does anything. 18 const SetSparseImplemented = false 19 20 // SetSparse makes the file be a sparse file 21 func SetSparse(out *os.File) error { 22 return nil 23 }