From xemacs-m  Mon Dec 16 15:30:16 1996
Received: from plg.uwaterloo.ca (dmason@plg.uwaterloo.ca [129.97.140.10]) by xemacs.cs.uiuc.edu (8.8.3/8.8.3) with ESMTP id PAA26742 for <xemacs-beta@xemacs.org>; Mon, 16 Dec 1996 15:30:16 -0600 (CST)
Received: (from dmason@localhost) by plg.uwaterloo.ca (8.7.6/8.7.3) id QAA25599; Mon, 16 Dec 1996 16:29:58 -0500 (EST)
Date: Mon, 16 Dec 1996 16:29:58 -0500 (EST)
From: Dave Mason <dmason@plg.uwaterloo.ca>
Message-Id: <199612162129.QAA25599@plg.uwaterloo.ca>
To: Benedikt Eric Heinen <beh@icemark.thenet.ch>
Cc: xemacs-beta@xemacs.org
Subject: Re: 0 length files on full disk (I'm glad this isn't a stupid question)
In-Reply-To: <Pine.LNX.3.95.961216225608.2312C-100000@icemark.thenet.ch>
References: <199612161431.JAA21057@plg.uwaterloo.ca>
	<Pine.LNX.3.95.961216225608.2312C-100000@icemark.thenet.ch>
X-Face: %Q_F^9R-:'3MM7eZ6@E.x@f\*bgatzGv-8d%I~L[p^.F)3QF{kq\UTsu|e#?)3FPwJNvPPB
 !s*He|-*M^p*~bh"Nywm5NLL\\Rl3r(hWHY*F:$/RdKV*bS";n&#\Ov@*=]mu\}6tP<lkW*7FT|:Dm
 9ejO^{)GHJdPQaa"C\<Ak`K27?328'V(u*|jAEZR9-z!o\^j:Cb&*tx_9\KbXD*2

Benedikt Eric Heinen writes:
> > It now turns out that C-X C-S doesn't even complain if the write
> > fails.  auto-save also happily says that it has auto-saved, but
> > there's a nice 0-byte autosave file!!!  C-X C-C asks to save dirty
> > buffers, then writes 0 bytes and exits!!!  I know this used to work
> > until about 19.13.
> 
> I just tried recreating the error on linux (Dave uses SUN-OS), and he's
> right here. But, strangely enough, there IS a file system full error
> message, but that occurs only, if I try and write a file with more than
> 64K on a full partition. Anything below 64K, doesn't yield any error
> message - not writing anything though.

Ditto here. 65536 bytes - no error. 65537 - error.

This is on a local disk.

64K isn't a disk allocation unit, either.  If I fill up the disk so
there's only 32K left, I get the same behaviour: 64K works (and writes
32K!!!), 64K+1 fails.  But cat sees the error.  Here's an example
(with the rc shell):

; ls -l FOO
-rw-rw-r--   1 dmason   pg_user    32768 Dec 16 16:19 FOO
; x=`{cat FOO}
; echo $x|wc
       1       1   32769
; echo $x|cat >FOO
cat: output error (0/2049 characters written)
No space left on device
; ls -l FOO
-rw-rw-r--   1 dmason   pg_user    30720 Dec 16 16:20 FOO

Sorry, I don't have FSF emacs installed, and 19.13 is gzipped up
because we're short of disk space (can you guess how I discovered this
problem in the first case? :-) so I can't easily try other versions.

I already told Benedikt, but this is:
  SunOS jupiter 5.5 Generic_103093-06 sun4d sparc SUNW,SPARCserver-1000
(aka Solaris 2.5)

../Dave

