Author: mckusick
Date: Fri Jun 19 23:32:40 2020
New Revision: 362418
URL: https://svnweb.freebsd.org/changeset/base/362418

Log:
  Allocate an fs_summary_info structure when creating a UFS filesystem
  needed since introduced in -r362358.
  
  PR:           247425
  Sponsored by: Netflix

Modified:
  head/usr.sbin/makefs/ffs/mkfs.c

Modified: head/usr.sbin/makefs/ffs/mkfs.c
==============================================================================
--- head/usr.sbin/makefs/ffs/mkfs.c     Fri Jun 19 19:33:19 2020        
(r362417)
+++ head/usr.sbin/makefs/ffs/mkfs.c     Fri Jun 19 23:32:40 2020        
(r362418)
@@ -408,6 +408,7 @@ ffs_mkfs(const char *fsys, const fsinfo_t *fsopts, tim
        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) {
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to