View | Details | Raw Unified | Return to bug 228807
Collapse All | Expand All

(-)main.c (-1 / +4 lines)
Lines 103-108 Link Here
103
	int i, ret, anydirskipped, bflag = 0, Tflag = 0, honorlevel = 1;
103
	int i, ret, anydirskipped, bflag = 0, Tflag = 0, honorlevel = 1;
104
	int just_estimate = 0;
104
	int just_estimate = 0;
105
	ino_t maxino;
105
	ino_t maxino;
106
	int c_count=0;
106
	char *tmsg;
107
	char *tmsg;
107
108
108
	spcl.c_date = _time_to_time64(time(NULL));
109
	spcl.c_date = _time_to_time64(time(NULL));
Lines 433-439 Link Here
433
		msgtail("to %s\n", tape);
434
		msgtail("to %s\n", tape);
434
435
435
	sync();
436
	sync();
436
	sblock = NULL;
437
	if ((ret = sbget(diskfd, &sblock, -1)) != 0) {
437
	if ((ret = sbget(diskfd, &sblock, -1)) != 0) {
438
		switch (ret) {
438
		switch (ret) {
439
		case ENOENT:
439
		case ENOENT:
Lines 453-458 Link Here
453
		quit("TP_BSIZE (%d) is not a power of 2", TP_BSIZE);
453
		quit("TP_BSIZE (%d) is not a power of 2", TP_BSIZE);
454
	maxino = sblock->fs_ipg * sblock->fs_ncg;
454
	maxino = sblock->fs_ipg * sblock->fs_ncg;
455
	mapsize = roundup(howmany(maxino, CHAR_BIT), TP_BSIZE);
455
	mapsize = roundup(howmany(maxino, CHAR_BIT), TP_BSIZE);
456
	c_count = howmany(mapsize * sizeof(char), TP_BSIZE);
457
	if (c_count > TP_NINDIR)
458
		quit("fs is too large for dump!");
456
	usedinomap = (char *)calloc((unsigned) mapsize, sizeof(char));
459
	usedinomap = (char *)calloc((unsigned) mapsize, sizeof(char));
457
	dumpdirmap = (char *)calloc((unsigned) mapsize, sizeof(char));
460
	dumpdirmap = (char *)calloc((unsigned) mapsize, sizeof(char));
458
	dumpinomap = (char *)calloc((unsigned) mapsize, sizeof(char));
461
	dumpinomap = (char *)calloc((unsigned) mapsize, sizeof(char));

Return to bug 228807