From 7db746fd40e71cfca39404f813645eb8b6499559 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Fri, 15 Aug 2025 11:10:28 +1000 Subject: [PATCH] Add TODO on SEEK_DATA --- storage/sys_unix.go | 1 + 1 file changed, 1 insertion(+) diff --git a/storage/sys_unix.go b/storage/sys_unix.go index 625f420f..f294598c 100644 --- a/storage/sys_unix.go +++ b/storage/sys_unix.go @@ -12,6 +12,7 @@ import ( func seekData(f *os.File, offset int64) (ret int64, err error) { ret, err = unix.Seek(int(f.Fd()), offset, unix.SEEK_DATA) + // TODO: Handle filesystems that don't support sparse files. if err == unix.ENXIO { // File has no more data. Treat as short write like io.CopyN. err = io.EOF -- 2.51.0