[Top][All Lists]

[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: Gecko/20071031 Thunderbird/ Mnenhy/

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
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at
Comment: Using GnuPG with Mozilla -


reply via email to

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