Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

/dev/full

From Wikipedia, the free encyclopedia
Device file in Unix-like operating systems
icon
This articlerelies excessively onreferences toprimary sources. Please improve this article by addingsecondary or tertiary sources.
Find sources: "/dev/full" – news ·newspapers ·books ·scholar ·JSTOR
(November 2016) (Learn how and when to remove this message)

InLinux,FreeBSD, andNetBSD,/dev/full, or thealways-full device,[1][2] is aspecial file that always returns the error codeENOSPC (meaning "No space left on device") on writing, and provides any number of zero bytes to aprocess that reads from it (similar to/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/fullbash: echo: write error: No space left on device

History

[edit]

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 inNetBSD 8.[6]

Relationship to other special files

[edit]
DeviceRead behavior[3]Write behavior[3]Use case
/dev/fullReturns zerosReturns ENOSPCTesting disk full errors
/dev/zeroReturns zerosDiscards dataMemory initialization
/dev/nullReturns EOFDiscards dataSuppressing output

See also

[edit]

References

[edit]
  1. ^Aoki, Osamu (November 22, 2010)."Chapter 1. GNU/Linux tutorials".Archived from the original on 2010-06-15. RetrievedNovember 22, 2010.
  2. ^ab"Man Page for full (Linux section 4)". November 24, 2007.Archived from the original on February 5, 2013. RetrievedJune 1, 2011.
  3. ^abcRobbins, Kay A.; Robbins, Steven; Robbins, Kay A. (2003).UNIX systems programming: communication, concurrency, and threads. Upper Saddle River, NJ: Prentice Hall PTR.ISBN 978-0-13-042411-2.
  4. ^ab"FreeBSD 11.0-RELEASE Release Notes".FreeBSD official site.Archived from the original on 11 October 2016. Retrieved9 March 2019.
  5. ^"LINDEV(4) Device Drivers Manual".Debian.Archived from the original on 2021-05-15. Retrieved2021-05-15.
  6. ^"full(4) - NetBSD Manual Pages".NetBSD.Archived from the original on 2021-05-15.


Stub icon

ThisLinux-related article is astub. You can help Wikipedia byadding missing information.

Retrieved from "https://en.wikipedia.org/w/index.php?title=/dev/full&oldid=1331062742"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp