mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
Add b2s method on pkg/disk/type_bsd.go (#5036)
This commit is contained in:
parent
4deefa3695
commit
02a5f1e96a
@ -20,5 +20,9 @@ package disk
|
||||
|
||||
// getFSType returns the filesystem type of the underlying mounted filesystem
|
||||
func getFSType(fstype [16]int8) string {
|
||||
return b2s(fstype[:])
|
||||
b := make([]byte, len(fstype[:]))
|
||||
for i, v := range fstype[:] {
|
||||
b[i] = byte(v)
|
||||
}
|
||||
return string(b)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user