Allocate an fs_summary_info structure when creating a UFS filesystem

needed since introduced in -r362358.

PR:           247425
Sponsored by: Netflix
This commit is contained in:
Kirk McKusick 2020-06-19 23:32:40 +00:00
parent 4afe4fae1b
commit 972670e132
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=362418

View File

@ -408,6 +408,7 @@ ffs_mkfs(const char *fsys, const fsinfo_t *fsopts, time_t tstamp)
if (sblock.fs_contigsumsize > 0)
size += sblock.fs_ncg * sizeof(int32_t);
space = ecalloc(1, size);
sblock.fs_si = ecalloc(1, sizeof(struct fs_summary_info));
sblock.fs_csp = space;
space = (char *)space + sblock.fs_cssize;
if (sblock.fs_contigsumsize > 0) {