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-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-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-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-2021, NVIDIA CORPORATION. All rights reserved.
Index ¶
- Constants
- func Clblk(i IOS)
- 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 DiskStats
- type FsDisks
- type IOS
- type Label
- type LsBlk
- type MpathUtil
Constants ¶
const TestLabel = Label("test-label")
Variables ¶
This section is empty.
Functions ¶
func DirFileCount ¶
func DirSumFileSizes ¶
func GetFSUsedPercentage ¶
Types ¶
type AllDiskStats ¶
type IOS ¶ added in v1.3.16
type IOS interface {
GetAllMpathUtils() *MpathUtil
GetMpathUtil(mpath string) int64
AddMpath(mpath, fs string, label Label, config *cmn.Config) (FsDisks, error)
RemoveMpath(mpath string, testingEnv bool)
FillDiskStats(m AllDiskStats)
}
public
type Label ¶ added in v1.3.23
type Label string
Introduced in v3.23, mountpath labels are used to deliver extended (mountpath usage related) functionality that includes:
- mapping of the mountpath to its underlying disk(s), if any (potentially useful in highly virtualized/containerized environments);
- disk sharing between multiple mountpaths;
- storage classes (as in: "different storages - for different buckets");
- user-defined grouping of the mountpaths (e.g., to reflect different non-overlapping storage capacities and/or storage classes)
In v3.23, user-assigned `ios.Label` simply implies that user takes a full responsibility for filesystem sharing (or not sharing) across mountpaths