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-2024, 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-2024, 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-2024, 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-2024, 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-2024, 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-2024, 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) 2024, 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-2024, NVIDIA CORPORATION. All rights reserved.
Index ¶
- func DirSizeOnDisk(dirPath string, withNonDirPrefix bool) (size uint64, 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)
- func New(num int) (IOS, BlockDevices)
- type AllDiskStats
- type BlockDevices
- type DiskStats
- type FsDisks
- type IOS
- type MpathUtil
- type RescanDisksResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DirSizeOnDisk ¶
DirSizeOnDisk calculates the total size of a directory on disk, including its subdirectories. TODO: We should also calculate and include `xattr` size.
func GetFSUsedPercentage ¶
func New ¶
func New(num int) (IOS, BlockDevices)
Types ¶
type AllDiskStats ¶
type BlockDevices ¶ added in v1.3.24
type BlockDevices []*blockDev
type IOS ¶ added in v1.3.16
type IOS interface {
GetAllMpathUtils() *MpathUtil
GetMpathUtil(mpath string) int64
AddMpath(mpath, fs string, label cos.MountpathLabel, config *cmn.Config, blockDevs BlockDevices) (FsDisks, error)
RescanDisks(mpath, fs string, disks []string) RescanDisksResult
RemoveMpath(mpath string, testingEnv bool)
DiskStats(m cos.AllDiskStats)
}
public