Versions in this module Expand all Collapse all v1 v1.28.22 Aug 23, 2022 v1.28.21 Aug 2, 2022 Changes in this version + const ADFS_SUPER_MAGIC — linux/amd64 + const AFFS_SUPER_MAGIC — linux/amd64 + const AFS_SUPER_MAGIC — linux/amd64 + const ANON_INODE_FS_SUPER_MAGIC — linux/amd64 + const AUFS_SUPER_MAGIC — linux/amd64 + const BDEVFS_MAGIC — linux/amd64 + const BEFS_SUPER_MAGIC — linux/amd64 + const BFS_MAGIC — linux/amd64 + const BINFMTFS_MAGIC — linux/amd64 + const BPF_FS_MAGIC — linux/amd64 + const BTRFS_SUPER_MAGIC — linux/amd64 + const CEPH_SUPER_MAGIC — linux/amd64 + const CGROUP2_SUPER_MAGIC — linux/amd64 + const CGROUP_SUPER_MAGIC — linux/amd64 + const CIFS_MAGIC_NUMBER — linux/amd64 + const CODA_SUPER_MAGIC — linux/amd64 + const COH_SUPER_MAGIC — linux/amd64 + const CONFIGFS_MAGIC — linux/amd64 + const CRAMFS_MAGIC — linux/amd64 + const DEBUGFS_MAGIC — linux/amd64 + const DEVFS_SUPER_MAGIC — linux/amd64 + const DEVPTS_SUPER_MAGIC — linux/amd64 + const ECRYPTFS_SUPER_MAGIC — linux/amd64 + const EFIVARFS_MAGIC — linux/amd64 + const EFS_SUPER_MAGIC — linux/amd64 + const EXT2_OLD_SUPER_MAGIC — linux/amd64 + const EXT2_SUPER_MAGIC — linux/amd64 + const EXT3_SUPER_MAGIC — linux/amd64 + const EXT4_SUPER_MAGIC — linux/amd64 + const EXT_SUPER_MAGIC — linux/amd64 + const F2FS_SUPER_MAGIC — linux/amd64 + const FAT_SUPER_MAGIC — linux/amd64 + const FHGFS_SUPER_MAGIC — linux/amd64 + const FUSEBLK_SUPER_MAGIC — linux/amd64 + const FUSECTL_SUPER_MAGIC — linux/amd64 + const FUSE_SUPER_MAGIC — linux/amd64 + const FUTEXFS_SUPER_MAGIC — linux/amd64 + const GFS_SUPER_MAGIC — linux/amd64 + const GPFS_SUPER_MAGIC — linux/amd64 + const HFSPLUS_SUPER_MAGIC — linux/amd64 + const HFS_SUPER_MAGIC — linux/amd64 + const HOSTFS_SUPER_MAGIC — linux/amd64 + const HPFS_SUPER_MAGIC — linux/amd64 + const HUGETLBFS_MAGIC — linux/amd64 + const INOTIFYFS_SUPER_MAGIC — linux/amd64 + const ISOFS_R_WIN_SUPER_MAGIC — linux/amd64 + const ISOFS_SUPER_MAGIC — linux/amd64 + const ISOFS_WIN_SUPER_MAGIC — linux/amd64 + const JFFS2_SUPER_MAGIC — linux/amd64 + const JFFS_SUPER_MAGIC — linux/amd64 + const JFS_SUPER_MAGIC — linux/amd64 + const KAFS_SUPER_MAGIC — linux/amd64 + const LUSTRE_SUPER_MAGIC — linux/amd64 + const MINIX2_SUPER_MAGIC — linux/amd64 + const MINIX2_SUPER_MAGIC2 — linux/amd64 + const MINIX3_SUPER_MAGIC — linux/amd64 + const MINIX_SUPER_MAGIC — linux/amd64 + const MINIX_SUPER_MAGIC2 — linux/amd64 + const MQUEUE_MAGIC — linux/amd64 + const MSDOS_SUPER_MAGIC — linux/amd64 + const MTD_INODE_FS_SUPER_MAGIC — linux/amd64 + const NCP_SUPER_MAGIC — linux/amd64 + const NFSD_SUPER_MAGIC — linux/amd64 + const NFS_SUPER_MAGIC — linux/amd64 + const NILFS_SUPER_MAGIC — linux/amd64 + const NSFS_MAGIC — linux/amd64 + const NTFS_SB_MAGIC — linux/amd64 + const OCFS2_SUPER_MAGIC — linux/amd64 + const OPENPROM_SUPER_MAGIC — linux/amd64 + const PANFS_SUPER_MAGIC — linux/amd64 + const PIPEFS_MAGIC — linux/amd64 + const PROC_SUPER_MAGIC — linux/amd64 + const PSTOREFS_MAGIC — linux/amd64 + const PT_DRIVE_CDROM + const PT_DRIVE_FIXED + const PT_DRIVE_REMOTE + const PT_DRIVE_REMOVABLE + const PT_UNKNOWN + const QNX4_SUPER_MAGIC — linux/amd64 + const QNX6_SUPER_MAGIC — linux/amd64 + const RAMFS_MAGIC — linux/amd64 + const REISERFS_SUPER_MAGIC — linux/amd64 + const ROMFS_MAGIC — linux/amd64 + const RPC_PIPEFS_SUPER_MAGIC — linux/amd64 + const SECURITYFS_SUPER_MAGIC — linux/amd64 + const SELINUX_MAGIC — linux/amd64 + const SMACK_MAGIC — linux/amd64 + const SMB_SUPER_MAGIC — linux/amd64 + const SOCKFS_MAGIC — linux/amd64 + const SQUASHFS_MAGIC — linux/amd64 + const SYSFS_MAGIC — linux/amd64 + const SYSV2_SUPER_MAGIC — linux/amd64 + const SYSV4_SUPER_MAGIC — linux/amd64 + const TMPFS_MAGIC — linux/amd64 + const TRACEFS_MAGIC — linux/amd64 + const UDF_SUPER_MAGIC — linux/amd64 + const UFS_BYTESWAPPED_SUPER_MAGIC — linux/amd64 + const UFS_MAGIC — linux/amd64 + const USBDEVICE_SUPER_MAGIC — linux/amd64 + const V9FS_MAGIC — linux/amd64 + const VMHGFS_SUPER_MAGIC — linux/amd64 + const VXFS_SUPER_MAGIC — linux/amd64 + const VZFS_SUPER_MAGIC — linux/amd64 + const XENFS_SUPER_MAGIC — linux/amd64 + const XENIX_SUPER_MAGIC — linux/amd64 + const XFS_SUPER_MAGIC — linux/amd64 + const ZFS_SUPER_MAGIC — linux/amd64 + func IOCounters(names ...string) (map[string]IOCountersStat, error) + func IOCountersWithContext(ctx context.Context, names ...string) (map[string]IOCountersStat, error) + func Label(name string) (string, error) + func LabelWithContext(ctx context.Context, name string) (string, error) + func SerialNumber(name string) (string, error) + func SerialNumberWithContext(ctx context.Context, name string) (string, error) + type IOCountersStat struct + IoTime uint64 + IopsInProgress uint64 + Label string + MergedReadCount uint64 + MergedWriteCount uint64 + Name string + ReadBytes uint64 + ReadCount uint64 + ReadTime uint64 + SerialNumber string + WeightedIO uint64 + WriteBytes uint64 + WriteCount uint64 + WriteTime uint64 + func (d IOCountersStat) String() string + type PartitionStat struct + Device string + Fstype string + Mountpoint string + Opts []string + PartitionType int + func Partitions(all bool) ([]PartitionStat, error) + func PartitionsWithContext(ctx context.Context, all bool) ([]PartitionStat, error) + func (d PartitionStat) String() string + type UsageStat struct + Free uint64 + Fstype string + InodesFree uint64 + InodesTotal uint64 + InodesUsed uint64 + InodesUsedPercent float64 + Path string + Total uint64 + Used uint64 + UsedPercent float64 + func Usage(path string) (*UsageStat, error) + func UsageWithContext(ctx context.Context, path string) (*UsageStat, error) + func (d UsageStat) String() string