Documentation
¶
Index ¶
Constants ¶
View Source
const ( MntWait = 1 MfsNameLen = 15 /* length of fs type name, not inc. nul */ MNameLen = 90 /* length of buffer for returned name */ MFSTYPENAMELEN = 16 /* length of fs type name including null */ MAXPATHLEN = 1024 MNAMELEN = MAXPATHLEN SYS_GETFSSTAT64 = 347 )
View Source
const ( MntReadOnly = 0x00000001 /* read only filesystem */ MntSynchronous = 0x00000002 /* filesystem written synchronously */ MntNoExec = 0x00000004 /* can't exec from filesystem */ MntNoSuid = 0x00000008 /* don't honor setuid bits on fs */ MntUnion = 0x00000020 /* union with underlying filesystem */ MntAsync = 0x00000040 /* filesystem written asynchronously */ MntSuidDir = 0x00100000 /* special handling of SUID on dirs */ MntSoftDep = 0x00200000 /* soft updates being done */ MntNoSymFollow = 0x00400000 /* do not follow symlinks */ MntGEOMJournal = 0x02000000 /* GEOM journal support enabled */ MntMultilabel = 0x04000000 /* MAC support for individual objects */ MntACLs = 0x08000000 /* ACL support enabled */ MntNoATime = 0x10000000 /* disable update of file access time */ MntClusterRead = 0x40000000 /* disable cluster read */ MntClusterWrite = 0x80000000 /* disable cluster write */ MntNFS4ACLs = 0x00000010 )
sys/mount.h
Variables ¶
This section is empty.
Functions ¶
func IOCounters ¶
func IOCounters() (map[string]IOCountersStat, error)
Types ¶
type Fsid ¶
type Fsid struct {
// contains filtered or unexported fields
} /* file system id type */
type IOCountersStat ¶
type IOCountersStat struct {
ReadCount uint64 `json:"readCount"`
MergedReadCount uint64 `json:"mergedReadCount"`
WriteCount uint64 `json:"writeCount"`
MergedWriteCount uint64 `json:"mergedWriteCount"`
ReadBytes uint64 `json:"readBytes"`
WriteBytes uint64 `json:"writeBytes"`
ReadTime uint64 `json:"readTime"`
WriteTime uint64 `json:"writeTime"`
IopsInProgress uint64 `json:"iopsInProgress"`
IoTime uint64 `json:"ioTime"`
WeightedIO uint64 `json:"weightedIO"`
Name string `json:"name"`
SerialNumber string `json:"serialNumber"`
}
func (IOCountersStat) String ¶
func (d IOCountersStat) String() string
type PartitionStat ¶
type PartitionStat struct {
Device string `json:"device"`
Mountpoint string `json:"mountpoint"`
Fstype string `json:"fstype"`
Opts string `json:"opts"`
}
func Partitions ¶
func Partitions(all bool) ([]PartitionStat, error)
func (PartitionStat) String ¶
func (d PartitionStat) String() string
type UsageStat ¶
type UsageStat struct {
Path string `json:"path"`
Fstype string `json:"fstype"`
Total uint64 `json:"total"`
Free uint64 `json:"free"`
Used uint64 `json:"used"`
UsedPercent float64 `json:"usedPercent"`
InodesTotal uint64 `json:"inodesTotal"`
InodesUsed uint64 `json:"inodesUsed"`
InodesFree uint64 `json:"inodesFree"`
InodesUsedPercent float64 `json:"inodesUsedPercent"`
}
Click to show internal directories.
Click to hide internal directories.