storage/pkg/system
Kir Kolyshkin 8395a8b205 Fix and annotate Stat_t fields conversion
For struct Stat_t in syscall pkg:
 - Ino is always uint64;
 - Dev/Rdev can be uint64, uint32, or int32;
 - Nlink might be uint64, uint32, or uint16.

Fix the code accordingly, adding or removing typecasts where needed,
and annotating those with //nolint:unconvert to calm down the unconvert
linter.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2025-04-01 16:18:55 -07:00
..
chmod.go chown, chmod: retry on EINTR 2020-10-30 11:40:07 +01:00
chtimes.go Update packages to match latest code in moby/pkg 2017-09-12 18:00:29 +00:00
chtimes_linux_test.go pkg/system: refactor TestChtimesLinux 2025-04-01 16:12:12 -07:00
chtimes_test.go Format sources with gofumpt 2023-05-26 16:17:31 -07:00
chtimes_unix.go all: remove old-style +build tags 2024-09-19 17:00:48 -07:00
chtimes_windows.go all: remove old-style +build tags 2024-09-19 17:00:48 -07:00
chtimes_windows_test.go all: remove old-style +build tags 2024-09-19 17:00:48 -07:00
errors.go Format sources with gofumpt 2023-05-26 16:17:31 -07:00
exitcode.go Update packages to match latest code in moby/pkg 2017-09-12 18:00:29 +00:00
extattr_freebsd.go pkg/system: remove unreachable error handling 2024-11-29 18:32:32 +09:00
extattr_unsupported.go pkg/system: add extattr syscall wrappers for FreeBSD 2024-11-16 14:01:46 +09:00
init.go Misc. warning cleanups 2022-10-01 02:53:06 +02:00
init_windows.go Format sources with gofumpt 2023-05-26 16:17:31 -07:00
lchflags_bsd.go all: remove old-style +build tags 2024-09-19 17:00:48 -07:00
lchown.go chown, chmod: retry on EINTR 2020-10-30 11:40:07 +01:00
lcow_unix.go all: remove old-style +build tags 2024-09-19 17:00:48 -07:00
lcow_windows.go Update packages to match latest code in moby/pkg 2017-09-12 18:00:29 +00:00
lstat_unix.go all: remove old-style +build tags 2024-09-19 17:00:48 -07:00
lstat_unix_test.go all: remove old-style +build tags 2024-09-19 17:00:48 -07:00
lstat_windows.go Update packages to match latest code in moby/pkg 2017-09-12 18:00:29 +00:00
meminfo.go Add MemInfo to the system pkg. 2014-10-22 14:05:45 -07:00
meminfo_freebsd.go all: remove old-style +build tags 2024-09-19 17:00:48 -07:00
meminfo_linux.go fix typos 2016-03-11 23:22:16 +08:00
meminfo_solaris.go all: remove old-style +build tags 2024-09-19 17:00:48 -07:00
meminfo_unix_test.go all: remove old-style +build tags 2024-09-19 17:00:48 -07:00
meminfo_unsupported.go all: remove old-style +build tags 2024-09-19 17:00:48 -07:00
meminfo_windows.go Move to golang 1.18 and later 2023-04-03 15:26:54 -04:00
mknod.go all: remove old-style +build tags 2024-09-19 17:00:48 -07:00
mknod_freebsd.go all: remove old-style +build tags 2024-09-19 17:00:48 -07:00
mknod_windows.go all: remove old-style +build tags 2024-09-19 17:00:48 -07:00
path.go Format sources with gofumpt 2023-05-26 16:17:31 -07:00
path_unix.go all: remove old-style +build tags 2024-09-19 17:00:48 -07:00
path_windows.go all: remove old-style +build tags 2024-09-19 17:00:48 -07:00
path_windows_test.go all: remove old-style +build tags 2024-09-19 17:00:48 -07:00
process_unix.go all: remove old-style +build tags 2024-09-19 17:00:48 -07:00
rm.go pkg/system: reduce retry timeout for EnsureRemoveAll 2023-09-29 11:49:53 +02:00
rm_common.go all: remove old-style +build tags 2024-09-19 17:00:48 -07:00
rm_freebsd.go pkg/system: Add Lchflags and use that in resetFileFlags 2022-10-20 08:58:04 +01:00
rm_test.go Format sources with gofumpt 2023-05-26 16:17:31 -07:00
stat_common.go all: remove old-style +build tags 2024-09-19 17:00:48 -07:00
stat_darwin.go Format sources with gofumpt 2023-05-26 16:17:31 -07:00
stat_freebsd.go Format sources with gofumpt 2023-05-26 16:17:31 -07:00
stat_freebsd_test.go all: remove old-style +build tags 2024-09-19 17:00:48 -07:00
stat_linux.go Fix and annotate Stat_t fields conversion 2025-04-01 16:18:55 -07:00
stat_linux_test.go all: remove old-style +build tags 2024-09-19 17:00:48 -07:00
stat_netbsd.go pkg/system: add fromStatT for NetBSD 2024-11-27 03:25:21 +00:00
stat_openbsd.go Format sources with gofumpt 2023-05-26 16:17:31 -07:00
stat_solaris.go Format sources with gofumpt 2023-05-26 16:17:31 -07:00
stat_unix.go all: remove old-style +build tags 2024-09-19 17:00:48 -07:00
stat_unix_test.go all: remove old-style +build tags 2024-09-19 17:00:48 -07:00
stat_windows.go pkg/archive: Ignore file mounts when checking for mount points 2023-07-07 13:51:35 +01:00
syscall_unix.go all: remove old-style +build tags 2024-09-19 17:00:48 -07:00
syscall_windows.go store: retry RemoveAll on EBUSY 2021-09-30 09:43:26 +02:00
syscall_windows_test.go Add os_version and os_features to Image 2016-04-04 13:14:57 -07:00
umask.go all: remove old-style +build tags 2024-09-19 17:00:48 -07:00
umask_windows.go all: remove old-style +build tags 2024-09-19 17:00:48 -07:00
utimes_freebsd.go Fix LUtimesNano on FreeBSD 2022-09-17 16:38:14 +01:00
utimes_linux.go Update packages to match latest code in moby/pkg 2017-09-12 18:00:29 +00:00
utimes_unix_test.go all: remove old-style +build tags 2024-09-19 17:00:48 -07:00
utimes_unsupported.go all: remove old-style +build tags 2024-09-19 17:00:48 -07:00
xattrs_darwin.go pkg/system: fix `EOPNOTSUPP` to `ENOTSUP` for xattr syscalls 2024-11-29 18:32:32 +09:00
xattrs_freebsd.go pkg/system: fix `EOPNOTSUPP` to `ENOTSUP` for xattr syscalls 2024-11-29 18:32:32 +09:00
xattrs_linux.go pkg/system: fix `EOPNOTSUPP` to `ENOTSUP` for xattr syscalls 2024-11-29 18:32:32 +09:00
xattrs_unsupported.go pkg/system: fix `EOPNOTSUPP` to `ENOTSUP` for xattr syscalls 2024-11-29 18:32:32 +09:00