statvfs-0.2: Get unix filesystem statistics with statfs, statvfs

Safe HaskellNone

System.Posix.StatVFS

Description

Get information about a mounted filesystem. A minimal example of usage is:

 import System.Posix.StatVFS (statVFS, statVFS_bfree)

main = do
     stat <- statVFS /
     putStrLn $ (show (statVFS_bfree stat)) ++  free blocks on /

Synopsis

Documentation

type CStatVFS = ()Source

data StatVFS Source

File system information record, reflects data mentioned in the statvfs(3) manual

Constructors

StatVFS 

Fields

statVFS_bsize :: CULong

Filesystem block size

statVFS_frsize :: CULong

Fragment size

statVFS_blocks :: CFSBlkCnt

Size of fs in f_frsize units

statVFS_bfree :: CFSBlkCnt

Free blocks

statVFS_bavail :: CFSBlkCnt

Free blocks for unprivileged users

statVFS_files :: CFSFilCnt

Inodes

statVFS_ffree :: CFSFilCnt

Free inodes

statVFS_favail :: CFSFilCnt

Free inodes for unprivileged users

statVFS_fsid :: CULong

Filesystem ID

statVFS_flag :: CULong

Mount flags

statVFS_namemax :: CULong

Maximum filename length

Instances