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-2023, 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.
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-2023, 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, withNonDirPrefix bool) (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 IOS
- 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" - NOTE: ignore exec error: `du` exits with status 1 if encounters non-regular file that can't be accessed (perm) - `withNonDirPrefix` is allowed to match nothing
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 IOS ¶ added in v1.3.16
type IOS interface { GetAllMpathUtils() *MpathUtil GetMpathUtil(mpath string) int64 AddMpath(mpath string, fs string, testingEnv bool) (FsDisks, error) RemoveMpath(mpath string, testingEnv bool) FillDiskStats(m AllDiskStats) }
public
type LsBlk ¶
type LsBlk struct {
BlockDevices []*BlockDevice `json:"blockdevices"`
}