mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
4afe4fae1b
commit
972670e132
1 changed files with 1 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue