Fix posix tests for SimpleCI (#7328)

This commit is contained in:
Harshavardhana
2019-03-05 17:28:14 -08:00
parent c0a1369b73
commit 12eb71828b
6 changed files with 59 additions and 59 deletions

View File

@@ -29,12 +29,14 @@ import (
)
// file size for performance read and write checks
const randBufSize = 1 * humanize.KiByte
const randParts = 1024
const fileSize = randParts * randBufSize
const (
randBufSize = 1 * humanize.KiByte
randParts = 1024
fileSize = randParts * randBufSize
// Total count of read / write iteration for performance measurement
const iterations = 10
// Total count of read / write iteration for performance measurement
iterations = 10
)
// Info stat fs struct is container which holds following values
// Total - total size of the volume / disk

View File

@@ -20,7 +20,7 @@ package disk
import "strconv"
// fsType2StringMap - list of filesystems supported by donut on linux
// fsType2StringMap - list of filesystems supported on linux
var fsType2StringMap = map[string]string{
"1021994": "TMPFS",
"137d": "EXT",
@@ -34,6 +34,9 @@ var fsType2StringMap = map[string]string{
"ef51": "EXT2OLD",
"ef53": "EXT4",
"f15f": "ecryptfs",
"794c7630": "overlayfs",
"2fc12fc1": "zfs",
"ff534d42": "cifs",
}
// getFSType returns the filesystem type of the underlying mounted filesystem