The /dev/full device, full(4), can be useful to test bugs occuring on full disks (ENOSPC), such as some glibc bugs.