VictoriaMetrics/lib/fs
Nikolay c32032ac1b
lib/fs: properly call windows APIs (#6998)
Previously we manually imported system windows DDLs
and made direct syscall.

 But golang exposes syscall wrappers with sys/windows package.
It seems, that direct syscall was broken at 1.23 golang release. It was
`GetDiskFreeSpace` syscall in our case.

This commit replaces all manual syscalls with wrappers

Related issue:
https://github.com/VictoriaMetrics/VictoriaMetrics/issues/6973

Related golang issue:
https://github.com/golang/go/issues/69029

Signed-off-by: f41gh7 <nik@victoriametrics.com>
2024-09-13 13:19:04 +02:00
..
fscore lib/fs/fscore: do not trim content from path (#6503) 2024-06-19 10:37:12 +02:00
dir_remover.go lib/fs: support NFS implementations that return EEXIST instead of ENOTEMPTY (#6398) 2024-06-04 15:30:48 +02:00
fadvise_darwin.go vlinsert: added opentelemetry logs support 2024-09-03 20:24:01 +02:00
fadvise_openbsd.go lib/fs: fix GOOS=openbsd build by adding fadviseSequentialRead implementation. 2020-10-05 23:32:28 +03:00
fadvise_solaris.go fixes solaris build (#1345) 2021-06-04 11:56:06 +03:00
fadvise_unix.go all: cleanup: remove // +build ... lines, since they are no longer needed after Go1.17, and the minimum supported Go version for VictoriaMetrics source code is Go1.20 2023-11-13 19:15:42 +01:00
fs_nix.go lib: consistently use atomic.* types instead of atomic.* functions 2024-02-24 02:10:04 +02:00
fs_openbsd.go lib: consistently use atomic.* types instead of atomic.* functions 2024-02-24 02:10:04 +02:00
fs_solaris.go testing: allow disabling fsync to make tests run faster (#6871) 2024-08-30 11:18:21 +02:00
fs_test.go all: allow dynamically reading *AuthKey flag values from files and urls 2024-01-22 01:23:23 +02:00
fs_unix.go testing: allow disabling fsync to make tests run faster (#6871) 2024-08-30 11:18:21 +02:00
fs_windows.go lib/fs: properly call windows APIs (#6998) 2024-09-13 13:19:04 +02:00
fs.go testing: allow disabling fsync to make tests run faster (#6871) 2024-08-30 11:18:21 +02:00
reader_at_test.go all: use os.{Read|Write}File instead of ioutil.{Read|Write}File 2022-08-21 23:55:20 +03:00
reader_at_timing_test.go all: use os.{Read|Write}File instead of ioutil.{Read|Write}File 2022-08-21 23:55:20 +03:00
reader_at.go lib: consistently use atomic.* types instead of atomic.* functions 2024-02-24 02:10:04 +02:00