ios

package
v1.3.22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2024 License: MIT Imports: 22 Imported by: 2

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-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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clblk added in v1.3.18

func Clblk(i IOS)

func DirFileCount

func DirFileCount(dirPath string) (int, error)

func DirSizeOnDisk

func DirSizeOnDisk(dirPath string, withNonDirPrefix bool) (uint64, error)

func DirSumFileSizes

func DirSumFileSizes(dirPath string) (uint64, error)

func FinfoAtime

func FinfoAtime(fqn string) (finfo os.FileInfo, atime int64, err error)

func GetATime

func GetATime(osfi os.FileInfo) time.Time

func GetFSStats

func GetFSStats(path string) (blocks, bavail uint64, bsize int64, err error)

func GetFSUsedPercentage

func GetFSUsedPercentage(path string) (usedPercentage int64, ok bool)

Types

type AllDiskStats

type AllDiskStats map[string]DiskStats

type DiskStats

type DiskStats struct{ RBps, Ravg, WBps, Wavg, Util int64 }

type FsDisks

type FsDisks map[string]int64 // disk name => sector size

public

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

func New

func New(num int) IOS

type LsBlk

type LsBlk struct {
	BlockDevices []*blkdev `json:"blockdevices"`
}

type MpathUtil

type MpathUtil sync.Map

public

func (*MpathUtil) Get

func (x *MpathUtil) Get(mpath string) int64

func (*MpathUtil) Set

func (x *MpathUtil) Set(mpath string, util int64)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL