-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Benoit Sigoure on 12/17/2007 8:36 AM:
> 
> Wait a minute, /dev/full exists somewhere?  I've never heard of such a
> device.
> Hmm I checked on a Linux box and there is indeed a /dev/full (character
> special (1/7)), but this seems very Linux specific.

Linux may have invented it, but it is now available on other platforms -
even cygwin has one.  When writing testsuites to exercise your code's
handling of disk full conditions, you have two options - fill the disk
(not very nice, since the condition is transient if another process is
unlinking files, has definite detrimental effects on other processes, and
takes time), or use a special device that emulates a full disk (/dev/full).

Basically, because there are so few ways to reliably force write errors on
a valid file descriptor, we are somewhat stuck using non-portable devices,
and skipping the test on platforms that don't provide such luxuries.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHZ0wv84KuGfSFAYARAnJcAJ95pA8ngy0V1tbd69sQyGQh+kZvgACfcfGT
8KnmCMgFIQUPjie7QEYy3PY=
=wKfN
-----END PGP SIGNATURE-----


Reply via email to