autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: a couple of bugs


From: Eric Blake
Subject: Re: a couple of bugs
Date: Mon, 17 Dec 2007 21:27:27 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

-----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             address@hidden
-----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

[Prev in Thread] Current Thread [Next in Thread]