Date: Sat, 26 Sep 2020 21:45:33 +0000 (UTC) From: Kirk McKusick <mckusick@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-releng@freebsd.org Subject: svn commit: r366187 - releng/12.2/sbin/growfs Message-ID: <202009262145.08QLjX1b031931@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mckusick Date: Sat Sep 26 21:45:33 2020 New Revision: 366187 URL: https://svnweb.freebsd.org/changeset/base/366187 Log: MFS of 366163 from stable/12 which is MFC of 365992 from head. Update check-hash when doing large UFS filesystem expansions. Approved by: re@ (Glen Barber) Sponsored by: Netflix Modified: releng/12.2/sbin/growfs/growfs.c Directory Properties: releng/12.2/ (props changed) Modified: releng/12.2/sbin/growfs/growfs.c ============================================================================== --- releng/12.2/sbin/growfs/growfs.c Sat Sep 26 16:27:09 2020 (r366186) +++ releng/12.2/sbin/growfs/growfs.c Sat Sep 26 21:45:33 2020 (r366187) @@ -572,6 +572,7 @@ updjcg(int cylno, time_t modtime, int fsi, int fso, un if (sblock.fs_magic == FS_UFS1_MAGIC) acg.cg_old_ncyl = sblock.fs_old_cpg; + cgckhash(&acg); wtfs(fsbtodb(&sblock, cgtod(&sblock, cylno)), (size_t)sblock.fs_cgsize, (void *)&acg, fso, Nflag); DBG_PRINT0("jcg written\n"); @@ -947,6 +948,7 @@ updcsloc(time_t modtime, int fsi, int fso, unsigned in * Now write the former cylinder group containing the cylinder * summary back to disk. */ + cgckhash(&acg); wtfs(fsbtodb(&sblock, cgtod(&sblock, ocscg)), (size_t)sblock.fs_cgsize, (void *)&acg, fso, Nflag); DBG_PRINT0("oscg written\n"); @@ -1039,6 +1041,7 @@ updcsloc(time_t modtime, int fsi, int fso, unsigned in * Write the new cylinder group containing the cylinder summary * back to disk. */ + cgckhash(&acg); wtfs(fsbtodb(&sblock, cgtod(&sblock, ncscg)), (size_t)sblock.fs_cgsize, (void *)&acg, fso, Nflag); DBG_PRINT0("nscg written\n");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009262145.08QLjX1b031931>