mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Show darwin as supported in fileutil.Preallocate docstring
Signed-off-by: Mark Zhang <bf-109g2@hotmail.com>
This commit is contained in:
parent
87e271701b
commit
12d8742e29
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user