mirror of
https://github.com/rclone/rclone.git
synced 2025-08-17 17:11:37 +02:00
lib/file: add Implemented constants
This commit is contained in:
@ -18,6 +18,10 @@ var (
|
||||
fallocFlagsIndex int32
|
||||
)
|
||||
|
||||
// PreallocateImplemented is a constant indicating whether the
|
||||
// implementation of Preallocate actually does anything.
|
||||
const PreallocateImplemented = true
|
||||
|
||||
// PreAllocate the file for performance reasons
|
||||
func PreAllocate(size int64, out *os.File) error {
|
||||
if size <= 0 {
|
||||
@ -45,6 +49,10 @@ again:
|
||||
return err
|
||||
}
|
||||
|
||||
// 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
|
||||
|
Reference in New Issue
Block a user