From cf933115b667db61fa802d1c3b441664bf92aa60 Mon Sep 17 00:00:00 2001 From: Jasper Siepkes Date: Mon, 1 Apr 2024 16:58:39 +0200 Subject: [PATCH] Minor fix for illumos support illumos is the opensource continuation of OpenSolaris after Oracle closed to source it (again). For example use see: https://github.com/openbao/openbao/pull/205. Signed-off-by: Jasper Siepkes --- pkg/system/stat_illumos.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pkg/system/stat_illumos.go diff --git a/pkg/system/stat_illumos.go b/pkg/system/stat_illumos.go new file mode 100644 index 0000000000..851374e5d9 --- /dev/null +++ b/pkg/system/stat_illumos.go @@ -0,0 +1,15 @@ +package system // import "github.com/docker/docker/pkg/system" + +import "syscall" + +// fromStatT converts a syscall.Stat_t type to a system.Stat_t type +func fromStatT(s *syscall.Stat_t) (*StatT, error) { + return &StatT{ + size: s.Size, + mode: uint32(s.Mode), + uid: s.Uid, + gid: s.Gid, + rdev: uint64(s.Rdev), + mtim: s.Mtim, + }, nil +}