fio/error

Types

All possible errors from fio operations.

pub type FioError {
  Eacces
  Eagain
  Ebadf
  Ebadmsg
  Ebusy
  Edeadlk
  Edquot
  Eexist
  Efault
  Efbig
  Eintr
  Einval
  Eio
  Eisdir
  Eloop
  Emfile
  Emlink
  Enametoolong
  Enfile
  Enodev
  Enoent
  Enomem
  Enospc
  Enosys
  Enotblk
  Enotdir
  Enotsup
  Enxio
  Enotempty
  Eoverflow
  Eperm
  Epipe
  Erange
  Erofs
  Espipe
  Esrch
  Estale
  Etxtbsy
  Exdev
  NotUtf8(path: String)
  PathTraversal(path: String)
  OutsideBase(path: String, base: String)
  InvalidPath(path: String, reason: String)
  AtomicFailed(operation: String, reason: String)
  TempFailed(reason: String)
  Unknown(inner: String, context: option.Option(String))
}

Constructors

  • Eacces

    Permission denied

  • Eagain

    Resource temporarily unavailable

  • Ebadf

    Bad file descriptor

  • Ebadmsg

    Bad message

  • Ebusy

    File busy

  • Edeadlk

    Resource deadlock avoided

  • Edquot

    Disk quota exceeded

  • Eexist

    File already exists

  • Efault

    Bad address in system call argument

  • Efbig

    File too large

  • Eintr

    Interrupted system call

  • Einval

    Invalid argument

  • Eio

    I/O error

  • Eisdir

    Illegal operation on a directory

  • Eloop

    Too many levels of symbolic links

  • Emfile

    Too many open files

  • Emlink

    Too many links

  • Enametoolong

    Filename too long

  • Enfile

    File table overflow

  • Enodev

    No such device

  • Enoent

    No such file or directory

  • Enomem

    Not enough memory

  • Enospc

    No space left on device

  • Enosys

    Function not implemented

  • Enotblk

    Block device required

  • Enotdir

    Not a directory

  • Enotsup

    Operation not supported

  • Enxio

    No such device or address

  • Enotempty

    Directory not empty

  • Eoverflow

    Value too large to be stored in data type

  • Eperm

    Not owner / Operation not permitted

  • Epipe

    Broken pipe

  • Erange

    Result too large

  • Erofs

    Read-only file system

  • Espipe

    Invalid seek

  • Esrch

    No such process

  • Estale

    Stale remote file handle

  • Etxtbsy

    Text file busy

  • Exdev

    Cross-domain link

  • NotUtf8(path: String)

    File content is not valid UTF-8

  • PathTraversal(path: String)

    Path traversal attempt blocked

  • OutsideBase(path: String, base: String)

    Path is outside allowed base directory

  • InvalidPath(path: String, reason: String)

    Invalid path format

  • AtomicFailed(operation: String, reason: String)

    Atomic operation failed

  • TempFailed(reason: String)

    Temp file/directory creation failed

  • Unknown(inner: String, context: option.Option(String))

    Unknown / unmapped error

Values

pub fn describe(error: FioError) -> String

Convert a FioError to a human-readable description.

Search Document