This article relies too much on references to primary sources. (November 2016) (Learn how and when to remove this template message)
|Special device files|
In Linux, FreeBSD, NetBSD /dev/full or the always full device is a special file that always returns the error code ENOSPC (meaning "No space left on device") on writing, and provides an infinite number of zero bytes to any process that reads from it (similar to /dev/zero). This device is usually used when testing the behaviour of a program when it encounters a "disk full" error.
$ echo "Hello world" > /dev/full bash: echo: write error: No space left on device
Support for the always-full device in Linux is documented as early as 2007. Native support was added to FreeBSD in the 11.0 release in 2016, which had previously supported it through an optional module called lindev. The full device  appeared in NetBSD 8.
- Aoki, Osamu "1.2.11 Special device files", Debian Reference, November 22, 2010, accessed November 22, 2010.
- Man Page for full (Linux section 4), November 24, 2007, accessed June 1, 2011
- "FreeBSD 11.0-RELEASE Release Notes". FreeBSD official site. Retrieved 9 March 2019.
- "lindev(4freebsd) - man page".
- "full(4) manual".
|This Linux-related article is a stub. You can help Wikipedia by expanding it.|