projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add copyright
[unix-history]
/
usr
/
src
/
sbin
/
dump
/
main.c
diff --git
a/usr/src/sbin/dump/main.c
b/usr/src/sbin/dump/main.c
index
816a56a
..
6c8fbf9
100644
(file)
--- a/
usr/src/sbin/dump/main.c
+++ b/
usr/src/sbin/dump/main.c
@@
-1,4
+1,4
@@
-static char *sccsid = "@(#)main.c 1.1
2
(Berkeley) %G%";
+static char *sccsid = "@(#)main.c 1.1
9
(Berkeley) %G%";
#include "dump.h"
int notify = 0; /* notify operator flag */
#include "dump.h"
int notify = 0; /* notify operator flag */
@@
-16,7
+16,7
@@
main(argc, argv)
char *argv[];
{
char *arg;
char *argv[];
{
char *arg;
- int i;
+ int
bflag = 0,
i;
float fetapes;
register struct fstab *dt;
float fetapes;
register struct fstab *dt;
@@
-26,6
+26,7
@@
main(argc, argv)
tape = TAPE;
disk = DISK;
increm = NINCREM;
tape = TAPE;
disk = DISK;
increm = NINCREM;
+ temp = TEMP;
if (TP_BSIZE / DEV_BSIZE == 0 || TP_BSIZE % DEV_BSIZE != 0) {
msg("TP_BSIZE must be a multiple of DEV_BSIZE\n");
dumpabort();
if (TP_BSIZE / DEV_BSIZE == 0 || TP_BSIZE % DEV_BSIZE != 0) {
msg("TP_BSIZE must be a multiple of DEV_BSIZE\n");
dumpabort();
@@
-51,11
+52,6
@@
main(argc, argv)
exit(0); /* do nothing else */
break;
exit(0); /* do nothing else */
break;
- case 'J': /* update old to new */
- o_nconvert();
- exit(0); /* do nothing else */
- break;
-
case 'f': /* output file */
if(argc > 1) {
argv++;
case 'f': /* output file */
if(argc > 1) {
argv++;
@@
-69,6
+65,8
@@
main(argc, argv)
argv++;
argc--;
density = atoi(*argv) / 10;
argv++;
argc--;
density = atoi(*argv) / 10;
+ if (density >= 625 && !bflag)
+ ntrec = HIGHDENSITYTREC;
}
break;
}
break;
@@
-85,6
+83,7
@@
main(argc, argv)
if(argc > 1) {
argv++;
argc--;
if(argc > 1) {
argv++;
argc--;
+ bflag++;
ntrec = atol(*argv);
}
break;
ntrec = atol(*argv);
}
break;
@@
-134,12
+133,12
@@
main(argc, argv)
* density tape size
* 9-track 1600 bpi (160 bytes/.1") 2300 ft.
* 9-track 6250 bpi (625 bytes/.1") 2300 ft.
* density tape size
* 9-track 1600 bpi (160 bytes/.1") 2300 ft.
* 9-track 6250 bpi (625 bytes/.1") 2300 ft.
- * cartridge 8000 bpi (100 bytes/.1")
4000 ft. (450*9
- slop)
+ * cartridge 8000 bpi (100 bytes/.1")
1700 ft. (450*4
- slop)
*/
if (density == 0)
density = cartridge ? 100 : 160;
if (tsize == 0)
*/
if (density == 0)
density = cartridge ? 100 : 160;
if (tsize == 0)
- tsize = cartridge ?
40
00L*120L : 2300L*120L;
+ tsize = cartridge ?
17
00L*120L : 2300L*120L;
#ifdef RDUMP
{ char *index();
#ifdef RDUMP
{ char *index();
@@
-185,7
+184,8
@@
main(argc, argv)
getitime(); /* /etc/dumpdates snarfed */
msg("Date of this level %c dump: %s\n", incno, prdate(spcl.c_date));
getitime(); /* /etc/dumpdates snarfed */
msg("Date of this level %c dump: %s\n", incno, prdate(spcl.c_date));
- msg("Date of last level %c dump: %s\n", incno, prdate(spcl.c_ddate));
+ msg("Date of last level %c dump: %s\n",
+ lastincno, prdate(spcl.c_ddate));
msg("Dumping %s ", disk);
if (dt != 0)
msgtail("(%s) ", dt->fs_file);
msg("Dumping %s ", disk);
if (dt != 0)
msgtail("(%s) ", dt->fs_file);
@@
-251,7
+251,6
@@
main(argc, argv)
esize /* blocks */
* (1.0/ntrec) /* IRG's / block */
* tenthsperirg /* 0.1" / IRG */
esize /* blocks */
* (1.0/ntrec) /* IRG's / block */
* tenthsperirg /* 0.1" / IRG */
- * 7 /* 0.1" / IRG */
) * (1.0 / tsize ); /* tape / 0.1" */
}
etapes = fetapes; /* truncating assignment */
) * (1.0 / tsize ); /* tape / 0.1" */
}
etapes = fetapes; /* truncating assignment */
@@
-269,7
+268,7
@@
main(argc, argv)
bitmap(clrmap, TS_CLRI);
msg("dumping (Pass III) [directories]\n");
bitmap(clrmap, TS_CLRI);
msg("dumping (Pass III) [directories]\n");
- pass(dump, dirmap);
+ pass(d
ird
ump, dirmap);
msg("dumping (Pass IV) [regular files]\n");
pass(dump, nodmap);
msg("dumping (Pass IV) [regular files]\n");
pass(dump, nodmap);