From 12d8742e29c5903d3b41a500bb9ffe2efe26b4a1 Mon Sep 17 00:00:00 2001 From: Mark Zhang Date: Fri, 10 Feb 2023 17:40:11 +0000 Subject: [PATCH] Show darwin as supported in fileutil.Preallocate docstring Signed-off-by: Mark Zhang --- client/pkg/fileutil/preallocate.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/pkg/fileutil/preallocate.go b/client/pkg/fileutil/preallocate.go index c747b7cf8..b06c6ca1c 100644 --- a/client/pkg/fileutil/preallocate.go +++ b/client/pkg/fileutil/preallocate.go @@ -19,9 +19,9 @@ import ( "os" ) -// Preallocate tries to allocate the space for given -// file. This operation is only supported on linux by a -// few filesystems (btrfs, ext4, etc.). +// Preallocate tries to allocate the space for given file. This +// operation is only supported on darwin and linux by a few +// filesystems (APFS, btrfs, ext4, etc.). // If the operation is unsupported, no error will be returned. // Otherwise, the error encountered will be returned. func Preallocate(f *os.File, sizeInBytes int64, extendFile bool) error {