Use hw.physmem64 instead of hw.physmem for NetBSD in pkg/sys/getHwPhysmem (#10907)

"hw.physmem" only reports reasonable results on 32 bit systems and is
kept to not break binary compatibility. On other systems, it reports
"-1". "hw.phymem64" reports reasonable results on all systems.

MinIO getHwPhysmem method currently uses the deprecated 
"hw.physmem" key which results in a parse error (due to the -1).

This pull request asks for changing this. The change was tested
successfully on NetBSD/amd64 9.1.
This commit is contained in:
Matthias Petermann
2020-11-17 05:53:47 +01:00
committed by GitHub
parent 0b766288ef
commit 0745736e28
2 changed files with 46 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
// +build openbsd netbsd freebsd dragonfly
// +build openbsd freebsd dragonfly
/*
* MinIO Cloud Storage, (C) 2016,2017 MinIO, Inc.