411 REFERENCE · Wikipedia
/dev/full
Reference material by Wikipedia contributors. This retains its source identity and is not 411 news reporting.
Device file in Unix-like operating systems
November 2016
In Linux, FreeBSD, and NetBSD, /dev/full, or the always-full device,Aoki Osamu November 22, 2010 http://tldp.org/LDP/www.debian.org/doc/manuals/debian-reference/ch01.en.html Chapter 1. GNU/Linux tutorials https://web.archive.org/web/20100615200355/http://tldp.org/LDP/www.debian.org/doc/manuals/debian-reference/ch01.en.html 2010-06-15 live November 22, 2010http://www.unix.com/man-page/Linux/4/full/ November 24, 2007 June 1, 2011 Man Page for full (Linux section 4) https://archive.today/20130205131119/http://www.unix.com/man-page/Linux/4/full/ February 5, 2013 live is a special file that always returns the error code 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 /dev/zero).Robbins Kay A. UNIX systems programming: communication, concurrency, and threads Robbins Steven Robbins Kay A. 2003 Prentice Hall PTR 978-0-13-042411-2 Upper Saddle River, NJ 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. Native support was added to FreeBSD in the 11.0 release in 2016,FreeBSD 11.0-RELEASE Release Notes https://www.freebsd.org/releases/11.0R/relnotes.html FreeBSD official site 9 March 2019 11 October 2016 https://web.archive.org/web/20161011124909/https://www.freebsd.org/releases/11.0R/relnotes.html live which had previously supported it through an optional module called lindev.Debian LINDEV(4) Device Drivers Manual https://manpages.debian.org/wheezy/freebsd-manpages/lindev.4freebsd https://web.archive.org/web/20210515191411/https://manpages.debian.org/wheezy/freebsd-manpages/lindev.4freebsd 2021-05-15 live 2021-05-15 The full device appeared in NetBSD 8.NetBSD full(4) - NetBSD Manual Pages https://man.netbsd.org/full.4 https://web.archive.org/web/20210515191746/https://man.netbsd.org/full.4 2021-05-15 live
Relationship to other special files
DeviceRead behaviorWrite behaviorUse case/dev/fullReturns zerosReturns ENOSPCTesting disk full errors/dev/zeroReturns zerosDiscards dataMemory initialization/dev/nullReturns EOFDiscards dataSuppressing output
See also
:/dev
:/dev/null
:/dev/zero
Fault injection
/dev/mordor in 9front
References
Category:Device file
Category:Software testing
Category:Unix file system technology