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