mirror of
https://github.com/pgsty/minio.git
synced 2026-08-08 23:33:30 +03:00
Fix OS X build
- Explicitly cast statfs_t members to int64 (this structure is platform-specific) - Add pass-through New methods to Darwin SHA package - Move scsi pkg types to common translation unit (package was empty) - Add stub implementations mount/disk ops for OS X
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
// +build linux,amd64
|
||||
|
||||
/*
|
||||
* Mini Object Storage, (C) 2014 Minio, Inc.
|
||||
*
|
||||
@@ -25,6 +23,22 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Attributes Scsi device attributes
|
||||
type Attributes map[string]string
|
||||
|
||||
// Disks is a list of scsis disks and attributes
|
||||
type Disks map[string]Attributes
|
||||
|
||||
// Mountinfo container to capture /etc/mtab mount structure
|
||||
type Mountinfo struct {
|
||||
FSName string /* name of mounted filesystem */
|
||||
Dir string /* filesystem path prefix */
|
||||
Type string /* mount type (see mntent.h) */
|
||||
Opts string /* mount options (see mntent.h) */
|
||||
Freq int /* dump frequency in days */
|
||||
Passno int /* pass number on parallel fsck */
|
||||
}
|
||||
|
||||
func getattrs(scsiAttrPath string, scsiAttrList []string) map[string]string {
|
||||
attrMap := make(map[string]string)
|
||||
for _, attr := range scsiAttrList {
|
||||
|
||||
Reference in New Issue
Block a user