/dev/full

From Wikipedia, the free encyclopedia

Template:Short description Script error: No such module "Unsubst". In Linux, FreeBSD, and NetBSD, Page Template:Mono/styles.css has no content./dev/full, or the always-full device,[1][2] is a special file that always returns the error code Page Template:Mono/styles.css has no content.ENOSPC (meaning "No space left on device") on writing, and provides any number of zero bytes to a process that reads from it (similar to Page Template:Mono/styles.css has no content./dev/zero).[3] This device is usually used when testing the behavior of a program when it encounters a "disk full" error.

$ echo "Hello, World" > /dev/full
bash: echo: write error: No space left on device

History

Support for the always-full device in Linux is documented as early as 2007.[2] Native support was added to FreeBSD in the 11.0 release in 2016,[4] which had previously supported it through an optional module called lindev.[4][5] The full device appeared in NetBSD 8.[6]

Relationship to other special files

Device Read behavior[3] Write behavior[3] Use case
/dev/full Returns zeros Returns ENOSPC Testing disk full errors
/dev/zero Returns zeros Discards data Memory initialization
/dev/null Returns EOF Discards data Suppressing output

See also

References

Page Template:Reflist/styles.css has no content.

  1. Lua error in package.lua at line 80: module 'Module:Citation/CS1/Utilities' not found.
  2. a b Lua error in package.lua at line 80: module 'Module:Citation/CS1/Utilities' not found.
  3. a b c Lua error in package.lua at line 80: module 'Module:Citation/CS1/Utilities' not found.
  4. a b Lua error in package.lua at line 80: module 'Module:Citation/CS1/Utilities' not found.
  5. Lua error in package.lua at line 80: module 'Module:Citation/CS1/Utilities' not found.
  6. Lua error in package.lua at line 80: module 'Module:Citation/CS1/Utilities' not found.

Script error: No such module "Check for unknown parameters".


Template:Asbox