diff --git a/lib/filestream/filestream_openbsd.go b/lib/filestream/filestream_openbsd.go index 9e5383193..631a915d4 100644 --- a/lib/filestream/filestream_openbsd.go +++ b/lib/filestream/filestream_openbsd.go @@ -20,8 +20,8 @@ func (st *streamTracker) adviseDontNeed(n int, fdatasync bool) error { return fmt.Errorf("unix.Fsync error: %w", err) } } + st.offset += blockSize st.length -= blockSize - return nil } diff --git a/lib/fs/fs.go b/lib/fs/fs.go index b434b46b1..fb05fa876 100644 --- a/lib/fs/fs.go +++ b/lib/fs/fs.go @@ -338,6 +338,5 @@ func mustGetFreeSpace(path string) uint64 { if err := unix.Fstatfs(int(fd), &stat); err != nil { logger.Panicf("FATAL: cannot determine free disk space on %q: %s", path, err) } - return freeSpace(stat) }