| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
System.LibFuse3.FileSystemStats
Description
struct statvfs in Haskell.
Synopsis
- data FileSystemStats = FileSystemStats {}
- getFileSystemStats :: FilePath -> IO FileSystemStats
- getFileSystemStatsFd :: Fd -> IO FileSystemStats
- c_fstatvfs :: Fd -> Ptr FileSystemStats -> IO CInt
- c_statvfs :: CString -> Ptr FileSystemStats -> IO CInt
Documentation
data FileSystemStats Source #
Passed to fuseStatfs.
The Storable instance targets C struct statvfs.
f_favail, f_fsid and f_flag fields are ignored by libfuse, and their corresponding
fields are not defined.
Constructors
| FileSystemStats | |
Fields
| |
Instances
| Eq FileSystemStats Source # | |
Defined in System.LibFuse3.FileSystemStats Methods (==) :: FileSystemStats -> FileSystemStats -> Bool # (/=) :: FileSystemStats -> FileSystemStats -> Bool # | |
| Show FileSystemStats Source # | |
Defined in System.LibFuse3.FileSystemStats Methods showsPrec :: Int -> FileSystemStats -> ShowS # show :: FileSystemStats -> String # showList :: [FileSystemStats] -> ShowS # | |
| Storable FileSystemStats Source # | |
Defined in System.LibFuse3.FileSystemStats Methods sizeOf :: FileSystemStats -> Int # alignment :: FileSystemStats -> Int # peekElemOff :: Ptr FileSystemStats -> Int -> IO FileSystemStats # pokeElemOff :: Ptr FileSystemStats -> Int -> FileSystemStats -> IO () # peekByteOff :: Ptr b -> Int -> IO FileSystemStats # pokeByteOff :: Ptr b -> Int -> FileSystemStats -> IO () # peek :: Ptr FileSystemStats -> IO FileSystemStats # poke :: Ptr FileSystemStats -> FileSystemStats -> IO () # | |
Arguments
| :: FilePath | A path of any file within the filesystem |
| -> IO FileSystemStats |
Gets filesystem statistics.
Calls statvfs.
getFileSystemStatsFd :: Fd -> IO FileSystemStats Source #
Gets filesystem statistics.
Calls fstatvfs.
c_fstatvfs :: Fd -> Ptr FileSystemStats -> IO CInt Source #