Skip to content

Commit

Permalink
Merge pull request #47657 from siepkes/illumos_fix
Browse files Browse the repository at this point in the history
Minor fix for illumos support
  • Loading branch information
vvoland committed Apr 10, 2024
2 parents 051d587 + cf93311 commit f9dfd13
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pkg/system/stat_illumos.go
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit f9dfd13

Please sign in to comment.