VictoriaMetrics/lib/fs
Aliaksandr Valialkin aac3dccfd1
lib/fs: replace MkdirAllIfNotExist->MustMkdirIfNotExist and MkdirAllFailIfExist->MustMkdirFailIfExist
Callers of these functions log the returned error and then exit. The returned error already contains the path
to directory, which was failed to be created. So let's just log the error together with the call stack
inside these functions. This leaves the debuggability of the returned error at the same level
while allows simplifying the code at callers' side.

While at it, properly use MustMkdirFailIfExist instead of MustMkdirIfNotExist inside inmemoryPart.MustStoreToDisk().
It is expected that the inmemoryPart.MustStoreToDick() must fail if there is already a directory under the given path.
2023-04-13 22:22:08 -07:00
..
dir_remover.go lib/mergeset: atomically remove part dirs 2022-09-13 15:56:33 +03:00
fadvise_darwin.go lib/fs: optimize small reads for ReaderAt.MustReadAt by reading from memory-mapped space instead of reading from file descriptor 2020-01-30 15:16:16 +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: add go:build lines for Go1.17 2021-07-26 15:50:46 +03:00
fs.go lib/fs: replace MkdirAllIfNotExist->MustMkdirIfNotExist and MkdirAllFailIfExist->MustMkdirFailIfExist 2023-04-13 22:22:08 -07:00
fs_nix.go all: add go:build lines for Go1.17 2021-07-26 15:50:46 +03:00
fs_openbsd.go lib/fs: follow-up after f3a03c4164 2021-02-27 01:09:37 +02:00
fs_solaris.go lib/fs: use unix.Statfs() / unix.Statvfs() when using a path (#3663) 2023-01-17 21:22:02 -08:00
fs_test.go app/vmauth: follow-up for 13368bed18 2021-12-02 23:34:15 +02:00
fs_unix.go lib/fs: use unix.Statfs() / unix.Statvfs() when using a path (#3663) 2023-01-17 21:22:02 -08:00
fs_windows.go all: follow-up after 34634ec357 2023-03-25 12:00:48 -07:00
reader_at.go app/vmselect/netstorage: reduce the contention at fs.ReaderAt stats collection on systems with big number of CPU cores 2023-03-25 16:38:39 -07: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