diff --git a/buildscripts/cross-compile.sh b/buildscripts/cross-compile.sh index 13feb9f7..3c2e4787 100755 --- a/buildscripts/cross-compile.sh +++ b/buildscripts/cross-compile.sh @@ -28,7 +28,7 @@ function _init() { export CGO_ENABLED=0 ## List of architectures and OS to test coss compilation. - SUPPORTED_OSARCH="linux/ppc64le linux/mips64 linux/arm64 linux/s390x darwin/arm64 darwin/amd64 freebsd/amd64 windows/amd64 linux/arm linux/386 netbsd/amd64 linux/mips openbsd/amd64" + SUPPORTED_OSARCH="linux/ppc64le linux/arm64 linux/s390x darwin/arm64 darwin/amd64 freebsd/amd64 windows/amd64 linux/arm linux/386 netbsd/amd64 openbsd/amd64" } function _build() { diff --git a/cmd/admin-service-restart.go b/cmd/admin-service-restart.go index b8982d78..8a99acff 100644 --- a/cmd/admin-service-restart.go +++ b/cmd/admin-service-restart.go @@ -166,7 +166,6 @@ func mainAdminServiceRestart(ctx *cli.Context) error { }) if e != nil { // Attempt an older API server might be old - //lint:ignore SA1019 Ignore the deprecation warnings e = client.ServiceRestart(ctxt) } fatalIf(probe.NewError(e), "Unable to restart the server.") diff --git a/cmd/admin-service-unfreeze.go b/cmd/admin-service-unfreeze.go index 47b5897c..f1bb898b 100644 --- a/cmd/admin-service-unfreeze.go +++ b/cmd/admin-service-unfreeze.go @@ -89,7 +89,6 @@ func mainAdminServiceUnfreeze(ctx *cli.Context) error { fatalIf(err, "Unable to initialize admin connection.") // Unfreeze the specified MinIO server - //lint:ignore SA1019 Ignore the deprecation warnings fatalIf(probe.NewError(client.ServiceUnfreeze(globalContext)), "Unable to unfreeze the server.") // Success.. diff --git a/cmd/subnet-utils.go b/cmd/subnet-utils.go index 05ed0238..ec33a769 100644 --- a/cmd/subnet-utils.go +++ b/cmd/subnet-utils.go @@ -1,4 +1,4 @@ -// Copyright (c) 2015-2022 MinIO, Inc. +// Copyright (c) 2015-2024 MinIO, Inc. // // This file is part of MinIO Object Storage stack // @@ -25,6 +25,7 @@ import ( "errors" "fmt" "io" + "math" "mime/multipart" "net/http" "net/http/httputil" @@ -434,8 +435,15 @@ func getClusterRegInfo(admInfo madmin.InfoMessage, clusterName string) ClusterRe noOfPools := 1 noOfDrives := 0 for _, srvr := range admInfo.Servers { - if srvr.PoolNumber > noOfPools { - noOfPools = srvr.PoolNumber + for _, poolNumber := range srvr.PoolNumbers { + if poolNumber > noOfPools { + noOfPools = poolNumber + } + } + if len(srvr.PoolNumbers) == 0 { + if srvr.PoolNumber != math.MaxInt && srvr.PoolNumber > noOfPools { + noOfPools = srvr.PoolNumber + } } noOfDrives += len(srvr.Disks) } diff --git a/go.mod b/go.mod index 883db704..3c81edc6 100644 --- a/go.mod +++ b/go.mod @@ -30,7 +30,7 @@ require ( github.com/prometheus/prom2json v1.3.3 // indirect github.com/rjeczalik/notify v0.9.3 github.com/rs/xid v1.5.0 - github.com/shirou/gopsutil/v3 v3.23.11 + github.com/shirou/gopsutil/v3 v3.23.12 github.com/tidwall/gjson v1.17.0 golang.org/x/crypto v0.21.0 // indirect golang.org/x/net v0.21.0 @@ -45,7 +45,7 @@ require ( github.com/gdamore/tcell/v2 v2.7.0 github.com/golang-jwt/jwt/v4 v4.5.0 github.com/juju/ratelimit v1.0.2 - github.com/minio/madmin-go/v3 v3.0.41 + github.com/minio/madmin-go/v3 v3.0.50-0.20240307075442-63b4fc3ac1fd github.com/minio/pkg/v2 v2.0.7 github.com/muesli/reflow v0.3.0 github.com/navidys/tvxwidgets v0.4.1 diff --git a/go.sum b/go.sum index 2973f69b..c4a10569 100644 --- a/go.sum +++ b/go.sum @@ -142,8 +142,8 @@ github.com/minio/colorjson v1.0.6 h1:m7TUvpvt0u7FBmVIEQNIa0T4NBQlxrcMBp4wJKsg2Ik github.com/minio/colorjson v1.0.6/go.mod h1:LUXwS5ZGNb6Eh9f+t+3uJiowD3XsIWtsvTriUBeqgYs= github.com/minio/filepath v1.0.0 h1:fvkJu1+6X+ECRA6G3+JJETj4QeAYO9sV43I79H8ubDY= github.com/minio/filepath v1.0.0/go.mod h1:/nRZA2ldl5z6jT9/KQuvZcQlxZIMQoFFQPvEXx9T/Bw= -github.com/minio/madmin-go/v3 v3.0.41 h1:9pU7xW51cn8Ixy8ftaRfp4SbHtnhEPlwU6mMA9KwwB8= -github.com/minio/madmin-go/v3 v3.0.41/go.mod h1:4QN2NftLSV7MdlT50dkrenOMmNVHluxTvlqJou3hte8= +github.com/minio/madmin-go/v3 v3.0.50-0.20240307075442-63b4fc3ac1fd h1:oZycRrLgzEg4+lGZ5Tkua3BKvK7rOtDlmoOR3gq58l4= +github.com/minio/madmin-go/v3 v3.0.50-0.20240307075442-63b4fc3ac1fd/go.mod h1:ZDF7kf5fhmxLhbGTqyq5efs4ao0v4eWf7nOuef/ljJs= github.com/minio/md5-simd v1.1.2 h1:Gdi1DZK69+ZVMoNHRXJyNcxrMA4dSxoYHZSQbirFg34= github.com/minio/md5-simd v1.1.2/go.mod h1:MzdKDxYpY2BT9XQFocsiZf/NKVtR7nkE4RoEpN+20RM= github.com/minio/minio-go/v7 v7.0.67 h1:BeBvZWAS+kRJm1vGTMJYVjKUNoo0FoEt/wUWdUtfmh8= @@ -218,8 +218,8 @@ github.com/safchain/ethtool v0.3.0 h1:gimQJpsI6sc1yIqP/y8GYgiXn/NjgvpM0RNoWLVVmP github.com/safchain/ethtool v0.3.0/go.mod h1:SA9BwrgyAqNo7M+uaL6IYbxpm5wk3L7Mm6ocLW+CJUs= github.com/secure-io/sio-go v0.3.1 h1:dNvY9awjabXTYGsTF1PiCySl9Ltofk9GA3VdWlo7rRc= github.com/secure-io/sio-go v0.3.1/go.mod h1:+xbkjDzPjwh4Axd07pRKSNriS9SCiYksWnZqdnfpQxs= -github.com/shirou/gopsutil/v3 v3.23.11 h1:i3jP9NjCPUz7FiZKxlMnODZkdSIp2gnzfrvsu9CuWEQ= -github.com/shirou/gopsutil/v3 v3.23.11/go.mod h1:1FrWgea594Jp7qmjHUUPlJDTPgcsb9mGnXDxavtikzM= +github.com/shirou/gopsutil/v3 v3.23.12 h1:z90NtUkp3bMtmICZKpC4+WaknU1eXtp5vtbQ11DgpE4= +github.com/shirou/gopsutil/v3 v3.23.12/go.mod h1:1FrWgea594Jp7qmjHUUPlJDTPgcsb9mGnXDxavtikzM= github.com/shoenig/go-m1cpu v0.1.6 h1:nxdKQNcEB6vzgA2E2bvzKIYRuNj7XNJ4S/aRSwKzFtM= github.com/shoenig/go-m1cpu v0.1.6/go.mod h1:1JJMcUBvfNwpq05QDQVAnx3gUHr9IYF7GNg9SUEw2VQ= github.com/shoenig/test v0.6.4 h1:kVTaSd7WLz5WZ2IaoM0RSzRsUD+m8wRR+5qvntpn4LU=