mirror of
https://github.com/minio/minio.git
synced 2025-04-21 02:54:24 -04: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
|
// getFSType returns the filesystem type of the underlying mounted filesystem
|
||||||
func getFSType(fstype [16]int8) string {
|
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…
x
Reference in New Issue
Block a user