From: Matt Joiner Date: Fri, 15 Aug 2025 01:10:28 +0000 (+1000) Subject: Add TODO on SEEK_DATA X-Git-Tag: v1.59.0~1 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=7db746fd40e71cfca39404f813645eb8b6499559;p=btrtrc.git Add TODO on SEEK_DATA --- 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