rclone/lib/file/preallocate_other.go

25 lines
604 B
Go
Raw Permalink Normal View History

2021-09-09 14:25:25 +02:00
//go:build !windows && !linux
// +build !windows,!linux
package file
import "os"
2020-05-19 11:15:20 +02:00
// PreallocateImplemented is a constant indicating whether the
// implementation of Preallocate actually does anything.
const PreallocateImplemented = false
// PreAllocate the file for performance reasons
func PreAllocate(size int64, out *os.File) error {
return nil
}
2020-05-19 11:15:20 +02:00
// SetSparseImplemented is a constant indicating whether the
// implementation of SetSparse actually does anything.
const SetSparseImplemented = false
// SetSparse makes the file be a sparse file
func SetSparse(out *os.File) error {
return nil
}