-$Id: CHANGES,v 1.225 2003/04/08 19:52:30 stelian Exp $
+$Id: CHANGES,v 1.226 2003/04/09 10:42:56 stelian Exp $
 
 Changes between versions 0.4b33 and 0.4b34 (released ?????????????????)
 =======================================================================
        how to enable and configure it. Thanks to Ken Lalonde
        <ken@globalremit.com> for the patch.
 
+19.    Made dump work with 2.5 kernel end of tape early warning semantics.
+       Thanks to Kai Makisara <Kai.Makisara@kolumbus.fi> for the patch.
+
 Changes between versions 0.4b32 and 0.4b33 (released February 10, 2003)
 =======================================================================
 
 
-$Id: THANKS,v 1.78 2003/03/07 09:15:46 stelian Exp $
+$Id: THANKS,v 1.79 2003/04/09 10:42:57 stelian Exp $
 
 Dump and restore were written by the people of the CSRG at the University
 of California, Berkeley.
 Dragan Krnic           dkrnic@lycos.com
 Klaus Kudielka         kkudielk@cacofonix.nt.tuwien.ac.at
 Thorsten Kukuk         kukuk@suse.de
+Ken Lalonde            ken@globalremit.com
 Florian La Roche       florian@jurix.jura.uni-sb.de
 Kari Lempiainen                kari@funky.pp.fi
 Ambrose Li             acli@mingpaoxpress.com
 Patrick J. LoPresti    patl@cag.lcs.mit.edu
 Greg Lutz              greglutz@ix.netcom.com
 Eric Maisonobe         virnet@nat.fr
+Kai Makisara           Kai.Makisara@kolumbus.fi
 Andy Mentges           amentges@jumpline.com
 David Miller           davem@caip.rutgers.edu
 Elliott Mitchell       ehem@m5p.com
 
 
 #ifndef lint
 static const char rcsid[] =
-       "$Id: tape.c,v 1.75 2003/03/31 09:42:58 stelian Exp $";
+       "$Id: tape.c,v 1.76 2003/04/09 10:42:57 stelian Exp $";
 #endif /* not lint */
 
 #include <config.h>
 #ifdef WRITEDEBUG
                        printf("slave %d wrote %d\n", slave_number, wrote);
 #endif
-                       if (wrote < 0)
+                       if (wrote < 0 && errno != ENOSPC)
                                break;
-                       if (wrote == 0)
+                       if (wrote == 0 || (wrote < 0 && errno == ENOSPC))
                                eot_count++;
-                       size += wrote;
+                       else
+                               size += wrote;
                }
 
 #ifdef WRITEDEBUG