File: full.4

package info (click to toggle)
manpages 6.15-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 20,184 kB
  • sloc: sh: 575; python: 222; perl: 190; makefile: 29; lisp: 22
file content (45 lines) | stat: -rw-r--r-- 828 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
.\" Copyright, the authors of the Linux man-pages project
.\"
.\" SPDX-License-Identifier: Linux-man-pages-copyleft
.\"
.TH full 4 2025-05-17 "Linux man-pages (unreleased)"
.SH NAME
full \- always full device
.SH CONFIGURATION
If your system does not have
.I /dev/full
created already, it
can be created with the following commands:
.P
.in +4n
.EX
mknod \-m 666 /dev/full c 1 7
chown root:root /dev/full
.EE
.in
.SH DESCRIPTION
The file
.I /dev/full
has major device number 1
and minor device number 7.
.P
Writes to the
.I /dev/full
device fail with an
.B ENOSPC
error.
This can be used to test how a program handles disk-full errors.
.P
Reads from the
.I /dev/full
device will return \[rs]0 characters.
.P
Seeks on
.I /dev/full
will always succeed.
.SH FILES
.I /dev/full
.SH SEE ALSO
.BR mknod (1),
.BR null (4),
.BR zero (4)