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

(-)sys/ufs/ffs/ffs_subr.c (-3 / +19 lines)
Lines 341-346 Link Here
341
{
341
{
342
	int i, error, blks, size;
342
	int i, error, blks, size;
343
	uint8_t *space;
343
	uint8_t *space;
344
	u_int8_t *fs_contigdirs;
345
	struct csum *fs_csp;
346
	int32_t *fs_maxcluster;
347
	u_int *fs_active;
344
348
345
	/*
349
	/*
346
	 * If there is summary information, write it first, so if there
350
	 * If there is summary information, write it first, so if there
Lines 362-370 Link Here
362
	}
366
	}
363
	fs->fs_fmod = 0;
367
	fs->fs_fmod = 0;
364
	fs->fs_time = UFS_TIME;
368
	fs->fs_time = UFS_TIME;
365
	if ((error = (*writefunc)(devfd, loc, fs, fs->fs_sbsize)) != 0)
369
	/* Clear the pointers for the duration of writing. */
366
		return (error);
370
	fs_contigdirs = fs->fs_contigdirs;
367
	return (0);
371
	fs_csp = fs->fs_csp;
372
	fs_maxcluster = fs->fs_maxcluster;
373
	fs_active = fs->fs_active;
374
	fs->fs_contigdirs = NULL;
375
	fs->fs_csp = NULL;
376
	fs->fs_maxcluster = NULL;
377
	fs->fs_active = NULL;
378
	error = (*writefunc)(devfd, loc, fs, fs->fs_sbsize);
379
	fs->fs_contigdirs = fs_contigdirs;
380
	fs->fs_csp = fs_csp;
381
	fs->fs_maxcluster = fs_maxcluster;
382
	fs->fs_active = fs_active;
383
	return (error);
368
}
384
}
369
385
370
/*
386
/*

Return to bug 246983