You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just a small note for Trident enthusiasts who give this a try:
$ GOOS=linux GOARCH=s390x go build
....
# github.com/netapp/trident/utils
utils/osutils_linux.go:70:28: invalid operation: int64(buf.Blocks) * buf.Bsize (mismatched types int64 and uint32)
utils/osutils_linux.go:80:32: invalid operation: int64(buf.Bavail) * buf.Bsize (mismatched types int64 and uint32)
Environment
Trident source v21.01.1
Ubuntu Ubuntu 18.04.5 LTS (x86_64)
go version go1.16 linux/amd64
To Reproduce
Check out source code, install Go, replace gcr.io/distroless/static in 3 Dockerfiles with a link to gcr.io/distroless/static:latest-s390x, build for linux/s390x
Expected behavior
Trident build succeeds
Additional context
On the surface this change to utils/osutils_linux.go helps hide this issue, but I don't know how it impacts the resulting trident image (and have no way to test).
Just a small note for Trident enthusiasts who give this a try:
Environment
To Reproduce
Check out source code, install Go, replace gcr.io/distroless/static in 3 Dockerfiles with a link to gcr.io/distroless/static:latest-s390x, build for linux/s390x
Expected behavior
Trident build succeeds
Additional context
On the surface this change to
utils/osutils_linux.go
helps hide this issue, but I don't know how it impacts the resulting trident image (and have no way to test).The text was updated successfully, but these errors were encountered: