/dev/full
{{Short description|Device file in Unix-like operating systems}}
{{primary sources|date=November 2016}}
In Linux, FreeBSD, NetBSD {{mono|/dev/full}}, or the always-full device,{{cite web |last=Aoki |first=Osamu |date=November 22, 2010 |url=http://tldp.org/LDP/www.debian.org/doc/manuals/debian-reference/ch01.en.html |title=Chapter 1. GNU/Linux tutorials |archive-url=https://web.archive.org/web/20100615200355/http://tldp.org/LDP/www.debian.org/doc/manuals/debian-reference/ch01.en.html |archive-date=2010-06-15 |url-status=live |access-date=November 22, 2010}}{{cite web |url=http://www.unix.com/man-page/Linux/4/full/ |date=November 24, 2007 |access-date=June 1, 2011 |title=Man Page for full (Linux section 4) |archive-url=https://archive.today/20130205131119/http://www.unix.com/man-page/Linux/4/full/ |archive-date=February 5, 2013 |url-status=live }} is a special file that always returns the error code {{Mono|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 {{mono|/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
History
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,{{cite web |title=FreeBSD 11.0-RELEASE Release Notes |url=https://www.freebsd.org/releases/11.0R/relnotes.html |website=FreeBSD official site |accessdate=9 March 2019 |archive-date=11 October 2016 |archive-url=https://web.archive.org/web/20161011124909/https://www.freebsd.org/releases/11.0R/relnotes.html |url-status=live }} which had previously supported it through an optional module called lindev.{{cite web |work=Debian |title=LINDEV(4) Device Drivers Manual |url=https://manpages.debian.org/wheezy/freebsd-manpages/lindev.4freebsd |archive-url=https://web.archive.org/web/20210515191411/https://manpages.debian.org/wheezy/freebsd-manpages/lindev.4freebsd |archive-date=2021-05-15 |url-status=live |access-date=2021-05-15 }} The full device appeared in NetBSD 8.{{cite web |work=NetBSD |title=full(4) - NetBSD Manual Pages |url=https://man.netbsd.org/full.4 |archive-url=https://web.archive.org/web/20210515191746/https://man.netbsd.org/full.4 |archive-date=2021-05-15 |url-status=live }}
See also
- {{mono|:/dev}}
- {{mono|:/dev/null}}
- {{mono|:/dev/zero}}
- Fault injection
- {{mono|/dev/mordor}} in 9front