diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-04-26 18:11:05 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-04-26 18:11:05 +0000 |
commit | db97ee572f05c64c35bd40855c1b415a3b4f08ab (patch) | |
tree | a5aa1b763e75b75e2d22d5ba3deaa92660a52756 | |
parent | 675e3c917c863730439607de09b659ca558222af (diff) |
handle ENOSPC as an end-of-tape marker; gibbs@narnia.plutotech.com
-rw-r--r-- | sbin/dump/tape.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sbin/dump/tape.c b/sbin/dump/tape.c index 29987325047..9560adef625 100644 --- a/sbin/dump/tape.c +++ b/sbin/dump/tape.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tape.c,v 1.6 1997/08/25 15:09:10 deraadt Exp $ */ +/* $OpenBSD: tape.c,v 1.7 1998/04/26 18:11:04 deraadt Exp $ */ /* $NetBSD: tape.c,v 1.11 1997/06/05 11:13:26 lukem Exp $ */ /*- @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)tape.c 8.2 (Berkeley) 3/17/94"; #else -static char rcsid[] = "$OpenBSD: tape.c,v 1.6 1997/08/25 15:09:10 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: tape.c,v 1.7 1998/04/26 18:11:04 deraadt Exp $"; #endif #endif /* not lint */ @@ -888,9 +888,13 @@ doslave(cmd, slave_number) size = 0; /* - * fixme: Pyramids running OSx return ENOSPC - * at EOT on 1/2 inch drives. + * Handle ENOSPC as an EOT condition */ + if (wrote < 0 && errno == ENOSPC) { + wrote = 0; + eot_count++; + } + if (size < 0) { (void) kill(master, SIGUSR1); sigemptyset(&sigset); |