Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sbin/dump Pull up revision 1.28 (requested by tron):



details:   https://anonhg.NetBSD.org/src/rev/89deaf8d0382
branches:  netbsd-1-5
changeset: 491693:89deaf8d0382
user:      he <he%NetBSD.org@localhost>
date:      Wed May 09 19:16:19 2001 +0000

description:
Pull up revision 1.28 (requested by tron):
  Add a new option ``e'' to dump which directs it to eject tapes
  automatically if a tape change is required.

diffstat:

 sbin/dump/main.c |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (38 lines):

diff -r 5bc6e3d45de6 -r 89deaf8d0382 sbin/dump/main.c
--- a/sbin/dump/main.c  Wed May 09 19:16:07 2001 +0000
+++ b/sbin/dump/main.c  Wed May 09 19:16:19 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.25.6.1 2000/10/18 00:39:43 tv Exp $ */
+/*     $NetBSD: main.c,v 1.25.6.2 2001/05/09 19:16:19 he Exp $ */
 
 /*-
  * Copyright (c) 1980, 1991, 1993, 1994
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)main.c     8.6 (Berkeley) 5/1/95";
 #else
-__RCSID("$NetBSD: main.c,v 1.25.6.1 2000/10/18 00:39:43 tv Exp $");
+__RCSID("$NetBSD: main.c,v 1.25.6.2 2001/05/09 19:16:19 he Exp $");
 #endif
 #endif /* not lint */
 
@@ -134,7 +134,7 @@
 
        obsolete(&argc, &argv);
        while ((ch = getopt(argc, argv,
-           "0123456789B:b:cd:f:h:k:L:nr:s:ST:uWw")) != -1)
+           "0123456789B:b:cd:ef:h:k:L:nr:s:ST:uWw")) != -1)
                switch (ch) {
                /* dump level */
                case '0': case '1': case '2': case '3': case '4':
@@ -161,6 +161,10 @@
                                ntrec = HIGHDENSITYTREC;
                        break;
 
+               case 'e':       /* eject full tapes */
+                       eflag = 1;
+                       break;
+
                case 'f':               /* output file */
                        tape = optarg;
                        break;



Home | Main Index | Thread Index | Old Index