Documentation
¶
Overview ¶
Package ios is a collection of interfaces to the local storage subsystem; the package includes OS-dependent implementations for those interfaces.
- Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved.
Package ios is a collection of interfaces to the local storage subsystem; the package includes OS-dependent implementations for those interfaces.
- Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved.
Package ios is a collection of interfaces to the local storage subsystem; the package includes OS-dependent implementations for those interfaces.
- Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved.
Package ios is a collection of interfaces to the local storage subsystem; the package includes OS-dependent implementations for those interfaces.
- Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved.
Package ios is a collection of interfaces to the local storage subsystem; the package includes OS-dependent implementations for those interfaces.
- Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved.
Package ios is a collection of interfaces to the local storage subsystem; the package includes OS-dependent implementations for those interfaces.
- Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved.
Package ios is a collection of interfaces to the local storage subsystem; the package includes OS-dependent implementations for those interfaces.
- Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved.
Index ¶
- func DirFileCount(dirPath string) (int, error)
- func DirSizeOnDisk(dirPath string) (uint64, error)
- func DirSumFileSizes(dirPath string) (uint64, error)
- func FinfoAtime(fqn string) (finfo os.FileInfo, atime int64, err error)
- func GetATime(osfi os.FileInfo) time.Time
- func GetFSStats(path string) (blocks, bavail uint64, bsize int64, err error)
- func GetFSUsedPercentage(path string) (usedPercentage int64, ok bool)
- type AllDiskStats
- type BlockDevice
- type DiskStats
- type FsDisks
- type IOStater
- type LsBlk
- type MpathUtil
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DirFileCount ¶
func DirSizeOnDisk ¶
- on-disk size is sometimes referred to as "apparent size" - ignore errors since `du` exits with status 1 if it encounters a file that couldn't be accessed (permissions)
func DirSumFileSizes ¶
func GetFSUsedPercentage ¶
Types ¶
type AllDiskStats ¶
type BlockDevice ¶
type BlockDevice struct {
Name string `json:"name"`
PhySec jsoniter.Number `json:"phy-sec"`
BlockDevices []*BlockDevice `json:"children"`
}
`lsblk -Jt` structure
type IOStater ¶
type LsBlk ¶
type LsBlk struct {
BlockDevices []*BlockDevice `json:"blockdevices"`
}