ETOOBUSY 🚀 minimal blogging for the impatient
I discovered /dev/full.
Writes to the
/dev/fulldevice will fail with an
ENOSPCerror. This can be used to test how a program handles disk-full errors.
Reads from the
/dev/fulldevice will return characters.
/dev/fullwill always succeed.
Additionally, according to the Wikipedia page:
/dev/full] provides an infinite number of zero bytes to any process that reads from it (similar to
So there you have it, another thing that might come handy one day for testing stuff.