Merge pull request #15281 from MarkintoshZ/preallocate-docs

Show darwin as supported in fileutil.Preallocate docstring
storage-doc
Benjamin Wang 2023-04-11 06:33:08 +08:00 committed by GitHub
commit 0406ab9a29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -19,9 +19,9 @@ import (
"os" "os"
) )
// Preallocate tries to allocate the space for given // Preallocate tries to allocate the space for given file. This
// file. This operation is only supported on linux by a // operation is only supported on darwin and linux by a few
// few filesystems (btrfs, ext4, etc.). // filesystems (APFS, btrfs, ext4, etc.).
// If the operation is unsupported, no error will be returned. // If the operation is unsupported, no error will be returned.
// Otherwise, the error encountered will be returned. // Otherwise, the error encountered will be returned.
func Preallocate(f *os.File, sizeInBytes int64, extendFile bool) error { func Preallocate(f *os.File, sizeInBytes int64, extendFile bool) error {